This question is locked. New answers and comments are not allowed.
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?
4 Answers, 1 is accepted
0
Thean Hoo
Top achievements
Rank 1
answered on 29 Oct 2015, 06:09 AM
If auto-scaling is not supported, is there a way I can do it using a custom renderer?
0
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
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
0
Thean Hoo
Top achievements
Rank 1
answered on 29 Oct 2015, 08:54 AM
Referring to the attached screenshots, the vertical axis automatically adjusts itself so that the candlesticks are always displayed.
0
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
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