ChartsOrg / ChartsOrg/Charts

PieChartView 切片旋转如何固定中心位置旋转到指定的位置,比如固定在90度上

Open
#4,736 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

PieChartView 切片旋转如何固定中心位置旋转到指定的位置,比如固定在90度上

- (void)chartValueSelected:(ChartViewBase * __nonnull)chartView entry:(ChartDataEntry * __nonnull)entry highlight:(ChartHighlight * __nonnull)highlight
{

[UIView animateWithDuration:0.2 animations:^{

[_chartView spinWithDuration:0.15 fromAngle:_chartView.rotationAngle toAngle:_chartView.rotationAngle+?(角度) easingOption:ChartEasingOptionEaseInCubic];
}];

}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.