'[아이폰] 그래프 graph 원그래프 chart 차트'에 해당되는 글 1건

  1. 2012.05.10 [아이폰] 그래프 graph 원그래프 chart 차트
  

 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/


Posted by 예배하는 프로그래머