Skip to content

Smallfan/SFPieChart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFPieChart

Pie Chart iOS with precent label to present.

This proj adapted from @VBPieChart(thx).
Animated Pie Chart control for iOS apps, based on CALayer.
Support to show precent value of each block in piechart.


Usage

_chartView = [[SFPieChart alloc] init];
[_chartView setFrame:CGRectMake(0, 0, 220, 220)];
[_chartView setCenter:CGPointMake(self.view.frame.size.width / 2, self.view.frame.size.height / 2)];
[_chartView setEnableStrokeColor:NO];
[_chartView setHoleRadiusPrecent:0.55];
[_chartView setShowLabels:YES];
[_chartView setLabelLineColor:[UIColor whiteColor]];
[_chartView setLabelTextColor:[UIColor whiteColor]];
[_chartView setMinPrecentForShowLabel:2];

NSArray *chartValues = @[...];

[_chartView setChartValues:_chartValues animation:YES options:SFPieChartAnimationFanAll];

--

Version: 0.1.0

Email: CoderSmallfan@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published