Skip to content

Commit 2fc56c5

Browse files
committed
Improve example
1 parent 61aeacd commit 2fc56c5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

MPChartExample/src/com/xxmassdeveloper/mpchartexample/listviewitems/PieChartItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public View getView(int position, View convertView, Context c) {
7979

8080
// do not forget to refresh the chart
8181
// holder.chart.invalidate();
82-
holder.chart.animateXY(900, 900);
82+
holder.chart.animateY(900);
8383

8484
return convertView;
8585
}

MPChartExample/src/com/xxmassdeveloper/mpchartexample/realm/RealmWikiExample.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ protected void onCreate(Bundle savedInstanceState) {
3939
setup(lineChart);
4040
setup(barChart);
4141

42+
lineChart.setExtraBottomOffset(5f);
43+
barChart.setExtraBottomOffset(5f);
44+
4245
lineChart.getAxisLeft().setDrawGridLines(false);
4346
lineChart.getXAxis().setDrawGridLines(false);
4447
barChart.getAxisLeft().setDrawGridLines(false);

0 commit comments

Comments
 (0)