CSPieChart alternatives and similar libraries
Based on the "Charts" category.
Alternatively, view CSPieChart alternatives based on common mentions on social networks and blogs.
-
Charts
Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart. -
PNChart
A simple and beautiful chart lib used in Piner and CoinsMan for iOS -
Scrollable-GraphView
An adaptive scrollable graph view for iOS to visualise simple discrete datasets. Written in Swift. -
JBChartView
iOS-based charting library for both line and bar graphs. -
BEMSimpleLineGraph
Elegant Line Graphs for iOS (charting library). -
SwiftCharts
Easy to use and highly customizable charts library for iOS -
TEAChart
Simple and intuitive iOS chart library. Contribution graph, clock chart, and bar chart. -
Graphs
Light weight charts view generater for iOS. Written in Swift. -
XJYChart
iOS Chart. Support animation, click, scroll, area highlight. -
EChart
iOS/iPhone/iPad Chart, Graph. Event handling and animation supported. -
FSInteractiveMap
A charting library to visualize and interact with a vector map on iOS. It's like Geochart but for iOS! -
PieCharts
Easy to use and highly customizable pie charts library for iOS -
ANDLineChartView
ANDLineChartView is easy to use view-based class for displaying animated line chart. -
TWRCharts
An iOS wrapper for ChartJS. Easily build animated charts by leveraging the power of native Obj-C code. -
Dr-Charts
Dr-Charts is a highly customisable, easy to use and interactive chart / graph framework in Objective-C. -
JTChartView
JTChartView is the new lightweight and fully customizable solution to draw a chart. -
DDSpiderChart
Easy to use Spider (Radar) Chart library for iOS written in Swift. -
MSBBarChart
MSBBarChart is an easy to use bar chart library for iOS
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of CSPieChart or a related project?
README
CSPieChart
[](Example/ReadMeResource/gif1.gif) [](Example/ReadMeResource/gif2.gif) [](Example/ReadMeResource/gif3.gif) [](Example/ReadMeResource/gif4.gif)
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
CSPieChart is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CSPieChart"
Useage
[](Example/ReadMeResource/view1.png) [](Example/ReadMeResource/view2.png) [](Example/ReadMeResource/view3.png)
First Step - import CSPieChart
to your project
Second Step - You should CSPieChartData
. This is model for piechart.
let data = CSPieChartData(key: "test", value: 70)
Third Step - Add a delegate CSPieChartDataSource
& CSPieChartDelegate
to your class & add two delegate methods
public protocol CSPieChartDataSource {
/// Component data
func numberOfComponentData() -> Int
func pieChart(_ pieChart: CSPieChart, dataForComponentAt index: Int) -> CSPieChartData
/// Component colors
func numberOfComponentColors() -> Int
func pieChart(_ pieChart: CSPieChart, colorForComponentAt index: Int) -> UIColor
/// If you are implement this, you can show subView. example) 'UIImageView' or 'UILable'
@objc optional func numberOfComponentSubViews() -> Int
@objc optional func pieChart(_ pieChart: CSPieChart, viewForComponentAt index: Int) -> UIView
/// If you are implement this, you apply color to line path
/// Otherwish line color is applied default 'black'
@objc optional func numberOfLineColors() -> Int
@objc optional func pieChart(_ pieChart: CSPieChart, lineColorForComponentAt index: Int) -> UIColor
}
public protocol CSPieChartDelegate {
/// Component select
@objc optional func pieChart(_ pieChart: CSPieChart, didSelectComponentAt index: Int)
}
You can set some options
// Pie chart radius rate that is percentage of frames in the superview. default is 0.7
public var pieChartRadiusRate: CGFloat = 0.7
// Pie chart line length between component and subview. default is 10
public var pieChartLineLength: CGFloat = 10
// This is piechart component selecting animation. default is none
public var seletingAnimationType: SelectingAnimationType = .none
}
Last Step - You must call show
.
Example
func ViewDidLoad(...) {
....
pieChart.show(animated: true)
}
If you need more information, check example
Author
chansim.youk, [email protected]
License
CSPieChart is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the CSPieChart README section above
are relevant to that project's source code only.