scale color d3 code example
Example: d3 scalemagma()
const color = d3.scaleOrdinal().range(['lightgrey', 'indianred', 'steelblue']).domain([2, 1, 0])
const color = d3.scaleOrdinal().range(['lightgrey', 'indianred', 'steelblue']).domain([2, 1, 0])