-
Notifications
You must be signed in to change notification settings - Fork 133
Annotation does not cover all of x-axis #586
Copy link
Copy link
Closed
elastic/kibana
#64759Labels
:annotationAnnotation (line, rect, text) related issueAnnotation (line, rect, text) related issue:xyBar/Line/Area chart relatedBar/Line/Area chart relatedbugSomething isn't workingSomething isn't workingreleasedIssue released publiclyIssue released publicly
Metadata
Metadata
Assignees
Labels
:annotationAnnotation (line, rect, text) related issueAnnotation (line, rect, text) related issue:xyBar/Line/Area chart relatedBar/Line/Area chart relatedbugSomething isn't workingSomething isn't workingreleasedIssue released publiclyIssue released publicly
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
When making a RectAnnotation designed to cover all of the x-axis on a bar chart using the x values, the annotation will not show up if the x1 coordinate is the same as the number of x values. If it's one less, it covers all but the last bar.
To Reproduce
See the example in this CodeSandbox: https://codesandbox.io/s/elastic-charts-annotation-bug-qweje
Expected behavior
The annotation covers the entire x-axis.
Version (please complete the following information):
Kibana Cross Issues
Also demonstrated in elastic/kibana#59496.
Checklist
Kibana Cross Issueslistkibana cross issuetag is associated to the issue if any kibana cross issue is present