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

mrZizik picture mrZizik  路  3Comments

AiTheAnswer picture AiTheAnswer  路  3Comments

thanhcly920 picture thanhcly920  路  3Comments

blotfi picture blotfi  路  3Comments

Nima9Faraji picture Nima9Faraji  路  3Comments