We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've set the fillColor property of an instance of LineChartDataSet.
fillColor
LineChartDataSet
I expected the line chart to fill with the specified color.
The line chart fills with the specific color but it goes above/below the zero line.
See below:
Charts version/Branch/Commit Number: Charts, 3.0.5 Xcode version: Xcode 9.2 Swift version: Swift 4 Platform(s) running Charts: iOS macOS version running Xcode: macOS High Seirra 10.13.3
The text was updated successfully, but these errors were encountered:
Found a solution to this:
class LineChartFillFormatter: IFillFormatter { func getFillLinePosition(dataSet: ILineChartDataSet, dataProvider: LineChartDataProvider) -> CGFloat { return 0 } }
dataSet.fillFormatter = LineChartFillFormatter()
Sorry, something went wrong.
This save my day when I try always to fill color below the line. Thank!
No branches or pull requests
What did you do?
I've set the
fillColor
property of an instance ofLineChartDataSet
.What did you expect to happen?
I expected the line chart to fill with the specified color.
What happened instead?
The line chart fills with the specific color but it goes above/below the zero line.
See below:
Charts Environment
Charts version/Branch/Commit Number: Charts, 3.0.5
Xcode version: Xcode 9.2
Swift version: Swift 4
Platform(s) running Charts: iOS
macOS version running Xcode: macOS High Seirra 10.13.3
Demo Project
The text was updated successfully, but these errors were encountered: