Page 1 of 1

Briefly turn off visual update.

Posted: Tue Sep 15, 2015 9:42 pm
by 16475083
Hi,

There are times in my project where I need to update the chart in more than one way - for example: I may want to update the bottom axis Min and Max values and also the left axis Min and Max values. There is a somewhat noticeable jump in between those due to the chart visually updating after the bottom axis update and then again after the left axis update. Is there any way to have the chart disable updating and then re-enable updating when all current updates are complete?

Thank you.
.

Re: Briefly turn off visual update.

Posted: Wed Sep 16, 2015 12:14 pm
by yeray
Hello,

Yes, you can turn off/on AutoRepaint property:

Code: Select all

  Chart1.AutoRepaint:=false;
  Chart1.Axes.Bottom.SetMinMax(xmin, xmax);
  Chart1.Axes.Left.SetMinMax(ymin, ymax);
  Chart1.AutoRepaint:=true;
  Chart1.Draw;
Don't forget to force a chart repaint after enabling AutoRepaint or the changes won't take effect.