JHChart icon indicating copy to clipboard operation
JHChart copied to clipboard

饼状图元素比较少的话,显示超出屏幕了

Open chenYuCui opened this issue 8 years ago • 1 comments

JHPieChart 问题。descry中元素比较少的时候,页面展示的Pie的形状变大了。元素比较过会正常显示。请问这个怎么解决? 2fcf8b2a-08b5-4404-b655-6782c692ad7e

chenYuCui avatar Jul 05 '17 04:07 chenYuCui

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];

chenYuCui avatar Jul 05 '17 04:07 chenYuCui