Skip to content

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

Description

@imgod1

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions