MagicPie alternatives and similar libraries
Based on the "Charts" category.
Alternatively, view MagicPie 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. -
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. -
CSPieChart
This is pie chart that is very easy to use and customizable design.
WorkOS - The modern identity platform for B2B SaaS
* 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 MagicPie or a related project?
README
MagicPie
Powerful pie layer for creating your own pie view. PieLayer provide great animation with simple usage.
The main advantage of that control that there is no worry about displaying of animation. Animation will display correctly even if you will add new elements during execution of another slice deleting animation. That's amazing! And here is no delegates. I like delegates, but in this case I think they are excess.
Be creative =)
Installation
Edit your PodFile
to include the following line:
pod 'MagicPie'
Then import the main header.
#import <MagicPieLayer.h>
Have a fun!
Swift Swift Swift Swift Swift
Okay, now when you are reading this, I recommend to you look the example #2 in Swift.
Example Usage
Create pie:
Obj-C
PieLayer* pieLayer = [[PieLayer alloc] init];
pieLayer.frame = CGRectMake(0, 0, 200, 200);
[self.view.layer addSublayer:pieLayer];
Swift
let pieLayer = PieLayer()
pieLayer.frame = CGRectMake(0, 0, 200, 200)
view.layer.addSublayer(pieLayer)
Add slices:
Obj-C
[pieLayer addValues:@[[PieElement pieElementWithValue:5.0 color:[UIColor redColor]],
[PieElement pieElementWithValue:4.0 color:[UIColor blueColor]],
[PieElement pieElementWithValue:7.0 color:[UIColor greenColor]]] animated:YES];
Swift
pieLayer.addValues([PieElement(value: 5.0, color: UIColor.redColor()),
PieElement(value: 4.0, color: UIColor.blueColor()),
PieElement(value: 7.0, color: UIColor.greenColor())], animated: true)
Change value with animation:
Obj-C
PieElement* pieElem = pieLayer.values[0];
[PieElement animateChanges:^{
pieElem.val = 13.0;
pieElem.color = [UIColor yellowColor];
}];
Swift
let pieElem = pieLayer.values[0]
PieElement.animateChanges {
pieElem.val = 13.0
pieElem.color = UIColor.yellowColor()
}
Delete slices:
Obj-C
[pieLayer deleteValues:@[pieLayer.values[0], pieLayer.values[1]] animated:YES];
Swift
pieLayer.deleteValues([pieLayer.values[0], pieLayer.values[1]], animated: true)
Contact
Alexandr Graschenkov: [email protected]
License
MagicPie is available under the MIT license.
Copyright © 2013 Alexandr Graschenkov.
*Note that all licence references and agreements mentioned in the MagicPie README section above
are relevant to that project's source code only.