Page 1 of 1

Repainting

Posted: Wed Dec 02, 2015 2:05 am
by 17576646
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?

Re: Repainting

Posted: Wed Dec 02, 2015 12:25 pm
by yeray
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;