iOS的饼图控件:VBPieChart

jopen 10年前

VBPieChart 是一个 iOS 饼图控件,拥有不同的动画效果。

用法

VBPieChart *chart = [[VBPieChart alloc] init];  [self.view addSubview:chart];  [chart setFrame:CGRectMake(10, 50, 300, 300)];  [chart setEnableStrokeColor:YES];  [chart setHoleRadiusPrecent:0.3]; /* hole inside of chart */  NSDictionary *chartValues = @{...};  [chart setChartValues:chartValues animation:YES];

动画选项:

  • VBPieChartAnimationFanAll
  • VBPieChartAnimationGrowth
  • VBPieChartAnimationGrowthAll
  • VBPieChartAnimationGrowthBack
  • VBPieChartAnimationGrowthBackAll
  • VBPieChartAnimationFan
  • VBPieChartAnimationTimingEaseInOut
  • VBPieChartAnimationTimingEaseIn
  • VBPieChartAnimationTimingEaseOut
  • VBPieChartAnimationTimingLinea

iOS的饼图控件:VBPieChart

项目主页:http://www.open-open.com/lib/view/home/1408608152866