Donate Share

JChart2D

Tracker: Feature Requests

5 Performance for traces with large amount of data. - ID: 1977861
Last Update: Comment added ( kali68 )

Traces with huge amount of date are senseless when no zooming
(ZoomableChart) is used: 10.000 points on a screen with 1920 pixel width
does not change the visible result compared to 2000 points but costs
performance.

It would be possible to only render every nth point (or the arithmetic mean
of the most recent n points) when

ITrace2D.iterator()

is changed to:

Itrace2D.iterator(Range visibleRange, int amountOfVisiblePoints)

visibleRange would be used for the iterator to not return the invisible
points. amountOfVisiblePoints would be used by the iterator to fold several
points into one if a multiple of the requested points are contained in the
visible range.

Caution: Because a 2nd ionternal iteration for filtering out the invisible
points in initialization of the iterator would be required this signature
should only be used in case the chart detects that a range policy of an
axis does limit it's min and max bounds. If not another signature:

Itrace2D.iterator(int amountOfVisiblePoints) should be used which just
avoids to try to iterate and paint "10.0000" points.


Achim Westermann ( achimwestermann ) - 2008-05-29 14:01

5

Open

None

Nobody/Anonymous

None

Next but one feature release.

Public


Comment ( 1 )

Date: 2008-12-08 11:53
Sender: kali68

Hi Achim,

why iterate over the trace, instead of iterating over the pixels and
request/calculate the corresponding data. So you have only 1920 pixels to
draw, even if the data consists of 10000000 points.

Regards,

Michael


Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.