Skip to content

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

@echobops

Description

@echobops

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions