可以设置Google图表的颜色值,但是可以获取图表的预设颜色值吗?是否有一个包含这些值的数组,可以访问?
答案 0 :(得分:12)
在此Google论坛讨论中,默认颜色数组未记录,无法访问。但是,如果您想要颜色数组,Xavier Gumara发布了它,asgallant也是如此:
{"#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"}
仅仅是一个FYI,这些问题的很大一部分已经被像asgallant这样的人在Google网上论坛上覆盖了,并且值得快速搜索以尝试找到它们(比等待我做的更快)它!)。以上答案是“谷歌可视化默认颜色”的前两个结果。