google visualization "p Property" supported attributes -
i want make value ("v") appear on rollover using standard html title attribute (among placing other attributes other purposes).
the visualization docs can done via "p property". however, code below classname rendered attribute in td tags.
given "style" attribute example directly copied documentation - https://developers.google.com/chart/interactive/docs/reference#cell_object, assume i'm doing wrong. can see might be?
cell object:
{ "v": "\/?s=mi+shampoo+adecuado?&submit=buscar", "f": "\/?s=m...uscar", "p": { "title": "\/?s=mi+shampoo+adecuado?&submit=buscar", "style": "border: 1px solid green;", "classname": "randomcls", "data-title": "\/?s=mi+shampoo+adecuado?&submit=buscar" } }, visualization code
var table = new google.visualization.datatable(); for(var j=0; j < data[0].length; j++) { table.addcolumn(typeof data[1][j].v,data[0][j]); } data.shift(); table.addrows(data); var ac = new google.visualization.table(graph.get(0)); // areachart ac.draw(table, { backgroundcolor: {fill:'#d4d4d4'}, colors : ["#999999",'#004087'] });
the table visualization supports "classname" , "style" properties cells. if need apply additional html properties cells, have write custom code parse <table> element created visualization , add properties <td> elements manually. if can put properties on cell contents instead of <td> elements, can set formatted values of cells contain whatever html need.
Comments
Post a Comment