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

Selective fill colors on LineChartView #591

Closed
borut-t opened this issue Dec 4, 2015 · 3 comments
Closed

Selective fill colors on LineChartView #591

borut-t opened this issue Dec 4, 2015 · 3 comments

Comments

@borut-t
Copy link

borut-t commented Dec 4, 2015

I cannot found a solution for selective value (area bellow chart, not line) fill on line chart view.

Selective fill

Is there anything like that implemented yet?

@liuxuan30
Copy link
Member

Yes it is possible, as long as you get each closed path and fill it, but it seems not that easy. You have to do it on your own.

@borut-t
Copy link
Author

borut-t commented Dec 8, 2015

@liuxuan30 Can you point me in the right direction where could I find this paths?

@liuxuan30
Copy link
Member

Oh man, I'm afraid I cannot. It's quite complicated to figure out the right direction for filling different paths, especially thinking about negative + positive values.

What you could try is to look at drawHighlighted func, and try to calculate the rect you want to fill.

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