d3.histogram() replacment code example Example: d3 v6 <script src="https://d3js.org/d3.v6.min.js"></script>