Mpandroidchart: Get current zoom level

Created on 4 Oct 2017  路  1Comment  路  Source: PhilJay/MPAndroidChart

In Google map for example, there is a function to get current zoom level, but it missing in MPChart.
Many user of our app request to save last zoom level they use and apply it when open app next time. The function like chart.getCurrentZoomLevel() and save it when app pause

Most helpful comment

I found a way ViewPortHandler viewPortHandler = chart.getViewPortHandler(); viewPortHandler.getScaleX()

>All comments

I found a way ViewPortHandler viewPortHandler = chart.getViewPortHandler(); viewPortHandler.getScaleX()

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vishvendu picture vishvendu  路  3Comments

DarkHelmet67 picture DarkHelmet67  路  3Comments

AndroidJiang picture AndroidJiang  路  3Comments

SutharRohit picture SutharRohit  路  3Comments

manucheri picture manucheri  路  3Comments