d3.scale.ordinal() was changed to d3.scaleOrdinal in v4. Examples here. So now you can write the above as: const colourScale = d3.
確定! 回上一頁