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

How to select the first pie in bar chart? #1301

Closed
Huang-Libo opened this issue Aug 9, 2016 · 2 comments
Closed

How to select the first pie in bar chart? #1301

Huang-Libo opened this issue Aug 9, 2016 · 2 comments

Comments

@Huang-Libo
Copy link

Huang-Libo commented Aug 9, 2016

I know the delegate 'chartValueSelected' , however it's called when user touches the bar chart, now I need the bar chart's first pie to be highlighted by defaul.

@liuxuan30
Copy link
Member

liuxuan30 commented Aug 10, 2016

manually create ChartHighlight objects and pass to chart, or check out highlightValue() in ChartViewBase

@Huang-Libo
Copy link
Author

I finally found a method to do this job :

  • (void)highlightValueWithXIndex:(NSInteger)xIndex dataSetIndex:(NSInteger)dataSetIndex callDelegate:(BOOL)callDelegate;

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