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 tomake leftAxis.inverted and LineChartDataSet.fillColor not inverted #2798

Closed
iOSCoderJane opened this issue Sep 19, 2017 · 3 comments
Closed

Comments

@iOSCoderJane
Copy link

this picture is normal:
normal

and this picture is make chartView.leftAxis.inverted = true
inverted

we can see that left.inverted make the fillColor also inverted, I want the fillColor not inverted. how to make that style?

@liuxuan30
Copy link
Member

liuxuan30 commented Sep 19, 2017

This is the correct implementation so far. Filling always start from the lower y axis (bottom side). If you want the opposite filling, you have to override the filling method yourself.

@iOSCoderJane
Copy link
Author

ok, I want to know how to override the filling method by myself. which class or which prootocal. thank you

@liuxuan30
Copy link
Member

it's not that easy. You have to understand how the line chart renderer works. But basically, start from drawLinear() which contains the filling func.

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