I am working on an Android app and i need to plot some data on line chart. I am using the Anychart https://github.com/AnyChart/AnyChart-Android. I need to zoom and drag the chart but I don't know how to do it. https://github.com/AnyChart/AnyChart-Android/blob/master/sample/src/main/java/com/anychart/sample/charts/LineChartActivity.java here is sample code for the chart.
Asked
Active
Viewed 901 times
1 Answers
1
In the current version of the library, the Line chart supports xScroller feature. A user can use it to drag the chart and zooming. To enable it simply add the following line to the sample code you provided:
cartesian.xScroller(true);

AnyChart Support
- 3,770
- 1
- 10
- 16
-
Is that the best chart library which supports android studio? – tedo3637 Mar 13 '20 at 16:52
-
We seek to be the best! – AnyChart Support Mar 16 '20 at 02:21