d3 根据最大值和最小值划分固定数量范围数组
<pre><code class="language-javascript">const step = (max - min) / (count - 1); // 计算步长
const points = d3.range(min, max + step, step); // 生成等分数组
// 示例:min=0, max=100, count=5 → [0,25,50,75,100]:ml-citation{ref=&quot;1,2&quot; data=&quot;citationList&quot;}
</code></pre>