Mpandroidchart: cannot reset zoom

Created on 10 Dec 2018  路  1Comment  路  Source: PhilJay/MPAndroidChart

null string on iaxisvalueformatter

barChart.resetZoom(); not works so i cannot see x Axis as seen on the picture.

what should i do

Most helpful comment

chart.fitScreen();
This func can reset zoom.
/**
* Resets all zooming and dragging and makes the chart fit exactly it's
* bounds.
*/
public void fitScreen() {
Matrix save = mFitScreenMatrixBuffer;
mViewPortHandler.fitScreen(save);
mViewPortHandler.refresh(save, this, false);

    calculateOffsets();
    postInvalidate();
}

>All comments

chart.fitScreen();
This func can reset zoom.
/**
* Resets all zooming and dragging and makes the chart fit exactly it's
* bounds.
*/
public void fitScreen() {
Matrix save = mFitScreenMatrixBuffer;
mViewPortHandler.fitScreen(save);
mViewPortHandler.refresh(save, this, false);

    calculateOffsets();
    postInvalidate();
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

SutharRohit picture SutharRohit  路  3Comments

andreyfel picture andreyfel  路  3Comments

galex picture galex  路  3Comments

botondbutuza picture botondbutuza  路  3Comments

chathudan picture chathudan  路  3Comments