Treemap multiple color scales

45 views
Skip to first unread message

Nick Dunbar

unread,
Apr 25, 2017, 9:45:49 AM4/25/17
to Google Visualization API
Hi, 
In Treemap, I was wondering if it was possible to assign multiple color scales for the top level leaves immediately below the root node, in the same way that appears to have been done here: https://vizhub.healthdata.org/gbd-compare/# 

Having a single color scale for the entire treemap is too much of a constraint and shouldn't be too hard to fix, given that others have done it. 

Look forward to your feedback. 
Best regards, 
Nick 

Nick Dunbar

unread,
Apr 26, 2017, 9:23:23 AM4/26/17
to Google Visualization API
Any thoughts on this?

Daniel LaLiberte

unread,
Apr 26, 2017, 12:30:15 PM4/26/17
to Google Visualization API
Sorry, Nick.  There is not enough flexibility in how the colors are assigned to support what you want.  

The easiest change for us might be to support the 'style' role, so you could determine the colors you want yourself.  But it would really need to be not just a single color but a color range for each 'node' to apply to all of its children. 

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/632d98f2-e89d-42f0-881d-fdf442474283%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Nick Dunbar

unread,
Apr 26, 2017, 12:42:04 PM4/26/17
to google-visua...@googlegroups.com
Hi Dan, 

Thanks for getting back to me. It would be so cool if you could go ahead and make a fix like that in the short term. And yes, a color range is what I had in mind. So it could be shades of red for series 0, blue for series 1 and so on, or two user defined RGB values for the extremes of each series. 

Best regards, 

Nick 

On Wed, Apr 26, 2017 at 5:30 PM, 'Daniel LaLiberte' via Google Visualization API <google-visua...@googlegroups.com> wrote:
Sorry, Nick.  There is not enough flexibility in how the colors are assigned to support what you want.  

The easiest change for us might be to support the 'style' role, so you could determine the colors you want yourself.  But it would really need to be not just a single color but a color range for each 'node' to apply to all of its children. 
On Wed, Apr 26, 2017 at 9:23 AM, Nick Dunbar <dunba...@gmail.com> wrote:
Any thoughts on this?


On Tuesday, April 25, 2017 at 2:45:49 PM UTC+1, Nick Dunbar wrote:
Hi, 
In Treemap, I was wondering if it was possible to assign multiple color scales for the top level leaves immediately below the root node, in the same way that appears to have been done here: https://vizhub.healthdata.org/gbd-compare/# 

Having a single color scale for the entire treemap is too much of a constraint and shouldn't be too hard to fix, given that others have done it. 

Look forward to your feedback. 
Best regards, 
Nick 

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com.



--

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/CQfJJuGnbOQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.

Nick Dunbar

unread,
Apr 27, 2017, 9:50:59 AM4/27/17
to google-visua...@googlegroups.com
I should add that the whole process by which Google allocates resources to the Charts API and prioritises updates is shrouded in mystery. For a lot of people this doesn't matter as the library of charts is so extensive. But some more guidance for users on what to expect and when to expect it would be helpful. 

On Wed, Apr 26, 2017 at 5:41 PM, Nick Dunbar <dunba...@gmail.com> wrote:
Hi Dan, 

Thanks for getting back to me. It would be so cool if you could go ahead and make a fix like that in the short term. And yes, a color range is what I had in mind. So it could be shades of red for series 0, blue for series 1 and so on, or two user defined RGB values for the extremes of each series. 

Best regards, 

Nick 
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.

Jon Orwant

unread,
Apr 27, 2017, 10:18:36 AM4/27/17
to google-visua...@googlegroups.com
Hi Nick,

We don't mean to be mysterious. There is no secret internal roadmap that we're hiding. As you can infer from the traffic on this forum over the past year, much of Charts development is just Dan doing what he can when he has time available. The software is stable, but with charting there are always bells and whistles to be added, and Dan prioritizes his work based on both his estimate of user benefit and the ease of making the change.

Jon

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages