diff --git a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/PieChartActivity.java b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/PieChartActivity.java index 830025fbb1..e01fccaad5 100644 --- a/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/PieChartActivity.java +++ b/MPChartExample/src/main/java/com/xxmassdeveloper/mpchartexample/PieChartActivity.java @@ -123,7 +123,7 @@ private void setData(int count, float range) { // the chart. for (int i = 0; i < count ; i++) { entries.add(new PieEntry((float) ((Math.random() * range) + range / 5), - parties[i % parties.length], + entries[i % entries.length], getResources().getDrawable(R.drawable.star))); }