Just download the demo, the piechart activity inside setdata seekbar according to the code data set piechat commented, adding only a very simple array inside the data, but the chart just did not go in the color, click on what part of that part there is color, but do not the block is still no color, really do not understand, please enlighten #2151
Closed
Description
Just download the demo, the piechart activity inside setdata seekbar according to the code data set piechat commented, adding only a very simple array inside the data, but the chart just did not go in the color, click on what part of that part there is color, but do not the block is still no color, really do not understand, please enlighten
private double[] data = {1, 1, 1, 1};
// for (int i = 0; i < count; i++) {
// entries.add(new PieEntry((float) ((Math.random() * mult) + mult / 5), mParties[i % mParties.length]));
// }
for (int i = 0; i < data.length; i++) {
PieEntry pieEntry = new PieEntry((float) data[i], "T:" + i);
entries.add(pieEntry);
}
Metadata
Metadata
Assignees
Labels
No labels