Line graph with many values
Posted: Wed Nov 15, 2006 7:30 am
Hi,
Say I have a large amount of data, (t, f(t)), that describes a
piecewise-linear function (that is, every two points are connected by a
straight line). For example there are 10,000 different points in the
collection. Putting them all on a single graph will produce an unreadable
and messed-up graph with many jagging lines.
I wonder if there is a way to have TeeChart automatically "sparsify" the
data. So that, at first glance I will see a nice but inaccurate graph (where
some points may be averaged with other adjacent points, for example). When I
zoom into a section of the graph, I will see the points in more detail, and
actually more points will be shown.
In short, sort of a Google-maps mechanism, where I can zoom in to see the
fine details, and zoom out to see the outline.
Any advice?
Thanks,
Arie
Say I have a large amount of data, (t, f(t)), that describes a
piecewise-linear function (that is, every two points are connected by a
straight line). For example there are 10,000 different points in the
collection. Putting them all on a single graph will produce an unreadable
and messed-up graph with many jagging lines.
I wonder if there is a way to have TeeChart automatically "sparsify" the
data. So that, at first glance I will see a nice but inaccurate graph (where
some points may be averaged with other adjacent points, for example). When I
zoom into a section of the graph, I will see the points in more detail, and
actually more points will be shown.
In short, sort of a Google-maps mechanism, where I can zoom in to see the
fine details, and zoom out to see the outline.
Any advice?
Thanks,
Arie