-
-
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
Line chart - LineChartDataSet Background color. #2272
Comments
Yeah, you would just have to set the chart data for the different data sets... |
No , I mean change grid background for different sets ,no line color etc :) |
self.lineChartView.gridBackgroundColor = UIColor.darkGray |
Yes but I want to divide grid by sets and set different color for different part of grid :) |
So first set: var dataSetFirst: Bool = false Then in your code set your bools: dataSetFirst = true Then when you initialize your graphs use if dataSetFirst == true { |
It won't work when I have 3 sets on 1 chart and I need 3 colors at the same time. |
Wait different "part" of the grid? I dont know if thats possible |
I get it now, sorry... |
Yes. 1 chart , 3 sets , 3 grid colors at the same time. No problem, thanks for your help anyway :) |
You could remove the grid and change the color of the line maybe? |
But Im not sure you can achieve what you want |
I guess I need to do sth with method "drawGridBackground" but i |
Hmm, well please post here if you figure it out, I would be interested in checking it out. |
if you mean fill beneath the line, enable |
Hi ,
I am new with charts so is it maybe easy way to have different background colors for each LineChartDataSet ? @liuxuan30
The text was updated successfully, but these errors were encountered: