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

Display high and low value in chart but Displayed one only #2947

Closed
SagarDabhi opened this issue Nov 2, 2017 · 7 comments
Closed

Display high and low value in chart but Displayed one only #2947

SagarDabhi opened this issue Nov 2, 2017 · 7 comments

Comments

@SagarDabhi
Copy link

SagarDabhi commented Nov 2, 2017

trying to display high and low value on linechart but display only one value at a time
Code :

var highlight: Highlight? = nil
highlight = Highlight(x: maxValx, y: MaxvaL, dataSetIndex: 0)
highlight = Highlight(x: minValx, y: minVaL, dataSetIndex: 0)
viewChart.highlightValue(highlight)
@liuxuan30
Copy link
Member

don't understand. What you do want?

@SagarDabhi
Copy link
Author

@liuxuan30 Thanks For your response, i wanna highlight two value in graph without touch , right now able to highlight only one value without touch.
hope you can help me.

Thanks.

@SagarDabhi
Copy link
Author

@liuxuan30 understand or not?

@liuxuan30
Copy link
Member

liuxuan30 commented Nov 10, 2017

don't abuse using @.

use @objc open func highlightValues(_ highs: [Highlight]?) to highlight by code

@SagarDabhi
Copy link
Author

SagarDabhi commented Nov 10, 2017

Hello Liuxuan, Sorry but i wasn't say what you undestand.

I already highlight the value in graph but my question is how i highlight the two value at a time?

@liuxuan30
Copy link
Member

liuxuan30 commented Nov 15, 2017

and I already said, use @objc open func highlightValues(_ highs: [Highlight]?) to highlight multiple values. don't you see it takes an array?

@SagarDabhi
Copy link
Author

Thank you so much @liuxuan30, really I didn't see this is array.

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