Skip to content

Rect Annotation should fallback to full height/width #798

@nickofthyme

Description

@nickofthyme

Describe the bug
When using x or y axes with a groupId along with a RectAnnotation. If no groupId is set on the RectAnnotation it will not appear as there is no __global__ groupId fallback to determine the correct fallback height.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/cool-cookies-s8okq?file=/src/App.tsx
  2. Notice how toggling the groupId on the RectAnnotation hides and shows

Expected behaviour
When no x or y axis groupId is determinable, it should fallback to the chart dimensions.

Metadata

Metadata

Assignees

Labels

:annotationAnnotation (line, rect, text) related issue:xyBar/Line/Area chart relatedbugSomething isn't working

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