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

Rendering more charts #118

Open
honeyman22 opened this issue Jun 12, 2024 · 2 comments
Open

Rendering more charts #118

honeyman22 opened this issue Jun 12, 2024 · 2 comments

Comments

@honeyman22
Copy link

Description
I am experiencing an issue when rendering a Sunburst chart with dynamic data fetched from an API. The chart renders correctly with static data, but with dynamic data, the chart shows a blank space and then another Sunburst chart.

Steps to Reproduce
Use static data to render the Sunburst chart: The chart renders correctly.
Fetch dynamic data from an API.
Implement a loading state while waiting for the API response.
Render the Sunburst chart once the data is fetched.
Expected Behavior
The Sunburst chart should render correctly with the dynamic data, without any blank spaces or duplicate charts.

Actual Behavior

A blank space appears where the chart should be.
Another Sunburst chart is rendered, leading to two charts being displayed: one blank and one with data.

Environment
Library Version: ^1.19.2
React Version: ^18.2.0
Vite Version :^5.0.8
Browser: CHrome
Operating System: Windows [10]

@vasturiano
Copy link
Owner

@honeyman22 thanks for reaching out. Please provide a simple reproducing example on https://codesandbox.io/ so that we can help out in determining the cause of the issue.

@coreymunn3
Copy link

coreymunn3 commented Jul 11, 2024

@honeyman22 check these closed issues. This behaviour is a common occurrence in react. This issue identifies the same problem with a solution, and my comment at the bottom of this other issue should give you all you need.

We can mark this issue as closed. @vasturiano If anyone else asks about any bugs similar to this duplication and their environment includes React, I would just paste links to issue 85 and issue 100 and immediately close. I think this user as well as others are having trouble finding solutions because they aren't searching through closed issues, only open ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants