Repository navigation
PieChart: extra padding at top #137
Copy link
Copy link
Closed
Labels
bugconfirmed bugs or otherwise incorrect behaviorconfirmed bugs or otherwise incorrect behavior
Description
Activity
My code is so simple as bundled samples, here it is:
<com.github.mikephil.charting.charts.PieChart android:id="@+id/chart" android:layout_width="match_parent" android:layout_centerInParent="true" android:layout_height="345dp" />
mChart = (PieChart) findViewById(R.id.chart); mChart.setDrawLegend(true); setData(3, 100); // the same as in examples mChart.animateXY(1500, 1500); Legend l = mChart.getLegend(); l.setPosition(LegendPosition.RIGHT_OF_CHART);
Is there any way just to remove this extra padding at top?
Thank you in advance!
Seems like an issue in the
calculateOffsets()method of thePieChart. I'm looking into it.Regards,
PhilThank you for taking time!
- added a commit that references this issue
on Oct 8, 2014 - addedbugconfirmed bugs or otherwise incorrect behaviorconfirmed bugs or otherwise incorrect behavior
on Oct 8, 2014 Please try out the latest .jar file, the problem should be fixed now.
Hi @PhilJay,
sorry for delay and big thanks for hot fix from your side!
Now it works fine for me!@PhilJay i want to set some extra padding in barchart bottom..which method ?
@LeoYe168, give a try via Chart.setExtraBottomOffset(n); //n > default 15
Reacted by Travis O'Donnell, 小刘子, Vahid Moradi, Khadija Hameed and doctorrmcbReacted by 小刘子@coolscott 3ks
- added a commit that references this issue
on Apr 1, 2019
Metadata
Metadata
Assignees
Labels
bugconfirmed bugs or otherwise incorrect behaviorconfirmed bugs or otherwise incorrect behavior

Hi @PhilJay,
just wanna to say you many thanks for your great library.
I'm playing with PieChart and I found some extra padding above it when using Legend.

Could you please help me to figure out how to fix it?