Chart.PanOffset values

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

    Posted 03 Apr Link to this post

    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!

     

  2. Nikolay
    Admin
    Nikolay avatar
    15 posts

    Posted 04 Apr 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.

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