Using two SVG elements on one screen in d3.js has been a success for me. The code I have looks like this:
<svg width="880" height="800" id="svg1"></svg>
<svg width="880" height="800" id="svg2"></svg>
var svg1 = d3.select("#svg1");
var svg2 = d3.select("#svg2");
However, my current issue is that svg2 appears below svg1 instead of side by side. My aim is to have them positioned next to each other. Does anyone know how to resolve this problem? I attempted to adjust the x position of svg2 with the following code:
<svg cx="880" cy"100" width="880" height="800" id="svg2"></svg>
Unfortunately, this approach did not provide the desired solution. Any suggestions are greatly appreciated. Thank you!