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

Highlighting on a scrollable line graph #3539

Closed
varunnar opened this issue Jun 28, 2018 · 4 comments
Closed

Highlighting on a scrollable line graph #3539

varunnar opened this issue Jun 28, 2018 · 4 comments

Comments

@varunnar
Copy link

varunnar commented Jun 28, 2018

So I am using the the ios charts library and limiting the view to about 20 data points at a time. Because of that I of course have a scrollable view. Furthermore, I am restraining the y of the chart so that the user can't get lost if they go too far up. Now with the work I am doing, I am trying to highlight portions of the graph by dragging my finger over them. I already have an implementation which will allow me to long tap and drag over the chart and reads the data points from it. However, I want to have the background of the chart where I drag change color so I know what dragged over. Is there a way to change the color of the background for a portion of the graph.
**Xcode version: 9.4.1
**Swift version: 4

@liuxuan30
Copy link
Member

Jesus, would you reorg your words? Not able to read at all.

@varunnar
Copy link
Author

I shortened it and reworded my question so that it would be easier to read. Thanks for being super considerate. (That was sarcastic if you didn't realize it. And if you didn't realize it I can try and "reorg" it so that it's more obvious)

@liuxuan30
Copy link
Member

man, use multiple lines, putting them into one line takes too long to read.

@liuxuan30
Copy link
Member

the background color by default is for the chart view, we don't have color of the background for a portion of the graph.

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