Hi,
I'm using the TimeSeriesChart and I've noticed that JFreeChart produces dashed horizontal lines for each value on the Y-Axis. I would like to know if it's possible to do the same for values on the X-Axis. In that way, I could have a grid-type graph which would help the user look at more precise data.
Thanks in advance,
Rudra A Dixit
Help with TimeSeriesChart
RE: Help with TimeSeriesChart
Hi Rudra,
I use the term grid lines...unless I misunderstand what you mean.
The time series charts in the demo have horizontal *and* vertical grid lines, I think that is the default.
The method setGridLinesVisible(...) in ValueAxis controls this.
Regards,
DG.
I use the term grid lines...unless I misunderstand what you mean.
The time series charts in the demo have horizontal *and* vertical grid lines, I think that is the default.
The method setGridLinesVisible(...) in ValueAxis controls this.
Regards,
DG.
RE: Help with TimeSeriesChart
Hi DG,
I checked out the setGridLinesVisible() method, but it's only showing horizontal grid lines, not vertical. Here's the full description of my problem:
I'm generating a PNG image to display on a JSP. I've got a maximum image width limit of 420 pixels. When I query for long intervals (for example: from 01/15/2002 01:00 to 01/23/2002 23:00), JFreeChart produces the graph, but the X-Axis displays only one label (in my case, it's 01/21/2002). The person who is studying the generated graph has to guess the other dates, since there aren't any other X-Axis labels available. I guess this happens because of the image width limit.
Therefore, if I have vertical gridlines, this would help the user understand more precisely what is being demonstrated.
I'm not sure if I have been clear now. Please let me know so that I can solve any doubts.
Thanks in advance,
Rudra A Dixit
I checked out the setGridLinesVisible() method, but it's only showing horizontal grid lines, not vertical. Here's the full description of my problem:
I'm generating a PNG image to display on a JSP. I've got a maximum image width limit of 420 pixels. When I query for long intervals (for example: from 01/15/2002 01:00 to 01/23/2002 23:00), JFreeChart produces the graph, but the X-Axis displays only one label (in my case, it's 01/21/2002). The person who is studying the generated graph has to guess the other dates, since there aren't any other X-Axis labels available. I guess this happens because of the image width limit.
Therefore, if I have vertical gridlines, this would help the user understand more precisely what is being demonstrated.
I'm not sure if I have been clear now. Please let me know so that I can solve any doubts.
Thanks in advance,
Rudra A Dixit