Have a look at cssNames option, as described in the documentation (
http://code.google.com/apis/chart/interactive/docs/gallery/table.html )
which lets you assign a specific CSS style both to the header row and header
cells. You can then apply the color scheme of your choice to that CSS class.

-- R.

On 23 September 2011 13:50, Patel <[email protected]> wrote:

> How to change the background  color of Name, Height and Smokes?
>
>
> function drawVisualization() {
>  // Create and populate the data table.
>  var data = new google.visualization.DataTable();
>  data.addColumn('string', 'Name');
>  data.addColumn('number', 'Height');
>  data.addColumn('boolean', 'Smokes');
>  data.addRows(3);
>  data.setCell(0, 0, 'Tong Ning mu');
>  data.setCell(1, 0, 'Huang Ang fa');
>  data.setCell(2, 0, 'Teng nu');
>  data.setCell(0, 1, 174);
>  data.setCell(1, 1, 523);
>  data.setCell(2, 1, 86);
>  data.setCell(0, 2, true);
>  data.setCell(1, 2, false);
>  data.setCell(2, 2, true);
>
>
>
>  // Create and draw the visualization.
>  visualization = new
> google.visualization.Table(document.getElementById('table'));
>  visualization.draw(data, {allowHtml: true});
> }
>
> In this example:
> http://code.google.com/apis/ajax/playground/?type=visualization#table
>
> --
> 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.
>
>

-- 
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.

Reply via email to