What is the algorithm to create colors for a heatmap?
Here is a JavaScript code snippet to generate CSS hsl color code from [0, 1] value function heatMapColorforValue(value){ var h = (1.0 – value) * 240 return “hsl(” + h + “, 100%, 50%)”; } This algorithm is based on the 5 color heatmap, In this algorithm, the colors corresponding with values are 0 : … Read more