Mpandroidchart: Reduce the top space between the chart (PieChart) and the Legend

Created on 4 May 2016  路  2Comments  路  Source: PhilJay/MPAndroidChart

How can I remove the blank space between the chart and the legend. I'm using PieChart. In this stackoverflow question say that should use the setOffset method, but in the last version this method doesn't exists, and the setMinOffset doesn't work.

Most helpful comment

Try this... work for me
pieChart.setExtraOffsets(-10,-10,-10,-10);

All 2 comments

Cou can achieve that by simply making the chart view smaller or mor proportional in terms of width and height.

Try this... work for me
pieChart.setExtraOffsets(-10,-10,-10,-10);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SutharRohit picture SutharRohit  路  3Comments

AndroidJiang picture AndroidJiang  路  3Comments

tsengvn picture tsengvn  路  3Comments

Nima9Faraji picture Nima9Faraji  路  3Comments

Giammaofwar picture Giammaofwar  路  3Comments