This is definitely possible, and gives you a high degree of control over the visual design of visualizations.
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.
Kind of. Except with SVG data viz you likely don’t need a layout engine. It doesn’t need to be “responsive” and render differently on different devices.
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