[Lazarus] TChart - How to read first/last values from DbChartSource after zoom

Alexander Klenin klenin at gmail.com
Fri May 10 19:56:27 CEST 2013

On Sat, May 11, 2013 at 3:19 AM, Gabor Boros <gaborboros at yahoo.com> wrote:
> Hi,
> I have one DBGrid and Chart(LineSeries) with same DataSource. Want to filter
> DBGrid's content depend Chart's zoom status. How to read the actual
> first/last values from Chart if it zoomed?

You can use TChart.CurrentExtent property to determine currently
visible chart area.
See http://wiki.lazarus.freepascal.org/TAChart_documentation#Extents

Alexander S. Klenin

More information about the Lazarus mailing list