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.
Nobody/Anonymous
None
Next but one feature release.
Public
|
Date: 2008-12-08 11:53 Hi Achim, |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use