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

specify certain point custom color #1144

Closed
L-Jovi opened this issue Jun 15, 2016 · 7 comments
Closed

specify certain point custom color #1144

L-Jovi opened this issue Jun 15, 2016 · 7 comments

Comments

@L-Jovi
Copy link

L-Jovi commented Jun 15, 2016

hi, what config could I custom color of certain point in bar chart and line chart?
like image below which custom the red color of certain point.

image

thanks for your time.

@liuxuan30
Copy link
Member

well... if it's not about highlight, then you have to change the code I guess. Can it be highlight?

@L-Jovi
Copy link
Author

L-Jovi commented Jun 16, 2016

@liuxuan30 I think that point may always display red color without any gestures,

and I find my colleague implement it by highcharts, but I have no idea to do it in iOS with our smart Charts, by the way, I don't want to use webview :D

and idea?

thanks for your reply :)

@liuxuan30
Copy link
Member

you can create a ChartHighlight object to highlight some bars in code, so you don't have to use gestures, and you have to turn it off. Will you need gestures in the future?

The idea is simple, get touch events -> create ChartHighlight object -> render the highlight

@L-Jovi
Copy link
Author

L-Jovi commented Jun 17, 2016

well.. a foolish question, is touch events defined in Utils/ChartPlatform.swift?

I find many swift files which had event method..

thanks for patience ..

@liuxuan30
Copy link
Member

touch events handled in BarLineChartViewBase I remember. If it's pie chart, it's in pie chart base

@danielgindi
Copy link
Collaborator

You don't have to handle touches to add highlights. You can just set the highlighted entries...

@L-Jovi
Copy link
Author

L-Jovi commented Aug 16, 2016

I implemented it, thanks for your patience :)

@L-Jovi L-Jovi closed this as completed Aug 16, 2016
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

3 participants