points on line in d3.js

前端 未结 2 445
渐次进展
渐次进展 2020-12-09 18:09

I\'m creating a line chart in d3.js like this:

var line = d3.svg.line()
    .interpolate(\"basis\")
    .x(function(d) { return x(d.date); })
    .y(function         


        
2条回答
  •  时光取名叫无心
    2020-12-09 18:52

    It is my understanding that 'basis' interpolation creates a mean line between the data points. Cardinal create a smooth line that connects all points.

提交回复
热议问题