4. 比例尺

4.1. 线性比例尺


xscale = d3.scaleLinear([-10,10],[100,200]);

v = xscale(5);

🔗d3.scaleLinear