Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pie chart draws labels for all slices, not just selected #188

Closed
psyren89 opened this issue Sep 23, 2015 · 2 comments
Closed

Pie chart draws labels for all slices, not just selected #188

psyren89 opened this issue Sep 23, 2015 · 2 comments
Labels

Comments

@psyren89
Copy link

screen shot 2015-09-23 at 3 56 15 pm

List<SliceValue> values = new ArrayList<>(size);
...
SliceValue sliceValue = new SliceValue(duration, colour);
sliceValue.setLabel(percentage);
values.add(sliceValue);
...
return new PieChartData(values);
...
data.setHasLabelsOnlyForSelected(true);

this.pieChart.setPieChartData(data);
@lecho lecho added the bug label Sep 27, 2015
@lecho lecho closed this as completed in 21f28cd Sep 27, 2015
@lecho
Copy link
Owner

lecho commented Sep 27, 2015

You are right, it was a bug. I've just pushed fix in version 1.5.8. It should be available in maven central in few next hours. Thanks.

@asgairola
Copy link

I want to set the index of the previous slice selected on redrawing of the chart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants