PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Drawing charts faster
Drawing charts faster
Iniciado por guest, 06,feb. 2018 19:13 - 1 respuesta
Publicado el 06,febrero 2018 - 19:13
Hey everyone,

I've got a chart that contains about 20k datapoints. It takes several seconds to call grChartAdd() this many times.

I'm setting Visible = False and DisplayEnabled = False.

Anyone have tips for speeding this up?

In the meantime, I'm going to work on averaging my data and not having 20k datapoints to begin with. :-)

Thank you!
Publicado el 07,febrero 2018 - 10:25
Andrew

One tip I use: User screen does not have 20,000 pixels horixontally so no point to try and plot 20,000 points. So instead I use code to only display as many data points in a chart as can fit in the horizontal width available. There are various options here; averaging, using most significant data points, taking only every Nth point, etc.