Guilherme Gusman
unread,May 10, 2012, 8:54:04 AM5/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
I have a data table the renders the following JSON object:
var v_JSONObject = {
"cols": [
{ "id": "Date", "label": "Date", "type": "datetime" },
{ "id": "Value", "label": "Speed", "type": "number" },
{ "id": "Value", "label": "Pressure", "type": "number" }
],
"rows": [
{ "c": [{ "v": new Date(2010, 2, 2, 1, 0, 0), "f": null },
{ "v": 103, "f": null }, { "v": 53, "f": null}] },
{ "c": [{ "v": new Date(2010, 2, 2, 2, 0, 0), "f": null },
{ "v": 22, "f": null }, { "v": 73, "f": null}] },
{ "c": [{ "v": new Date(2010, 2, 2, 3, 0, 0), "f": null },
{ "v": 234, "f": null }, { "v": 121, "f": null}] },
{ "c": [{ "v": new Date(2010, 2, 2, 4, 0, 0), "f": null },
{ "v": 122, "f": null }, { "v": 12, "f": null}] },
{ "c": [{ "v": new Date(2010, 2, 2, 12, 0, 0), "f":
null }, { "v": 54, "f": null }, { "v": 76, "f": null}] }
]
}
So the first column is fixed, it's the date column and the others not.
I would like to include many columns as i want and filter them... i
know that a can filter for rows content but i would to filter by the
column header content, is that possible?
So in the end my table would be something like this:
Date | Speed | Pressure | RPM | ...
2010/05/05 | 35 | 38 | 454 | ...
2010/05/05 | 5 | 28 | 151 | ...
2010/05/05 | 45 | 12 | 424 | ...
2010/05/05 | 36 | 63 | 472 | ...
I would like to use the "CategoryFilter" to "play" with the columns.
Is that possible?
If not, is there another workaround that i can try?
Thanks in advance,
Guilherme Gusman