How to remove extra spacing from piechart?

2019-03-04 06:26发布

I am working on pie-chart. problem is it keep spacing around piechart. how can i remove extra spacing from piechart.

enter image description here

Your answer would be appreciated

2条回答
啃猪蹄的小仙女
2楼-- · 2019-03-04 07:04

try calling setOffsets(float left, float top, float right, float bottom) on the Chart

EX

chart.setViewPortOffsets(0f, 0f, 0f, 0f);

check Modifying the Viewport

查看更多
\"骚年 ilove
3楼-- · 2019-03-04 07:09

I had the same problem and solved it by adding below line to dataset:

dataSet.setSelectionShift(0f);
查看更多
登录 后发表回答