TimeSeriesChart with a single point problem?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Erich Kilmer

TimeSeriesChart with a single point problem?

Post by Erich Kilmer » Wed Feb 12, 2003 8:17 pm

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

Erich Kilmer

Re: TimeSeriesChart with a single point problem?

Post by Erich Kilmer » Wed Feb 12, 2003 9:05 pm

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?

Erich Kilmer

Re: TimeSeriesChart with a single point problem?

Post by Erich Kilmer » Wed Feb 12, 2003 9:51 pm

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?

David Gilbert

Re: TimeSeriesChart with a single point problem?

Post by David Gilbert » Fri Feb 14, 2003 7:35 am

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

Locked