Here is an example:

function drawVisualization() {
  // Create and populate the data table.
  var data = new google.visualization.DataTable();
  data.addColumn('string', 'Name');
  data.addColumn('string', 'Manager');
  data.addColumn('string', 'ToolTip');
  data.addRows(5);
  data.setCell(0, 0, 'Mike');
  data.setCell(0, 2, 'The President');
  data.setCell(1, 0, 'Jim');
  data.setCell(1, 1, 'Mike');
  data.setCell(2, 0, 'Alice');
  data.setCell(2, 1, 'Mike');
  data.setCell(3, 0, 'Bob');
  data.setCell(3, 1, 'Jim');
  data.setCell(3, 2, 'Bob Sponge');
  data.setCell(4, 0, 'Carol');
  data.setCell(4, 1, 'Bob');
  data.setRowProperty(2, 'style', 'color: #f00;');

  // Create and draw the visualization.
  new google.visualization.OrgChart(document.getElementById('visualization')
).
      draw(data, {allowHtml: true});
}

On Thu, Sep 16, 2010 at 9:14 AM, Alister Cameron
<[email protected]>wrote:

> There is NO example code ANYWHERE that I can find to actually
> demonstrate proof that ANY org chart styling is supported, even though
> it is documented.
>
> This is very frustrating, as following the documentation has left me
> completely frustrated.
>
> Can SOMEONE please provide an online example of styling working?!
> PLEASE?!
>
> A line from the docs says:
>
> "You can assign the following custom properties to data table
> elements, using the setProperty() method of DataTable"
>
> Well, no you can't. I've tried. Nothing at all happens.
>
> I'm not just wanting to style all nodes the same, but I want to style
> individual nodes differently to highlight certain ones.
>
> No can do.
>
> Can someone PLEASE prove me wrong with an example??!
>
> -Alister
>
> --
> 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.

Reply via email to