I'm new to iOS Charts, but I've figured out how to do many things with it. One thing I can't figure out (or find anywhere) is how to show the LineChartView as a spline instead of distinct lines to each data point. I want it to be smooth and flowing, not jagged.
Set the mode
in the LineChartDataSet
:
let dataSet = LineChartDataSet(values: entries, label: "Foo")
dataSet.mode = .cubicBezier
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With