Android chart series data always visible

5 posts, 0 answers
  1. Thean Hoo
    Thean Hoo avatar
    8 posts
    Member since:
    Jun 2015

    Posted 28 Oct 2015 Link to this post

    In Android chart, is there a way to limit vertical panning and zooming to ensure series data is always visible?

    In other words, is there a way to auto-scale the vertical axis?

     

  2. Thean Hoo
    Thean Hoo avatar
    8 posts
    Member since:
    Jun 2015

    Posted 29 Oct 2015 Link to this post

    If auto-scaling is not supported, is there a way I can do it using a custom renderer?

     

  3. DevCraft banner
  4. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 29 Oct 2015 Link to this post

    Hi Yew Hoo,

    Thanks for writing.
    I am not sure what you mean by auto-scaling. Can you please explain in more detail? A screenshot or an image would be useful.

    You can limit zooming and panning to be only vertical or only horizontal by tweaking the ChartPanAndZoomBehavior's ZoomMode and PanMode properties. They can be set to horizontal, vertical or none.

    Regards,
    Victor
    Telerik
    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
  5. Thean Hoo
    Thean Hoo avatar
    8 posts
    Member since:
    Jun 2015

    Posted 29 Oct 2015 in reply to Victor Link to this post

    Referring to the attached screenshots, the vertical axis automatically adjusts itself so that the candlesticks are always displayed.

     

  6. Todor
    Admin
    Todor avatar
    778 posts

    Posted 03 Nov 2015 Link to this post

    Hello Yew,

    As Victor mentioned what you can do with ChartPanAndZoomBehavior is to limit the pan and/or zoom to horizontal through the Pan and Zoom modes, which is explained here. If I understand correctly, your scenario differs in a way that you want to be able to zoom in both directions, but the vertical zoom should not be on the place of the gesture, but on the place of the series, which is not currently supported and differs from this behavior's implementation.

    Don't hesitate to get back to us if you have other questions.

    Regards,
    Todor
    Telerik
    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
DevCraft banner