Thanks Dan, 

for the stacked column route, I am thinking about how to format the 
dataTable. I suppose the bar height columns are just integers to create the 
square grid, while the correlations go in the style columns which get 
turned into RGB values. It is a shame there isn't a colorbar off the shelf 
that can be used. 

The 3D thing sounds tricky. I have to study that. 

How about you create a heatmap Google chart? Looks like you have already 
done the heavy lifting!

Nick



On Monday, September 18, 2017 at 7:41:53 PM UTC+1, Daniel LaLiberte wrote:
>
> Hi Nick,
>
> We don't have any direct support for heatmaps in Google Charts.  However, 
> it is similar to a stacked column chart, with bar.gap = 0.  You'd have to 
> specify the color of each cell since it wouldn't do that itself.  We also 
> don't have any colorbar available independent of the few charts that 
> support it.
>
> Another option is to use the Graph3d charts documented here: 
> http://almende.github.io/chap-links-library/js/graph3d/doc/
> These use the Google Charts data structures and API for setting up the 
> datatable and options.   Using the 3D surface plot, turn off the 
> perspective, and rotate the view until it is on top of the z axis and you 
> get a heatmap. 
>
>
> On Mon, Sep 18, 2017 at 2:10 PM, Nick Dunbar <[email protected] 
> <javascript:>> wrote:
>
>> Hi, 
>>
>> Is there any way of adapting the existing API to produce a heatmap like 
>> the attached image? I'm sure this must be possible somehow. 
>>
>> All suggestions appreciated. 
>>
>> 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 [email protected] 
>> <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/49cbafdd-7679-4bff-bc98-726c72216f4e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-visualization-api/49cbafdd-7679-4bff-bc98-726c72216f4e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
> [email protected] <javascript:>   5CC, Cambridge MA
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/329c1eca-ceab-40b9-a717-bed8cf79a11a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to