Chart disappears when rendering LineAnnotation in another Component #914
Labels
bug
Something isn't working
Impact:Medium
:specs
Chart specifications related issue
:xy
Bar/Line/Area chart related
Describe the bug
On APM I have multiple charts the use the same LineAnnotation, so I decided to create a new React component and place the logic to fetch and show the annotations. The problem is that the chart renders first without any annotation, because it's still fetching the data, when the data is available the Component re-renders and the annotations should be placed inside the chart, but instead it makes the whole chart to disappear.
To Reproduce
Steps to reproduce the behavior:
I put together a codesandbox simulating the problem.
Expected behaviour
The annotations should show with the chart.
Screenshots
Version (please complete the following information):
Additional context
Errors in browser console
Kibana Cross Issues
elastic/kibana#84178
Checklist
Delete any items that are not applicable to this issue.
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is presentThe text was updated successfully, but these errors were encountered: