Repainting

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
riskassessor
Newbie
Newbie
Posts: 29
Joined: Tue Oct 13, 2015 12:00 am

Repainting

Post by riskassessor » Wed Dec 02, 2015 2:05 am

I have developed a Delphi/FMX application in which the underlying chart data is changed programmatically. I have been having huge difficulties in getting the chart to update when the data is changed. Chart1.Repaint and Chart1.CanvasChanged(Self) do not seem to work (or not 100% of the time). What is the certain command to get the chart to adapt to its current data?

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

Re: Repainting

Post by Yeray » Wed Dec 02, 2015 12:25 pm

Hello,

If the values in the series have been updated and you want it to be redrawn, you just have to call:

Code: Select all

Series1.Repaint();
If you want to force a full repaint, you could call:

Code: Select all

Chart1.Draw;
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