I am using google chart. > org chart
<script type="text/javascript">
google.charts.load('current', {packages:["orgchart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Name');
data.addColumn('string', 'Manager');
data.addColumn('string', 'ToolTip');
// For each orgchart box, provide the name, manager, and tooltip to
show.
data.addRows([
[{v:'Mike', f:'Mikes<div style="color:red;
font-style:italic">President</div>'},
'', 'The President'],
[{v:'Jim', f:'Jim<div style="color:red; font-style:italic">Vice
President</div>'},
'Mike', 'VP'],
['Alice', 'Mike', ''],
['Bob', 'Jim', 'Bob Sponge'],
['Carol', 'Bob', ''],
['wwe', 'Mike', ''],
['programming', 'Mike', ''],
['dev', 'Mike', ''],
['business', 'Mike', ''],
['rock', 'smackdown', ''],
['hhh', 'smackdown', ''],
['john', 'raw', ''],
['smackdown', 'wwe', ''],
['raw', 'wwe', ''],
['php', 'programming', ''],
['js', 'programming', ''],['ruby', 'programming', ''],
['python', 'programming', ''],['c', 'programming', ''],
['java', 'programming', ''],['c++', 'programming', ''],
['node', 'programming', ''],
['mark', 'dev', ''],['sergy', 'dev', ''],
['mcman', 'business', ''],
['bill', 'business', ''],['ruby', 'business', ''],
['gary', 'dev', ''],['steve', 'dev', ''],
['page', 'dev', ''],
['mark', 'business', ''],['sergy', 'business', ''],
['gary', 'business', ''],['steve', 'business', ''],
['page', 'business', ''],
['mcman', 'dev', '']
]);
// Create the chart.
var chart = new
google.visualization.OrgChart(document.getElementById('chart_div'));
// Draw the chart, setting the allowHtml option to true for the
tooltips.
chart.draw(data, {allowHtml:true});
}
</script>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/9a80e25d-ba90-4eaa-898e-403a86c34fb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.