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

LineChartView: Using two different colors in one dataset #2871

Closed
mako9 opened this issue Oct 12, 2017 · 2 comments
Closed

LineChartView: Using two different colors in one dataset #2871

mako9 opened this issue Oct 12, 2017 · 2 comments

Comments

@mako9
Copy link

mako9 commented Oct 12, 2017

Hey there,
I'm trying to produce a LineChartView like in the image. It's a continuous moving line chart which changes the color when reaching a specified y-value.
How can I achieve something like this?
I already tried using two datasets combined but it doesn't work well.

bildschirmfoto 2017-10-12 um 16 01 03

Thank you,
Mario

@wjacker
Copy link
Contributor

wjacker commented Oct 18, 2017

Hi Marrio, I think you can try override drawLinearFill method for implement different color fill.

@liuxuan30
Copy link
Member

yes, but it seems requires lots of overriding. but you can get some idea from drawLinearFill though

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

3 participants