The end result is an &lt;svg&gt; element with a bunch of with a bunch of &lt;path&gt; &lt;line&gt; &lt;rect&gt; children. Sometimes you can wrangle D3 to generate the &lt;path&gt;s you want. Sometimes it&#x27;s easier to more directly make them yourself.