M
M
Mikhail Burilov2013-08-05 06:55:52
infographics
Mikhail Burilov, 2013-08-05 06:55:52

We need an algorithm for scaling charts

Task: there is a very large number of points, when they are drawn on the chart, everything slows down wildly. If you take the DevExpress XtraChart and enable interactive features, it's a complete nightmare. The self-drawn control is subjectively twice as fast, but still imperfect.
In theory, it is necessary to cut off some of the points at full scale, and show them in more detail when zoomed in.
I look at financial charts on the same mt.gox - and everything is smart, and there the amount of data on the monthly chart will be more.
Tell me, what are the algorithms for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Akulovich, 2013-08-05
@itsplus

Use the same clustering methods to group points depending on the scale. If on the Z scale the distance between two points does not exceed X, then merge them into one.

I
Ilya Popov, 2013-08-07
@encyclopedist

Perhaps the Ramer-Douglas-Pecker algorithm will help you . Its implementation in JavaScript was published on Habré , but it is easy to implement it in any language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question