FSLineChart
A line chart library for iOS.
Installing FSLineChart
Add the contents of the FSLineChart project to your directory or simply add the following line to your Podfile:
pod "FSLineChart"
How to use
FSLineChart is a subclass of UIView so it can be added as regular view. The block structure allows you to format the values displayed on the chart the way you want. Here is a simple swift example:
Or in objective-c
You can also set several parameters. Some of the parameters including color
and fillColor
must be set before calling the setChartData
method. All those properties are available: