红色代表需要改写的代码 1.添加定义图像大小和容器的大小及坐标 d3.behavior.zoom = function () { var moveCanvas={ width: , height: , cx:,cy:,cwidth:,cheight: }; var view = { x: , y: , k: }, translate0, center0, center, size = [ , ], scaleExtent = d3_behavior_zoomInfinity, duration…