You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that the easiest way is to create two separate LineChart. You just need to separate all X and Y values for solid and dashed arrays.
1) let lineChartDataSet1 = LineChartDataSet(...) lineChartDataSet1.setColor(.blue)
2) let lineChartDataSet2 = LineChartDataSet(...) lineChartDataSet2.lineDashLengths = [5, 5] lineChartDataSet2.setColor(.blue)
let lineChartData = LineChartData(dataSets: [lineChartDataSet1, lineChartDataSet2])
Is there a way to draw a solid line that also has a dashed segment?
Here is an example.
The text was updated successfully, but these errors were encountered: