Hi There are two ways to control the classNames for the table visualization 1) For each specific '*cell*' you can use a custom property className that would be assigned to the cell. 2) You can replace some of the global css classes by passing an option['cssClassNames'] with alternative class names - http://code.google.com/apis/visualization/documentation/gallery/table.html#Configuration_Options
<http://code.google.com/apis/visualization/documentation/gallery/table.html#Configuration_Options>If you still can't get it to work as you wanted to please send an example of your code. ChartMan On Thu, May 20, 2010 at 4:44 AM, dco <[email protected]> wrote: > 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]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- 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.
