Hi All,
i'm using "Google Table Visualization API" with JSON data table.
I'm trying to set a className to the table to replace the default
class "google-visualization-table-table".
For that i'm using the "p" property as followed : p:{className:
'myDataTable'}
Here is my whole code for my JSON data table:
-----------------------------------------
var JSONObject = {
cols: [{id: 'task', label: 'Task', type: 'string'},
{id: 'hours', label: 'Hours per Day', type: 'number'}],
rows: [{c:[{v: 'Work', p: {'style': 'border: 7px solid orange;'}},
{v: 11}]},
{c:[{v: 'Eat'}, {v: 2}]},
{c:[{v: 'Commute'}, {v: 2, f: '2.000', p: {'style':
'color: #CECECE;'}}]}],
p:{className: 'myDataTable'}
};
-----------------------------------------
But it is unsuccessful, i still have the default className "google-
visualization-table-table" instead my custom className.
Do you have an idea why it does not work ?
Thx in advance.
David
--
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.