Let's make a fully 3D visualization to see whether it works at all.
We can't really make use of SVG. Instead, we will use WebGL. In general WebGL is way too complex to use unless you have graphics and shader dev experience. Shaders are notoriously challenging to get right.
In practice, doing things in 2.5d, or an isometric projection, might be a bit easier (but it comes with its own trade-offs). We won't demo that today, but you can try out the Isomer library which actually works pretty well with d3 conventions.