|
17 | 17 | import com.github.mikephil.charting.components.MarkerView; |
18 | 18 | import com.github.mikephil.charting.components.XAxis; |
19 | 19 | import com.github.mikephil.charting.components.YAxis; |
20 | | -import com.github.mikephil.charting.data.Entry; |
21 | 20 | import com.github.mikephil.charting.data.RadarData; |
22 | 21 | import com.github.mikephil.charting.data.RadarDataSet; |
| 22 | +import com.github.mikephil.charting.data.RadarEntry; |
23 | 23 | import com.github.mikephil.charting.formatter.AxisValueFormatter; |
24 | 24 | import com.github.mikephil.charting.interfaces.datasets.IDataSet; |
25 | 25 | import com.github.mikephil.charting.interfaces.datasets.IRadarDataSet; |
@@ -210,20 +210,20 @@ public void setData() { |
210 | 210 | float min = 20; |
211 | 211 | int cnt = 5; |
212 | 212 |
|
213 | | - ArrayList<Entry> yVals1 = new ArrayList<Entry>(); |
214 | | - ArrayList<Entry> yVals2 = new ArrayList<Entry>(); |
| 213 | + ArrayList<RadarEntry> yVals1 = new ArrayList<RadarEntry>(); |
| 214 | + ArrayList<RadarEntry> yVals2 = new ArrayList<RadarEntry>(); |
215 | 215 |
|
216 | 216 | // IMPORTANT: In a PieChart, no values (Entry) should have the same |
217 | 217 | // xIndex (even if from different DataSets), since no values can be |
218 | 218 | // drawn above each other. |
219 | 219 | for (int i = 0; i < cnt; i++) { |
220 | 220 | float val = (float) (Math.random() * mult) + min; |
221 | | - yVals1.add(new Entry(i, val)); |
| 221 | + yVals1.add(new RadarEntry(val)); |
222 | 222 | } |
223 | 223 |
|
224 | 224 | for (int i = 0; i < cnt; i++) { |
225 | 225 | float val = (float) (Math.random() * mult) + min; |
226 | | - yVals2.add(new Entry(i, val)); |
| 226 | + yVals2.add(new RadarEntry(val)); |
227 | 227 | } |
228 | 228 |
|
229 | 229 | RadarDataSet set1 = new RadarDataSet(yVals1, "Last Week"); |
|
0 commit comments