mbostock
This example demonstrates how to scale a D3 symbol to fit inside a specified rectangular bounding box using getBBox.
https://d3js.org/d3.v3.min.js