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

Get entry location in view when chart value is selected? #1399

Closed
kientux opened this issue Sep 6, 2016 · 1 comment
Closed

Get entry location in view when chart value is selected? #1399

kientux opened this issue Sep 6, 2016 · 1 comment

Comments

@kientux
Copy link

kientux commented Sep 6, 2016

I want to implement -chartValueSelected:entry:dataSetIndex:highlight: to show my custom marker (not a subclass of ChartMarker), and I have to know the location of entry in LineChartView. So is there anyway to get that? Location I mean in CGPoint, not value of the entry.

@kientux
Copy link
Author

kientux commented Sep 6, 2016

Oh sorry, 3 mins after create this issue, I found out the method

- (CGPoint)getMarkerPositionWithEntry:(ChartDataEntry * _Nonnull)e
                            highlight:(ChartHighlight * _Nonnull)highlight;

to get position of entry in chart view.

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

1 participant