Hi, I don't know a word of php, but note that a person and their manager shouldn't be in the same cell for the organizational chart. The structure is that in column 0 are the people and in column 1 are their managers. So that something like data.setCell(3, 0, 'Bob'); data.setCell(3, 1, 'Jim');
Declares that Jim is Bob's manager (this is in row 3). I suggest you look at a full example at: http://code.google.com/apis/visualization/documentation/gallery/orgchart.html Regards, VizBoy. On Mon, Feb 23, 2009 at 5:58 PM, Lister <[email protected]> wrote: > > Hello > > First off great work with the API. > > I am not really a javascript person and just learning php/mysql so > most of this is beyond my knowledge. > > I am trying to make an organisation chart which can display the > hierarchical tree structure of an organisation. I have currently got > mysql running for the rest of the site but trying to get values from > mysql into the API system so it can draw the structure. > > i have tried connecting the php page to the database then calling > > data.setCell(<?php $row['id']; $row['manager']; $row['name']; ?>); > > But having no luck. > > // Stop laughing now please :) > > any help would be great. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
