TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2015 |
Maintained by Fabian Canas.
Pie charts in iOS.
// self.topPieChart = [[FFCPieChart alloc] initWithFrame:...];
// self.middlePieChart = etc.
DataItem *dataItem1 = [[DataItem alloc] initWithColor:[UIColor redColor]
value:0.4];
DataItem *dataItem2 = [[DataItem alloc] initWithColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"texture"]]
value:02.5];
self.topPieChart.palette = [FFCPieChart grayPalette];
[self.topPieChart setDataItems:@[@2, @3, @4, dataItem1, dataItem2]];
self.topPieChart.strokeColor = [UIColor whiteColor];
self.topPieChart.strokeWidth = 2;
self.pieChart.palette = [FFCPieChart warmPalette];
[self.pieChart setDataItems:@[@1, @2, @3, @4]];
self.pieChart.pieHole = 0.5;
self.pieChart.strokeWidth = 0.5;
[self.bottomPieChart setDataItems:@[@17, @27, @13, @24, @32, @12, @55]];
To run the example project, clone the repo, and run pod install
from the Example directory first.
FFCPieChart will be available through CocoaPods. To install it until then, add the following line to your Podfile:
pod "FFCPieChart"
FFCPieChart is available under the MIT license. See the LICENSE file for more info.