如何根据数据生成热图的颜色? [英] How to generate colors for heat map according to data ?
问题描述
我想要基于数据的颜色收集。例如,我想根据国家显示人口密度。如果它具有最高的人口密度,那么它将具有较暗的颜色(假设我的基色为蓝色,因此它将具有最暗的蓝色),
类似地在减少的顺序中,所有国家将逐渐变淡的蓝色。请注意我没有固定国家,有时我可以有10个国家或100个国家/地区。我已经检查了很多算法,但他们没有生成
这样的颜色,这些颜色可以被识别出来,与下面给出的图像不同。
< img alt =""src ="http://i.stack.imgur.com/fz0nn.png">
您是否在
$ b中实验了Pavel Vladov的算法? $ b
设置UI指南 - 边框20%更深:
Hi, I want the color collection based on data. For example I want to display the population density according to country. If it has highest population density then it will have darker color (suppose my base color is blue, so it will have darkest blue), similarly in decrements order all the country will have blue color gradually being light. Please note I don't have fixed countries, sometime I can have 10 countries or sometime 100 countries. I have checked many algorithms but they are not generating such colors which can be identified different, unlike below given image.
Did you experiment with Pavel Vladov's algorithm referenced in Settings UI Guidelines -- Border 20% darker:
这篇关于如何根据数据生成热图的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!