That said, I’m weird. My blog is artisinally hand crafted HTML, JS, and CSS for the same reason.
That said, I’m weird. My blog is artisinally hand crafted HTML, JS, and CSS for the same reason.
I built an experimental system to do just that - design the layout and all data visualizations in a single Sketch/Figma document, export to SVG, then map data to the SVG elements in the browser. It's all 100% declarative.
Here's an over-the-top example: https://youtu.be/S9cmi89fvT8
There are no limits to what you can achieve with this approach, but obviously needs Sketch/Figma skills (or a colleague who does).
edit: typo
There are a few primitives that d3 uses, and once you implement those you can produce easy SVG results. `Scale` is the most important, for mapping your x,y plane into SVG pixel coordinates. Then some of the ticks helpers can be handy too.
Writing the SVG directly is just the fastest way to get what you need.