From 22a445dea42e526ce2b85dc4021d4fb7d01bca36 Mon Sep 17 00:00:00 2001 From: Parth Waidya Date: Sun, 7 Feb 2021 18:20:07 +0530 Subject: [PATCH] small bug fix should be entries instead of parties on line 125 --- .../com/xxmassdeveloper/mpchartexample/PieChartActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); }