Guest User

PLuS

a guest
Aug 16th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
  4.  
  5. <script type="text/javascript" src="http://www.google.com/jsapi"></script>
  6. <script type="text/javascript">
  7.     google.load('visualization', '1', {packages: ['orgchart']});
  8. </script>
  9.  
  10. <script type="text/javascript">
  11.     function drawVisualization() {
  12.   // Create and populate the data table.
  13.   var data = new google.visualization.DataTable();
  14.   data.addColumn('string', 'Name');
  15.   data.addColumn('string', 'Manager');
  16.   data.addColumn('string', 'ToolTip');
  17.  
  18.   data.addRow(['Management', '', '']);
  19.    
  20.     data.addRow(['public relations', 'Management', '']);
  21.   data.addRow(['WG public relations', 'public relations', '']);
  22.   data.addRow(['WG magazine', 'public relations', '']);
  23.   data.addRow(['WG Internet', 'public relations', '']);
  24.  
  25.     data.addRow(['Representations', 'Management', '']);
  26.     data.addRow(['Org1', 'Representations', '']);
  27.         data.addRow(['The Management of Org1', 'Org1', '']);
  28.         data.addRow(['committee of Org1', 'Org1', '']);
  29.        
  30.     data.addRow(['Org2', 'Representations', '']);
  31.         data.addRow(['The Management of Org2', 'Org2', '']);
  32.         data.addRow(['committee of Org2', 'Org2', '']);
  33.        
  34.     data.addRow(['Org3', 'Representations', '']);
  35.         data.addRow(['The Management of Org3', 'Org3', '']);
  36.         data.addRow(['committee of Org3', 'Org3', '']);
  37.  
  38.   data.addRow(['social services for target groups', 'Management', '']);
  39.   data.addRow(['WG children', 'social services for target groups', '']);
  40.     data.addRow(['children event', 'WG children', '']);
  41.   data.addRow(['WG youth', 'social services for target groups', '']);
  42.   data.addRow(['WG working world', 'social services for target groups', '']);
  43.   data.addRow(['WG fun', 'social services for target groups', '']);
  44.     data.addRow(['event1', 'WG fun', '']);
  45.     data.addRow(['event2', 'WG fun', '']);
  46.     data.addRow(['event3', 'WG fun', '']);
  47.     data.addRow(['SMS', 'WG fun', '']);  
  48.   data.addRow(['WG education', 'social services for target groups', '']);
  49.   data.addRow(['employees', 'social services for target groups', '']);
  50.     data.addRow(['employee WE', 'employees', '']);
  51.     data.addRow(['employee training', 'employees', '']);
  52.     data.addRow(['employee workshop', 'employees', '']);  
  53.   data.addRow(['WG financials', 'social services for target groups', '']);
  54.   data.addRow(['education', 'social services for target groups', '']);
  55.     data.addRow(['class1', 'education', '']);
  56.     data.addRow(['class2', 'education', '']);
  57.     data.addRow(['class3', 'education', '']);
  58.     data.addRow(['class4', 'education', '']);
  59.     data.addRow(['class5', 'education', '']);
  60.     data.addRow(['class6', 'education', '']);
  61.     data.addRow(['class7', 'education', '']);  
  62.   data.addRow(['general meeting', 'social services for target groups', '']);
  63.  
  64.   data.addRow(['UHD (User Help Desk)', 'Management', '']);
  65.  
  66.   data.addRow(['Financials / Administration', 'Management', '']);
  67.  
  68.  
  69.  
  70.  
  71.  
  72.         // Create and draw the visualization.
  73.         var table = new google.visualization.OrgChart(document.getElementById('visualization'));
  74.         table.draw(data, {allowHtml: true});
  75.            
  76.  
  77.       }
  78.  
  79.  
  80.  
  81.       google.setOnLoadCallback(drawVisualization);
  82.     </script>
  83. </head>
  84.  
  85. <body>
  86.     <div id="visualization"></div>
  87. </body>
  88. </html>
Advertisement
Add Comment
Please, Sign In to add comment