You can co-opt the ColumnChart to do that for you: http://jsfiddle.net/asgallant/kpnpvank/1/
On Wednesday, August 20, 2014 4:31:08 PM UTC-4, Bryan Maloney wrote: > > Since Google API doesn't support phylograms (and certainly not unrooted > trees), is there a way I can do a distance matrix-based heat map. > > Allow me to illustrate: > > Suppose I have the following distance matrix, where 0 is identity, and the > larger the number, the greater the distance. > > Generation X Boomers Silent Missionary GI Lost X 0 0.021 0.269 0.954 > 0.558 1.031 Boomers 0.021 0 0.224 0.896 0.48 0.795 Silent 0.269 0.224 0 > 0.417 0.342 0.7 Missionary 0.954 0.896 0.417 0 0.417 0.997 GI 0.558 0.48 > 0.342 0.417 0 0.269 Lost 1.031 0.795 0.7 0.997 0.269 0 > From that, I wish to generate this (where black = 0 distance, and white = > max distance, although I could code the colors in lots of other ways): > -- 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 http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
