multi row header on Google Visualizations
Posted
by
Elzo Valugi
on Stack Overflow
See other posts from Stack Overflow
or by Elzo Valugi
Published on 2011-01-17T12:48:48Z
Indexed on
2012/10/26
23:01 UTC
Read the original article
Hit count: 179
google-visualization
I am trying to create a DataTable with a multi row header. I'll exemplify here:
| 2008 | 2009 |
---------------------------------------------------------
| price | qty. | price | qty |
---------------------------------------------------------
| 93993 | 34434 | 34244 | 3434 |
.....
The years headers can be fixed as I don't want to do sorting by that. Is there a way to do that in Google Visualizations?
Update
Attaching it with JS does NOT work, and it will disappear when sorting is done.
$(".google-visualization-table-table").prepend("<tr class='google-visualization-table-tr-head'><td colspan='4'>something</tr>");
© Stack Overflow or respective owner