JHChart
JHChart copied to clipboard
饼状图元素比较少的话,显示超出屏幕了
JHPieChart 问题。descry中元素比较少的时候,页面展示的Pie的形状变大了。元素比较过会正常显示。请问这个怎么解决?

JHPieChart pie = [[JHPieChart alloc] initWithFrame:CGRectMake(100, 100, 321, 421)]; pie.center = CGPointMake(CGRectGetMaxX(self.view.frame)/2, CGRectGetMaxY(self.view.frame)/2); / Pie chart value, will automatically according to the percentage of numerical calculation / pie.valueArr = @[@18,@10,@25,@40]; / The description of each sector must be filled, and the number must be the same as the pie chart. / pie.descArr = @[@"第一个元素",@"第二个元素",@"第三个元素",@"第四个元素"]; pie.backgroundColor = [UIColor whiteColor]; [self.view addSubview:pie]; / When touching a pie chart, the animation offset value / pie.positionChangeLengthWhenClick = 4; / Start animation */ [pie showAnimation];