1

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.

tedo3637
  • 37
  • 5

1 Answers1

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);

Here is the result: enter image description here

AnyChart Support
  • 3,770
  • 1
  • 10
  • 16