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

PieChart chartValueSelected don't return the good entry #48

Closed
AmandineDB opened this issue Apr 24, 2015 · 1 comment
Closed

PieChart chartValueSelected don't return the good entry #48

AmandineDB opened this issue Apr 24, 2015 · 1 comment

Comments

@AmandineDB
Copy link

Hello,

on the function for Pie chart
-(void)chartValueSelected:(ChartViewBase * __nonnull)chartView entry:(ChartDataEntry * __nonnull)entry dataSetIndex:(NSInteger)dataSetIndex highlight:(ChartHighlight * __nonnull)highlight

the entry is not good and dataSetIndex is set to 0

could you explained me what i must do for getting the good entry?

Have a good day

Amandine

@danielgindi
Copy link
Collaborator

The entry is good. You are probably looking for xIndex, not dataSetIndex.

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

No branches or pull requests

2 participants