Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart disappears when rendering LineAnnotation in another Component #914

Open
1 of 2 tasks
cauemarcondes opened this issue Nov 24, 2020 · 0 comments
Open
1 of 2 tasks
Assignees
Labels
bug Something isn't working Impact:Medium :specs Chart specifications related issue :xy Bar/Line/Area chart related

Comments

@cauemarcondes
Copy link

cauemarcondes commented Nov 24, 2020

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):

  • Elastic Charts: 24.0.0

Additional context

Errors in browser console

Kibana Cross Issues
elastic/kibana#84178

Checklist

Delete any items that are not applicable to this issue.

  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Impact:Medium :specs Chart specifications related issue :xy Bar/Line/Area chart related
Projects
None yet
Development

No branches or pull requests

2 participants