Search code examples
androidandroid-studiochartspie-chartspace

How to remove extra spacing from piechart?


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


Solution

  • 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