> Btw., how do you manage to cull the data without distorting the shape of the diagram ?
>
> Do you still keep all data points and then only display a subset, or do you really delete data ?
We're really deleting data.
There are different culling strategies, and you can implement your own. But the strategy we're using is in MinGapDataCuller.java. Let the maximum size be N. Then:
1. Let the chart grow to N in size.
2. Until the chart is N/2+1 in size, repeat:
2A. Remove the point whose left and right neighbors are closest to one another. Break ties by choosing the earlier point. Never remove the first and last points in the series.