You use the getFilteredRows function on the DataTable to select the
cell(s) you want to highlight. In the example below column 6 is a
column which indicates User Role, then use the setRowProperty on those
rows highlight. I create a separate function to simplify. Example
below.
========================================================================
function set_row (rows, style) {
for (r in rows) {
data.setRowProperty(rows[r],'style',style);
}
}
var evp_rows = data.getFilteredRows([{column: 6, value: "EVP"}]);
set_row(evp_rows,"background-color:#EEF");
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.