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

Radial Bar cannot set series value back to zero when angles are -180/180. #2737

Closed
echobops opened this issue Oct 29, 2021 · 0 comments · Fixed by TanDuy03/ntanduy-cloud#202 · 4 remaining pull requests
Closed

Radial Bar cannot set series value back to zero when angles are -180/180. #2737

echobops opened this issue Oct 29, 2021 · 0 comments · Fixed by TanDuy03/ntanduy-cloud#202 · 4 remaining pull requests
Labels
bug Something isn't working

Comments

@echobops
Copy link

Description

Steps to Reproduce

  1. Create a radial bar with gradient as per the example in documentation, except the startAngle is -180 and endAngle 180. Start the series with a value of [0]. Notice how the value bar is empty.
  2. Set the series value to a number: chart.updateSeries([100]);. Notice it is full.
  3. Set the series value back to zero: chart.updateSeries([0]);. The bar is not updated from being full.
  4. Set the series value to 1: chart.updateSeries([1]);. The bar is quickly updated (not respecting the speed settings) and the bar isn't quite empty.

Expected Behavior

When setting the series from an existing value, to zero, the bar should animate to zero (respecting the speed settings), or jump there if animation is set to false.

Actual Behavior

Setting the series value back to zero yields no response from the bar. Calling chart.resetSeries(); after setting the series value to zero results in a completely full bar.

Reproduction Link

https://codepen.io/Mantic/pen/XWaaBZg

In making the bug, I realized it was a result of the angles. I can set my angles to -179 and 180 and it seems to work as expected.

@echobops echobops added the bug Something isn't working label Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment