SimplePieChart.zip
PieChartView *_pieChart;
CGRect rect = CGRectMake(33.0f, 180.0f, 250, 250);
_pieChart = [[PieChartView alloc] initWithFrame:rect];
[self.view addSubview:_pieChart];
[_pieChart clearItems];
[_pieChart setGradientFillStart:0.3 andEnd:1.0];
[_pieChart setGradientFillColor:PieChartItemColorMake(0.0, 0.0, 0.0, 0.7)];
[_pieChart addItemValue:0.4 withColor:PieChartItemColorMake(1.0, 0.5, 1.0, 1.0)];
[_pieChart addItemValue:0.1 withColor:PieChartItemColorMake(0.5, 1.0, 0.5, 0.5)];
[_pieChart addItemValue:0.3 withColor:PieChartItemColorMake(0.5, 0.5, 1.0, 0.5)];
[_pieChart addItemValue:0.2 withColor:PieChartItemColorMake(0.5, 0.5, 1.0, 1.0)];
_pieChart.alpha = 0.0;
[_pieChart setHidden:NO];
[_pieChart setNeedsDisplay];
// Animate the fade-in
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
_pieChart.alpha = 1.0;
[UIView commitAnimations];
참고 블로그 : http://gyuha.tistory.com/395
오픈 소스 그래프
http://code.google.com/p/core-plot/
그외 차트 그래프
http://blog.oofn.net/projects/graphx/
http://developer.snowmintcs.com/frameworks/sm2dgraphview/index.html
http://code.google.com/p/s7graphview/
'개발도구 > iOS - 아이폰 개발' 카테고리의 다른 글
[아이폰] storyboard turorial (0) | 2012.05.15 |
---|---|
[아이폰] 기본 기능 function (0) | 2012.05.14 |
[아이폰] how to use JSON in your app (0) | 2012.05.08 |
[아이폰] UIImage : 웹 그림 표시 (0) | 2012.05.08 |
[아이폰] 페이스북 앱 만들기 설정 _ hackbook (0) | 2012.05.01 |