Updating color for unbrushed part in D3 graphs (Angular)

  Kiến thức lập trình

I want to apply some color for brushed part and some color for non brushed areas, I tried multiple approaches, help me to achieve that.

 const brushSelection = svg.select('.brush .selection');
    .attr('fill', 'black')

by this I can able to set colors for selected part, How to achieve the same for unbrushed part.

New contributor

ARULSARAVANAN B is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.