Skip to content

[Bug] Sector bugs caused by precision. #16385

@plainheart

Description

@plainheart

Version

5.3.0

Link to Minimal Reproduction

test/pie.html

Steps to Reproduce

  1. Open the test case pie.html
  2. Unselect all the legends
  3. Watch if the final rendered chart is a circle

Current Behavior

Got a tiny sector that looks like a line

Expected Behavior

Got a circle

Environment

- OS: Any
- Browser: Any
- Framework: No

Any additional comments?

Arguments of this broken sector:

  • startAngle: -1.5707963267948966
  • endAngle: 4.712388980384691

The calculated arc is 6.283185307179587, which is slightly bigger than ... so that it can't be rendered as a circle.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions