Skip to content

Doughnut chart has incorrect border when overful #6171

@ghost

Description

image

Expected Behavior

Doughnut chart analogous to underful segment

Current Behavior

Only the inner endpoint of the border line moves as expected, the outer endpoint is stuck at the top.
See for yourself here: https://jsfiddle.net/kpdyvxuc/1/
Change the value of circumference to better see the bug in action.

Steps to Reproduce (for bugs)

https://jsfiddle.net/kpdyvxuc/1/

Context

We are trying to visualize an overfulfillment of a measurement (>100%). Note that this would be possible to visualize statically using other features (like rotation), but this would be incompatible with a correct animation.

Environment

  • Chart.js version: 2.5.0
  • Browser name and version: Google Chrome Version 70.0.3538.77 (Official Build) (64-bit)

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