Skip to content

Circle Meter chart not rendering properly for specific input values #6190

@thomas-friedrich

Description

@thomas-friedrich

With specific input values, the slices of a Meter chart of type "circle" won't render correctly

Expected Behavior

Meter chart of type "circle" should render slices correctly.

Actual Behavior

image

URL, screen shot, or Codepen exhibiting the issue

code sandbox: https://codesandbox.io/s/memory-pie-chart-forked-xk1p3h?file=/index.js

Steps to Reproduce

It's not clear for what input values the problem is happening. In the code sandbox, the problem shows with a max of 10.3 and two slices of 2.26 and 8.04. Changing the slices to 2.25 and 8.05 renders correctly.

Your Environment

  • Grommet version: 2.24
  • Browser Name and version: Chrome 102.0.5005.61
  • Operating System and version (desktop or mobile): Mac OS 11.6.2

Metadata

Metadata

Labels

bugissue that does not match design or documentation and requires code changes to address

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions