Performance in ScatterPlot chart problem!!!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
khanhlv
Posts: 21
Joined: Thu May 22, 2008 10:27 am

Performance in ScatterPlot chart problem!!!

Post by khanhlv » Mon Jun 09, 2008 7:31 am

ScatterPlot with huge data!!!

I need to draw a plot chart as the scatterPlot chart but the problem is that my data is rather huge( about 500,000 points:( ! ). I tried use scatterPlot but the performance is so bad!!!

Have any solution to solve this problem?!!!
Thanks very much!

khanhlv
Posts: 21
Joined: Thu May 22, 2008 10:27 am

Post by khanhlv » Mon Jun 09, 2008 10:27 am

Any one could give me some suggestions :)!

RichardWest
Posts: 844
Joined: Fri Oct 13, 2006 9:29 pm
Location: Sunnyvale, CA

Post by RichardWest » Mon Jun 09, 2008 5:21 pm

khanhlv wrote:Any one could give me some suggestions :)!
Search the forum for FastScatterPlot and take a look at the FastScatterPlot JavaDoc.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA

khanhlv
Posts: 21
Joined: Thu May 22, 2008 10:27 am

Post by khanhlv » Thu Jun 12, 2008 4:06 am

It seems that i can not use FastScratterPlot because i need the value in x-axis and y-axis are double not float:(!
Have any other solution? Can i use other chart beside the scratter chart???
Other way, is there any example of FastScatterPlot??

RichardWest
Posts: 844
Joined: Fri Oct 13, 2006 9:29 pm
Location: Sunnyvale, CA

Post by RichardWest » Thu Jun 12, 2008 7:17 am

khanhlv wrote:It seems that i can not use FastScratterPlot because i need the value in x-axis and y-axis are double not float:(!
Have any other solution? Can i use other chart beside the scratter chart???
Other way, is there any example of FastScatterPlot??
Why not try copying the code for FastScatterPlot and simply change the floats to doubles? At least that way you will be able to see if the FastScatterPlot can help relieve some of your performance issues. The main reason, if I recall correctly, for using floats in FastScatterPlot is to reduce the memory overhead needed to store the data since the datasets are expected to be incredibly large. Reducing memory overhead will also increase performance. I highly doubt your data needs to be double precision for plotting especially when it is impossible to distinguish 500,000 data points on a plot unless you have an impossibly large monitor.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA

Locked