FFCPieChart 1.0.0

FFCPieChart 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jan 2015

Maintained by Fabian Canas.




  • 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]];

Vertical Layout

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

FFCPieChart will be available through CocoaPods. To install it until then, add the following line to your Podfile:

pod "FFCPieChart"

Author

Fabian Canas (@fcanas)

License

FFCPieChart is available under the MIT license. See the LICENSE file for more info.