This is a migrated thread and some comments may be shown as answers.

Chart.PanOffset values

1 Answer 55 Views
Chart - Xamarin.Android
This is a migrated thread and some comments may be shown as answers.
Viollier
Top achievements
Rank 1
Viollier asked on 03 Apr 2017, 02:40 PM

Hello,

We are trying to set the Chart.PanOffset X value to -23356, but when debugging, we are reading -19475.

Chart.BeginUpdate();
Chart.Zoom = new RadSize(zoomX, zoomY);
Chart.PanOffset = new RadPoint(-panX, -panY);
Chart.EndUpdate();

Does anyone know if the PanOffset has a min/max value?

Thanks!

 

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 04 Apr 2017, 02:35 PM
Hello Viollier,

Thank you for writing.

If the PanOffset does not match certain requirements  it is automatically recalculated so this is an expected behavior. If you need more details about the minimum value of PanOffsetX it is calculated as following:

PanOffset MinValue = Chart PlotArea width -  (Zoom Factor * Chart PlotArea width)


The maximum value of the PanOffset property is always zero.

I hope that answer your question.

Regards,
Nikolay
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart - Xamarin.Android
Asked by
Viollier
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or