Thanks So Much
asgallant! it worked brilliantly.

On Jul 19, 10:33 pm, NA <[email protected]> wrote:
> Brilliant!  I need to really start thinking about using jQuery to
> tweak the GVIZ settings.  Very nice solution...
>
> On Jul 19, 1:22 pm, asgallant <[email protected]> wrote:
>
>
>
>
>
>
>
> > The API doesn't support this, but you can hack around it using jQuery:
>
> > 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, null);
>
> >      // set the width of the column with the title "Name" to 100px
> >      var title = "Name";
> >      var width = "100px";
> >      $('.google-visualization-table-th:contains(' + title +
> > ')').css('width', width);
>
> > }

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