Pie chart background changes when slice too small in MPAndroidChart

荒凉一梦 提交于 2020-01-01 15:35:25

问题


Please help me out from this problem in pie-chart using MPAndroidChart

This is a library bug.

When I have a pie slice that is too small, the color for that slice bleeds into the chart background. Like in the pictures below - you can see the yellow color has bled.

I'm setting static float data in setData():-

private void setData(int count, float range) {
     yVals1.add(new Entry(100.9f, 0));
     yVals1.add(new Entry(0.01f, 1));
}

It means when we enter a huge difference between 2 values then this problem will arise. Please help me out.

来源:https://stackoverflow.com/questions/37325659/pie-chart-background-changes-when-slice-too-small-in-mpandroidchart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!