... use scaleband instead which does have the bandwidth function: const xscale = d3 .scaleband() .domain([ d3.min(dataset, (d) => d.year), d3.max(dataset, ...
確定! 回上一頁