How to modify settings in my chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Fabios1989
Posts: 2
Joined: Mon Apr 07, 2014 3:11 pm
antibot: No, of course not.

How to modify settings in my chart

Post by Fabios1989 » Thu Apr 10, 2014 9:58 am

Hello,
I've got the following chart:

Image

built using TimeSeriesCollection as dataset and XYLineAndShapeRenderer as renderer.
I'd like to modify:
1) for every step, there should be only one value (example, there must not be a serie of "20" or "5", but only one of them);

Can someone help me, please? :cry:
Thanks.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: How to modify settings in my chart

Post by david.gilbert » Fri Apr 11, 2014 3:41 pm

It looks like your dataset contains one item every hour of the day. Try adding a new data point only when the value changes.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked