Skip to content

Doughnut appears broken when rotation equals some values. (300, 310, 320, 330, 333) #9117

@revroad-dev

Description

@revroad-dev

Expected Behavior

Should be able to rotate Doughnut for any amount

Current Behavior

When rotation equals 300, 310, 320, 330, or 333, doughnut appears broken as if zoomed in. Any other value appears to work, including multiples of said values.

Steps to Reproduce

Can be reproduced within documentation example, by adding rotation to the config.

const config = {
  type: 'doughnut',
  data: data,
  options: {
    rotation: 300
  }
};

Current workaround is to add a small value to every rotation amount, i.e. rotation: 300.00000001

Update

  • While rotation: 301 works, rotation: 301.01 does not.
  • This behavior is also observed in the Pie Chart

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions