问题描述
我正在构建Google可视化数据表。你可以在这里看到:
我制作了美国的彩色编码,但我需要在上面添加大约8个美国城市的地块的颜色编码。我无法在网上找到任何文档或其他示例,说明这是否可行。
我只是想:
1)验证是否有可能?
2)找到一个工作示例或者帮助将第二个表添加到一个drawVisualization实例中!
谢谢!
区域和标记不会同时工作。
如果你想使用标记模式为状态的背景着色,你可以用CSS来完成。
我记录了我在这里开发的一个Wordpress插件的一些示例:
检查最后一个例子。这并不容易,因为你必须找到你想要着色的子路径号,然后你就可以做到。例子:
#visualization path:nth-child(5){
fill:#cccccc;
$ b $ p
$ b 下面是你的代码的一个分叉的例子,上面是CSS:
希望它有帮助!
I'm building a Google Visualization DataTable. You can see it here:
I've built out my United States color coding, but I need to add plots of about 8 US Cities on top of the color coding. I can't find any documentation or other examples online that specifies if/how this is possible. I've taken a few stabs at it with no results.
I'm just trying to:
1) Verify if it's possible?
2) Find a working example or have some help adding a second table to a single drawVisualization instance!
Thanks!
解决方案 Regions and Markers wont work at the same time.
SO if you want to color the background of the states, using markers mode, you can do it with CSS.
I'm documenting some examples for a Wordpress plugin i developed here:
http://cmoreira.net/interactive-world-maps-demo/advanced-customization/
Check the last example. It's not easy, since you have to find which child path number you want to color, and then you can do it. Example:
#visualization path:nth-child(5) {
fill:#cccccc;
}
Here's a forked example, of your code with the CSS above:http://jsfiddle.net/cmoreira/Jqkjg/
Hope it helps!
这篇关于Google可视化 - 您是否可以在同一张地图上编码美国省级数据和一些城市地块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!