Recommended Posts

Hi all,

i have try to implement a treemap chart but in fields value i have negative data. I have see in official documents that a negative value is use in a sValue field, is true?  I can't use negative data in value field?

 

Thank you all for your help.

 

This is my json file:

"data":[  
   [  
      {  
         "label":"Macrocategoria",
         "fillcolor":"8c8c8c",
         "value":100,
         "data":[  
            {  
               "label":"Azionario",
               "value":69,
               "data":[  
                  {  
                     "label":"Titolo 5",
                     "value":"40,0%",
                     "sValue":"5,0%"
                  },
                  {  
                     "label":"Titolo 6",
                     "value":"18,0%",
                     "sValue":"6,0%"
                  },
                  {  
                     "label":"Titolo 7",
                     "value":"-2,0%",
                     "sValue":"7,0%"
                  },
                  {  
                     "label":"Titolo 8",
                     "value":"13,0%",
                     "sValue":"8,0%"
                  }
               ]
            },
            {  
               "label":"Obbligazionario",
               "value":31,
               "data":[  
                  {  
                     "label":"Titolo 1",
                     "value":"10,0%",
                     "sValue":"1,0%"
                  },
                  {  
                     "label":"Titolo 2",
                     "value":"5,0%",
                     "sValue":"2,0%"
                  },
                  {  
                     "label":"Titolo 3",
                     "value":"15,0%",
                     "sValue":"3,0%"
                  },
                  {  
                     "label":"Titolo 4",
                     "value":"1,0%",
                     "sValue":"4,0%"
                  }
               ]
            }
         ]
      }
   ]
],
"colorrange":{  
   "mapbypercent":"1",
   "gradient":"1",
   "minvalue":"1,0%",
   "code":"6da81e",
   "startlabel":"Decline",
   "endlabel":"Rise",
   "color":[  
      {  
         "code":"ffffff",
         "maxvalue":4,
         "label":"Static"
      },
      {  
         "code":"e24b1a",
         "maxvalue":"8,0%",
         "label":"AVERAGE"
      }
   ]
}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now