how are svg used with d3 code example
Example 1: using d3 to add svg box example
<svg width="500" height="500">
<rect x="0" y="0" width="200" height="200"></rect>
</svg>
Example 2: using d3 to add svg box example
<svg width="500" height="500">
<line x1="100" y1="50" x2="500" y2="50" stroke="black"/>
</svg>