You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
imgod1 opened this issue
Aug 15, 2016
· 2 comments
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);
}
The text was updated successfully, but these errors were encountered:
oh,im so sorry for my poor english,
the problem is:
in the piechart activity
Method setData(int ,int)
// for (int i = 0; i < count; i++) {
// entries.add(new PieEntry((float) ((Math.random() * mult) + mult / 5), mParties[i % mParties.length]));
// }
replace to
private double[] data = {1, 1, 1, 1};
for (int i = 0; i < data.length; i++) {
PieEntry pieEntry = new PieEntry((float) data[i], "T:" + i);
entries.add(pieEntry);
}
the chart is crazy...
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]));
// }
The text was updated successfully, but these errors were encountered: