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

Is it possible to add some sort of loading spinner to this component ? #310

Open
GeorgeFlorian opened this issue Jan 26, 2023 · 1 comment

Comments

@GeorgeFlorian
Copy link

I am wondering how can I display a loading spinner while the chart is being rendered.
I have a choropleth map with a lot of data and it takes a while for it to finish rendering.
I would like to display a spinner until the chart has finished rendering.

Is this possible ?

@Jonhyfun
Copy link

Have you tried using React Suspense?

I achieved a pretty great loading state by wrapping the chart component in a suspense. The only issue is when there really is TOO much data or a complex to render graph like the 3d chart, in that case suspense still helps, but it does freeze just before rendering

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

2 participants