d3 version 6 ta code example
Example 1: d3
<script src="https://d3js.org/d3.v6.js"></script>
Example 2: include d3
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://d3js.org/d3.v6.js"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>