problem description
the height and width of the svg g tag. In d3, the height of the g tag is greater than the svg height, and the height of the g tag obtained is less than the actual height
.the environmental background of the problems and what methods you have tried
both getBBox (). Width and getBoundingClientRect (). Height have tried, and the actual height of g tag is obtained from 880g to 786
.