ViewSmith get value after zoom for GetChartDiameterAndCenter

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
lokesh
Posts: 45
Joined: Tue Feb 14, 2017 8:48 am

ViewSmith get value after zoom for GetChartDiameterAndCenter

Post by lokesh » Wed Apr 26, 2017 1:06 pm

Hi,

I am handling zoom in smith chart using Zoomed event. Now, when I do zoom in or zoom out, the values that I get from chart.ViewSmith.GetChartDiameterAndCenter and also from chart.ViewSmith.Axis.ValueToCoord are the values of the chart before the zoom action. Is there a way to get the updated values?

Thanks.

Lokesh

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: ViewSmith get value after zoom for GetChartDiameterAndCe

Post by ArctionKestutis » Thu Apr 27, 2017 2:05 pm

Hi Lokesh,

Then Zoomed event fired probably only _chart.ViewSmith.ZoomScale is correct. Please subscribe to _chart.AfterRendering event to read updated information of _chart.ViewSmith.ZoomCenter or _chart.ViewSmith.GetChartDiameterAndCenter().

All the best,
Kestutis

Post Reply