4 ms·
As I mentioned in my other comment, this documentation site is built with VitePress, which is SSG, and we use a Vue component to render the plots statically so
by mbostock 3y ago
As I mentioned in my other comment, this documentation site is built with VitePress, which is SSG, and we use a Vue component to render the plots statically so that you don’t get any reflow on the client.
- lloydatkinson 3y agoMaybe I'm confused then, are these not components anyone can use? It's only for VitePress?
- mbostock 3y agoIt’s a vanilla JavaScript library and you can use it with any framework or site generation tool that you wish. You’re welcome to copy the Vue component we wrote for our VitePress site, or to adapt the same technique for other frameworks. You can supply whatever DOM implementation you like using the document plot option as described here: https://observablehq.com/plot/features/plots https://observablehq.com/plot/features/plots
- lloydatkinson 3y agoIt doesn’t support SSR then, got it
- mbostock 3y agoIn what sense? All the examples on the Plot documentation site are server-side rendered?