top | item 33961099

(no title)

ericand | 3 years ago

I'm a sveltekit user and the default SSR really complicated adding a chart library. Would Unovis work with SSR? Appreciate the Svelte support!

discuss

order

imilk|3 years ago

Until a better library comes out, I'd highly recommend using Layercake with Sveltekit. It's a wrapper around D3 which allows you to build reusable components that are responsive and can load server side without JS on the client. It's not as plug and play as some libraries, but it's not too bad, and gives you a lot more customization options:

https://layercake.graphics/

ernaem|3 years ago

It should work well with SvelteKit out of the box — the compiler won't complain about SRR. However no charts will be rendered in the SSR html build.

ngalaiko|3 years ago

why not? it seem to be svg based