heatmap.js icon indicating copy to clipboard operation
heatmap.js copied to clipboard

Show the number range of intensity for every color

Open ahmed-bermawy opened this issue 7 years ago • 1 comments

I want to know the range of intensity for every color, so i have a heat map for people, and i want to know how much people range in red, yellow and lime colors

var config = {
container: document.getElementById('heatMap'),
radius: 40,
maxOpacity: .5,
minOpacity: 0,
blur: .75,
gradient: {
0.4:  '#f23e45',
0.50: 'lime',
0.70: 'yellow',
0.95: '#FF8300',
1.0:  'red'
}
};
var heatmapInstance = h337.create(config);
heatmapInstance.addData(people);

and the range of each color show in the bottom of map to be link: Red > 200 Yellow > 100 Lime > 50 and this numbers change according overcrowding of people is this possible ?

ahmed-bermawy avatar Apr 17 '17 10:04 ahmed-bermawy

@ahmed-al-bermawy I exactly have the same problem have you got the solution? if yes please let me know how you config?

Thank You

MonMohon avatar May 05 '19 05:05 MonMohon