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 follow the demo code "Combined Chart". There is my "LineChartDataSet" setting below.
set1 = LineChartDataSet(values: yVals, label: "") set1?.lineDashLengths = [1 ,0] set1?.lineWidth = 1.0 set1?.circleRadius = 4.0 set1?.drawCircleHoleEnabled = false set1?.formSize = 15.0 set1?.setColors(UIColor.red) set1?.setCircleColor(UIColor.red) set1?.mode = .stepped set1?.drawValuesEnabled = false
and BarChartDataSet setting.
set1 = BarChartDataSet(values: yVals, label: "") set1?.setColors(UIColor(red: 0.071, green: 0.459, blue: 0.835, alpha: 1.00)) set1?.drawValuesEnabled = false
How can I bring LineChartDataSet's line to front?
The text was updated successfully, but these errors were encountered:
set1 let dataLine = LineChartData() .... what you want... dataLine.addDataSet(set1)
set2 = BarChartDataSet(values: yVals, label: "") ... what you want .. let dataBar = BarChartData() dataBar.addDataSet(set2)
and
let data = CombinedChartData() data.lineData = dataLine data.barData = dataBar
Sorry, something went wrong.
My fault. I fix it by change
chartView.drawOrder = [DrawOrder.line.rawValue ,DrawOrder.bar.rawValue ]
to
chartView.drawOrder = [DrawOrder.bar.rawValue ,DrawOrder.line.rawValue ]
Sorry, my poor english that you can't understand my question...😂
No branches or pull requests
I follow the demo code "Combined Chart".
There is my "LineChartDataSet" setting below.
and BarChartDataSet setting.
How can I bring LineChartDataSet's line to front?
The text was updated successfully, but these errors were encountered: