According to the D3 docs, ordinal scales are categorized by a discrete, ... .attr('width', d => xScale.bandwidth()) calls the bandwidth method on our scale ...
確定! 回上一頁