📜  d3 缩放颜色不透明度 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:21.778000             🧑  作者: Mango

代码示例1
var color = d3.scaleLinear()
  .domain([1,10])
  .range(["rgba(0,0,0,0)","rgba(0,0,0,1)"]);