Line and area chart library for iOS
Double
instead of Float
(#87 by @trein)Int
x-valueshideHighlightLineOnTouchEnd
optionsetNeedsDisplay
when changing chart's series
propertyxLabelsOrientation
option to switch the x-labels orientation between horizontal or vertical (#61)xLabelsSkipLast
option. Set it to false
to print the last x-label (the last labe; may overflow the frame size, tough) (#37)This is a potentially breaking change
If you were setting the ChartSeries.colors
, you must set the new zeroLevel
value to 0
to keep the same functionality:
- mySeriesl.colors = (above: ChartsColors.redColor(), below: ChartsColors.blueColor())
+ mySeriesl.colors = (above: ChartsColors.redColor(), below: ChartsColors.blueColor(), 0)
This release upgrades the source code and examples to Swift 3.
Breaking changes
Chart.addSeries(series: ChartSeries)
method has been renamed to Chart.add(series: ChartSeries)
Add the missing public initializer Chart(frame: CGFrame)
.
Updated to work with cocoapods.
First official release!