Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-05

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

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Gabor Boros

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?

Gabor

Gabor Boros
to Alexander Klenin

2013.05.10. 19:56 keltez?ssel, Alexander Klenin ?rta:

Show quoted text 6 lines
You can use TChart.CurrentExtent property to determine currently visible chart area. See http://wiki.lazarus.freepascal.org/TAChart_documentation#Extents -- Alexander S. Klenin

CurrentExtent return Double type values and tried to convert to coordinates but no luck. I worked out a solution for myself. I will upload a diff and an example to bug tracker but cannot login into it yesterday and today.

Gabor