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.
Asked
Active
Viewed 5,888 times
9
-
1Welcome to Stack Overflow! What code do you already have? Have you tried any code and found it not working? – Phrogz Aug 01 '16 at 22:41
-
1Can you please put image here, so we can understand exact requirement. – Hasya Aug 02 '16 at 05:46
1 Answers
31
Set the mode
in the LineChartDataSet
:
let dataSet = LineChartDataSet(values: entries, label: "Foo")
dataSet.mode = .cubicBezier

Andrea Gottardo
- 1,329
- 11
- 23

Arien Malec
- 903
- 7
- 9