If you want to show some data with a visual funnel chart you can you use SHFunnelChart easily.
Uou can customize as much as you can
Colors, fonts, segments, values and all things can be set
Use shadows for right or left side of Funnel Chart
Use animation for showing the chart
- iOS 11.0+
- Xcode 9+
SHSegmentedControl is available through Swift Package Manager. To install
it, simply go to Xcode under File > Swift Packages > Add Package Dependency...
If you prefer not to use SPM, you can integrate SHSegmentedControl into your project manually.
You can use SHFunnelChart from storyboard easily.
funnelChart.animateIntoViewWhenPropertiesChange = true
funnelChart.values = [funnelRegisterCount, donePackageCount, donePickUpCount, morThanTwoPickUpCount]
funnelChart.drawFunnelLeftShadow = true
funnelChart.horizontalLinesThickness = 0.0
funnelChart.colorPalette = [#colorLiteral(red: 0.3529411765, green: 0.7843137255, blue: 0.9803921569, alpha: 1), #colorLiteral(red: 0.4352941176, green: 0.4431372549, blue: 0.4745098039, alpha: 1), #colorLiteral(red: 0.3921568627, green: 0.737254902, blue: 0.168627451, alpha: 0.7340806935), #colorLiteral(red: 1, green: 0.5843137255, blue: 0, alpha: 0.7659460616) ]
funnelChart.font = UIFont.IRANSans(size: 16)!
funnelChart.drawHorizontalLines = true
funnelChart.drawLabels = true
Feel free to submit Pull Requests or send me your feedback and suggestions!
Shayan Mehranpoor
SHFunnelChart is available under the MIT license. See the LICENSE file for more info.