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

Draw Straight Line on Line Chart with 2 fingers and show the Gradient of it #652

Closed
krumiro opened this issue Jan 6, 2016 · 1 comment
Closed

Comments

@krumiro
Copy link

krumiro commented Jan 6, 2016

the 2 fingers pressed represent the 2 points through which the line passes throw. As I move the fingers the line passing through them is shown in real time until I decide the final position. When I lift the fingers the line remains there (and can be changed later). The drawn line also shows on top of itself a label indicating its value of y/x inclination (gradient). this gradient is also shown while choosing the line's position. All of this happening on top of a line chart (to add personalized gradient lines or trend lines to help visualize trends of the graph)

Anyone knows how to add this on ios-charts?

Thanks!!!

@liuxuan30
Copy link
Member

I guess first you need to organize the words, HARD to understand. Second, it seems you are aware what you want to achieve, so maybe you can ask more specific questions so we can better help.
Generally, you can draw anything you want if you know where to draw the line. You will need to modify the code and figure out what's the best way to add your coustomized lines. It's beyond ios-charts duty, so you should read the code and change it.

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