如何在Google GeoChart中使用不同的颜色 [英] How to use distinct colors with Google GeoChart

查看:101
本文介绍了如何在Google GeoChart中使用不同的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解如何使用GeoChart显示连续的数据(即温度).

I understand how to use the GeoChart to display a data that is in a continuum (i.e. temperture).

但是如何配置它以显示不同的数据集(共和,民主,独立的州)?这可能吗?

But how can you configure it to display distinct data sets (states that are republican, democratic, independent)? Is this possible?

谢谢!

推荐答案

目前无法以这种方式使用GeoChart.为此,我最终使用了svg贴图,并通过css更改了填充.

At this time it is not possible to use GeoChart in this way. To accomplish this I ended up using a svg map, and changing the fill via css.

可以在此处找到一个很好的教程: http://blog.visual.ly/how-to-make-choropleth-maps-in-d3/

A good tutorial can be found here: http://blog.visual.ly/how-to-make-choropleth-maps-in-d3/

这篇关于如何在Google GeoChart中使用不同的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆