Open AkshayGangurde opened 7 years ago
i think you need to add below code before mChart.invalidate() mChart.notifyDataSetChanged()
Hi, due to your offset values this things happening. Once check your offset values mChart.setExtraOffsets(-15, -50, 10, 10); and changed to mChart.setExtraOffsets(0, 0, 0, 0);
If you look into the images the behavior is changed just because of data array passed to it. Nothing is changed in code. XML:
<com.github.mikephil.charting.charts.PieChart android:id="@+id/pChart" android:layout_width="0dp" android:layout_height="300dp" android:layout_weight="1.3"/>
JAVA: `private void setData(int[] data, String sAvg) { mChart.setUsePercentValues(true); mChart.getDescription().setEnabled(false); mChart.setExtraOffsets(-15, -50, 10, 10); mChart.setDragDecelerationFrictionCoef(0.95f);Please suggest something on this issue.