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

updating point.sliced = false does not work #6384

Closed
morganfree opened this Issue Feb 16, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@morganfree
Contributor

morganfree commented Feb 16, 2017

Expected behaviour

point.update({sliced: false}) should work as point.slice(false)
http://jsfiddle.net/kfz3zrfk/

Actual behaviour

point.update({sliced: sliced) works only when sliced is true.

Live demo with steps to reproduce

http://jsfiddle.net/kfz3zrfk/1/

  1. Click on slice - slice is out
  2. Click on slice - slice does not move in

The problem is with pie series' drawPoints method, L300
groupTranslation = point.sliced ? point.slicedTranslation : {};

If point.sliced is false, then groupTranslation is empty. Compare it to point.slice():
translation = sliced ? point.slicedTranslation : { translateX: 0, translateY: 0 };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment