本文介绍了如何根据数据生成热图的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我想要基于数据的颜色收集。例如,我想根据国家显示人口密度。如果它具有最高的人口密度,那么它将具有较暗的颜色(假设我的基色为蓝色,因此它将具有最暗的蓝色),类似地在减少的顺序中,所有国家将逐渐变淡的蓝色。请注意我没有固定国家,有时我可以有10个国家或100个国家/地区。我已经检查了很多算法,但他们没有生成这样的颜色,这些颜色可以被识别出来,与下面给出的图像不同。 解决方案 您是否在 设置UI指南 - 边框20%更深: $ b中实验了Pavel Vladov的算法? $ b http://social.msdn .microsoft.com /论坛/ en-US / winappsuidesign / thread / cd3f1fd9-fc35-46c5-8999-23d39de1621d 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 inSettings UI Guidelines -- Border 20% darker:http://social.msdn.microsoft.com/Forums/en-US/winappsuidesign/thread/cd3f1fd9-fc35-46c5-8999-23d39de1621d 这篇关于如何根据数据生成热图的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-21 14:50