Search code examples
javascripthtmlsvggoogle-visualizationtreemap

Google TreeMap fill value set to _ABSTRACT_RENDERER_ID_1


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 ?


Solution

  • 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>