Here is my Code on JsFiddle I am using d3.svg.area()
to draw an area and drawing the points as svg:circle
on it. whch works okay If I change .interpolate('basis')
to .interpolate('cardinal')
or linear
But how to put the points properly with basis
interpolation ? e.g. I want to put the near match
points
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can use the interpolation method "monotone" that will respect your y maximum and therefore your circles will not be displaced. -Canimus