We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
设置 PNLineChartData 的数据中,只有一个数据,也就是折线图只显示一个点。点击屏幕,程序直接崩了。崩溃在,- (void)touchPoint:(NSSet *)touches withEvent:(UIEvent *)event 这个方法。
NSArray * data01Array = @[@13.1]; PNLineChartData *data01 = [PNLineChartData new]; data01.color = PNFreshGreen; data01.inflexionPointStyle = PNLineChartPointStyleCircle; data01.inflexionPointColor = [UIColor yellowColor]; data01.itemCount = data01Array.count; data01.getData = ^(NSUInteger index) { CGFloat yValue = [data01Array[index] floatValue]; return [PNLineChartDataItem dataItemWithY:yValue]; }; lineChart.chartData = @[data01]; [lineChart strokeChart];
The text was updated successfully, but these errors were encountered:
No branches or pull requests
设置 PNLineChartData 的数据中,只有一个数据,也就是折线图只显示一个点。点击屏幕,程序直接崩了。崩溃在,- (void)touchPoint:(NSSet *)touches withEvent:(UIEvent *)event 这个方法。
The text was updated successfully, but these errors were encountered: