[Lazarus] TAChart

Werner Pamler werner.pamler at freenet.de
Thu Jun 4 22:08:06 CEST 2015


The rectangle enclosing the shown data range is called the LogicalExtent 
of the Chart. Therefore, store the LogicalExtent before performing a 
zoom in a TDoubleRect (savedExtent := Chart.LogicalExtent), and to go 
back you just assign it the other way: Chart.LogicalExtent := savedExtent.
(The  unzoomed extent already is available as "Chart.GetFullExtent").

All this is managed by the TChartExtentHistory. Details are explained in 
the Mandelbrot-Tutorial 
(http://wiki.lazarus.freepascal.org/TAChart_Tutorial:_ColorMapSeries,_Zooming#Zoom_history).

Am 04.06.2015 um 21:35 schrieb Richard Mace:
> Hi,
> Another quick question. How can you, via code, zoom out of a chart, 
> effectively back to what it was by default? If that makes sense?
>
> Thanks
>
> Richard
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150604/1f0ee94c/attachment-0003.html>


More information about the Lazarus mailing list