Merging two cells into one SVG

Here is the situation:

I have one cell where an ADHOC d3 graphic outputs as SVG

And in another cell, a PLOT graphic also ouputs as SVG

I want to “add” the PLOT graph on top (on the side actually) of the d3 graph.

¿Should I try to do that or to merge both svg´s in another cell? Of course the idea is to have all of them “live” so they could be updated.

Thanks

Try an HTML cell with:

<svg viewBox="0 0 1000 500">
<g transform="translate(0,0)">${d3cell}</g>
<g transform="translate(500,0)">${plotcell}</g>
</svg>
2 Likes