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

Android chart series data always visible

4 Answers 45 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Thean Hoo
Top achievements
Rank 1
Thean Hoo asked on 28 Oct 2015, 11:17 AM

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

Sort by
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
Victor
Telerik team
answered on 29 Oct 2015, 08:22 AM
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
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
Todor
Telerik team
answered on 03 Nov 2015, 12:40 PM
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
Tags
Chart
Asked by
Thean Hoo
Top achievements
Rank 1
Answers by
Thean Hoo
Top achievements
Rank 1
Victor
Telerik team
Todor
Telerik team
Share this question
or