Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我在JsFiddle上的代码,我用d3.svg.area()它来绘制一个区域并svg:circle在其上绘制点。如果我更改.interpolate('basis')为.interpolate('cardinal')orlinear但是如何使用basis插值正确放置点?例如我想把near match积分
d3.svg.area()
svg:circle
.interpolate('basis')
.interpolate('cardinal')
linear
basis
near match
您可以使用“单调”插值方法,该方法将尊重您的 y 最大值,因此您的圆圈不会移位。-卡尼穆斯