-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Fill area between two line in Line chart #1032
Comments
Well I just met the same task recently. So there are two options:
|
Ok second option i have already tried with the high on first and below in second. |
I write a small sort to make sure the higher line always renders first. If in your case, use can change the order, the higher line will cover the lower line, we can't avoid that. |
i am not in hurry with this request but I hope this is good part for this lib, just for curiosity is there any chance of Android lib have implemented same kind of functionality so that we can get help from that ? |
The functionality in Android and Swift are the same. That's the point of a cross-platform library |
@danielgindi yes mate I totally agree with your point my purpose to point out the Android lib is to know whether somebody have same kind of request or not. |
did u find any logic for this?? If so please post it |
@BhargaviSridharan Nope |
Please see the Filled Line Chart demo on |
I am using setFillFormatter, but it's not helping me and, setfillColor() crosses the second line as there is no way to stop the first line at Y values of the second line.
Is there any way to find the Y value of the second line for each X of first line? I see both dataSet and dataProvider returns fixed values for each call of getFillLinePosition. |
As you can see Two
LineChartDataSet
with the Gradient fillNow i want to fill area between Two line .
Workaround i have tried so far
chartDataSet2.drawFilledEnabled = false
in below line but not working the Gradient is still display in below line.Let me know if its possible or not or i have to customize my self.
The text was updated successfully, but these errors were encountered: