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 can I select the close value in the candle chart view? #1155

Closed
GitHubWanglei opened this issue Jun 20, 2016 · 2 comments
Closed

How can I select the close value in the candle chart view? #1155

GitHubWanglei opened this issue Jun 20, 2016 · 2 comments

Comments

@GitHubWanglei
Copy link

GitHubWanglei commented Jun 20, 2016

When the candle be selected, I want the close value be selected. What should I do?
e8c38fb7-adde-45cf-98f2-7bbde58043c1

@liuxuan30
Copy link
Member

hmm, please check the candle stick chart renderer func drawHighlighted, you should be highlight anything you like there

@GitHubWanglei
Copy link
Author

Thank you very much!
I have solved this problem in func drawHighlighted, just change the y value in the func:

let lowValue = CGFloat(e.low) * animator.phaseY
let highValue = CGFloat(e.high) * animator.phaseY
let y = (lowValue + highValue) / 2.0

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