include d3-scale-chromatic in angular 8 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])