Chart drawing is slow for large dataset

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vani_hegde
Posts: 17
Joined: Tue Oct 11, 2005 9:27 pm

Chart drawing is slow for large dataset

Post by vani_hegde » Fri Jan 13, 2006 8:05 pm

Hi,
i have a dataset for time series, that has data for the range of one or 2 months, and there are data points at every second.

I am trying to display this chart but the chart comes up so slowly.
There is a considerable amount of time, between when the user hits the button to see the chart and when the chart is displayed.

Has anyone done any optimizations, or even ideas?

Is there a way i can use to draw the charts faster?

Please help,

thanks,
vani

Guest

Post by Guest » Sun Jan 15, 2006 4:12 pm

You should "collapse" observations by rounding your timestamps to a reasonable level of granularity. This may involve two or more observations sharing the same time in a data series, so there can be issues of how these "clashes" are aggregated. But if you don't aggregate, then it could take considerable time to render.

Locked