About the dragging speed of ColorBandTool of ScrollPager

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
elmec
Advanced
Posts: 129
Joined: Mon Aug 26, 2013 12:00 am

About the dragging speed of ColorBandTool of ScrollPager

Post by elmec » Tue Mar 04, 2014 11:24 am

When there are many data(about one million) in ScrollPager->Series,
the dragging speed of ColorBandTool falls obviously...
Even the series is TFastlineSeries, and I have set it with "Speed Theme" like mentioned in the Examples.

Is there any good way to avoid that...

Thanks in advance.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: About the dragging speed of ColorBandTool of ScrollPager

Post by Yeray » Tue Mar 04, 2014 4:15 pm

Hello,

Note that drawing a million points in a regular screen means that many points will be drawn in the same pixel.
That's why we implemented solutions like:
  • DrawAllPoints property. See the example at "All features\Welcome !\Speed\Fast Line Speed DrawAll".
  • TDownSampling function to reduce the number of points to draw. See the example at "All features\Welcome !\Functions\Extended\Reducing number of points".
  • Implement as tips as possible from the ones explained in the Real-time Charting article here.
  • Speed Theme as you've already found. See the example at "All features\Welcome !\Speed\Fast Line Speed DrawAll".
These and other examples can be found in the features demo program shipped with the installation.

In your case, note the series you should reduce the number of points to draw is the one in the SubChart. Ie:

Code: Select all

  (ChartTool1.SubChartTChart[0] as TFastLineSeries).DrawAllPoints:=false;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply