Chart.PanOffset values

2 posts, 0 answers
  1. Viollier
    Viollier avatar
    11 posts
    Member since:
    Jul 2016

    Posted 03 Apr 2017 Link to this post


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

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

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



  2. Nikolay
    Nikolay avatar
    37 posts

    Posted 04 Apr 2017 Link to this post

    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.

    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
Back to Top