-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Bug]: Chart does not render* #108
Comments
Same issue for me |
For SSR you could check out: https://github.com/Rich-Harris/pancake And try turning off SSR for the chart route. |
Did anyone find a fix for this? Been unable to even render a line chart within svelte. |
Running into the same issue with SvelteKit and svelte-chartjs |
same here with sveltekit :/ |
chartjs does work fine on sveltekit without this library, I using it. |
Is this still a problem for anyone? I'm able to use all the charts in my SvelteKit project. |
Yes :( , even with SSR turned off, charts don't render. Any solution? |
Could you provide a CodeSandbox or StackBlitz with your current setup? |
I can't make this work either, it just doesn't work, I can't even get the examples working.I am using sveltekit too if that matters. The chart renders in the DOM, but isn't filled in, no errors in the console or on the browser |
Similarly, I can't get even the examples working by directly copy and pasting. |
Could you share some working code example? |
Would you like to work on a fix?
Current and expected behavior
*I understand that you said "if you are experiencing an issue with charts rendering, please create a related issue in Chart.js repository." However, this code is a direct port from your scatter example but it only works in code-sandbox and not in a local sveltekit repo.
I would expect svelte-chartjs to work in a sveltekit app but I have been unable to discover a working example that uses sveltekit nor have I been able to get mine to work with sveltekit.
Reproduction
https://github.com/taylorjdawson/svelte-chartjs-example
chart.js version
4.3.0
svelte-chartjs version
3.1.2
Possible solution
Sveltekit uses ssr so that could potentially be causing issues. I am unsure if this library accounts for ssr?
The text was updated successfully, but these errors were encountered: