I want color my grid with values in my Matrix. the size of my matrix is 180*90 and there are different values such as 0, positive numbers and some negative numbers such as -45. My question is how can i convert negative numbers to values which is acceptable for d3.color for coloring my grid?

0 Answers