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

AndroidJiang picture AndroidJiang  路  3Comments

vishvendu picture vishvendu  路  3Comments

manucheri picture manucheri  路  3Comments

ChenZeFengHi picture ChenZeFengHi  路  3Comments

galex picture galex  路  3Comments