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

can we animate SelectionShift when selecting a segment of pie chart? #3420

Closed
robertTyrell opened this issue Apr 25, 2018 · 1 comment
Closed

Comments

@robertTyrell
Copy link

What did you do?

When selecting a section of a pie chart I would like the view to grow.

I have tried
` func chartValueSelected(_ chartView: ChartViewBase, entry: ChartDataEntry, highlight: Highlight) {
chartView.animate(xAxisDuration: 1)
// and also chartView.animate(yAxisDuration: 1)

}`

What did you expect to happen?

I was hoping when I selected a section of pie chart it would grow and shrink.

What happened instead?

The pie chart animation was redrawing itself around the centre of the chart.

Charts Environment

**Charts version/Branch/Commit Number:3.1.1
**Xcode version:9.3
**Swift version:4.1
Platform(s) running Charts:
**macOS version running Xcode:10.13.4

Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

@liuxuan30
Copy link
Member

#3290

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