Google TreeMap fill value set to _ABSTRACT_RENDERER_ID_1

ε祈祈猫儿з 提交于 2019-12-24 16:42:47

问题


I am using a google tree map to render some data. I have a problem with showScale component. When the tree map renders, the showScale component is completely black when it should show a e gradient between minColor and maxColor.

The fill attribute of the svg component is set as follows :

fill="url(#_ABSTRACT_RENDERER_ID_1)"

Can you explain what _ABSTRACT_RENDERER_ID_1 is ?


回答1:


It will be either a gradient fill or a pattern fill.

Somewhere else in the file - probably in a <defs> section - will be one of the following elements with an id attribute that matches that string:

<linearGradient>
<radialGradient>
<pattern>


来源:https://stackoverflow.com/questions/26059800/google-treemap-fill-value-set-to-abstract-renderer-id-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!