Skip to content
New issue

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

How can I make the chart rotate completely, 360, 720 on a button click ? #2861

Closed
SatishBirajdar007 opened this issue Oct 10, 2017 · 2 comments

Comments

@SatishBirajdar007
Copy link

The thing that I want to do is,

A "Spin" button is clicked
The pie chart starts rotating random 'n' times, and stops after sometime. And one slice is highlighted.
So question is, how can I make the chart rotate completely, 360, 720 on a button click ?

@SatishBirajdar007
Copy link
Author

Was able to do with spin(duration: 3, fromAngle: 0, toAngle: 720)

@liuxuan30
Copy link
Member

there are many ways, like rotating the UIView, or update the CTM matrix like CGAffineTransformRotate to rotate yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants