I am in the process of upgrading to the latest release.
I got the dates formatting good now with the auto tick selection working just like you said.
Its looking good, except when I tried to create a time series chart with a single point.
I have put my code in the debugger and I can looping through my result set (with a single row) and creating a single time series and adding it to the time series collection but when I render the chart I do not see the point.
What do you think?
I will keep debugging this.
Thanks
TimeSeriesChart with a single point problem?
Re: TimeSeriesChart with a single point problem?
Trying to debug this but when I try to step into the createTimeSeriesChart method my IDE (IntelliJ) can't seem to follow it.
Are the classes in the jfreechart.jar compiled with debug info as well?
Are the classes in the jfreechart.jar compiled with debug info as well?
Re: TimeSeriesChart with a single point problem?
I figured out a way to debug into this code (by taking the compiled classes from my IDE and sticking into my web app and removing the jfreechart jar) and step through the code and do not see anything obviously wrong.
Note my code contains the following to put "shapes" around each point:
// This part puts shapes on the points.
XYItemRenderer renderer = plot.getRenderer();
if(renderer instanceof StandardXYItemRenderer)
{
StandardXYItemRenderer standardXYItemRenderer =
(StandardXYItemRenderer)renderer;
standardXYItemRenderer.setPlotShapes(true);
}
Is it possible the point is there but the shape is not being put on it so that it looks like it isn't there?
Note my code contains the following to put "shapes" around each point:
// This part puts shapes on the points.
XYItemRenderer renderer = plot.getRenderer();
if(renderer instanceof StandardXYItemRenderer)
{
StandardXYItemRenderer standardXYItemRenderer =
(StandardXYItemRenderer)renderer;
standardXYItemRenderer.setPlotShapes(true);
}
Is it possible the point is there but the shape is not being put on it so that it looks like it isn't there?
Re: TimeSeriesChart with a single point problem?
There is a bug, fixed in CVS for 0.9.6. Please see the other thread:
http://www.object-refinery.com/phorum-3 ... 257&t=7257
Regards,
Dave Gilbert
http://www.object-refinery.com/phorum-3 ... 257&t=7257
Regards,
Dave Gilbert