d3 svg code example
Example 1: include d3
<script src="https://d3js.org/d3.v5.min.js"></script>
Example 2: using d3 to add svg box example
<svg width="500" height="500">
<rect x="0" y="0" width="200" height="200"></rect>
</svg>
Example 3: using d3 to add svg box example
<svg width="500" height="500">
<line x1="100" y1="50" x2="500" y2="50" stroke="black"/>
</svg>