Hi, 1. the color option in the options is for all nodes. 2. if you want to change one of the nodes, you can do that by setting an HTML to the requested node data.setCell(1, 0, 'Jim', '<div style="background-color:#ff00ff">Jim<br/><font color="red"><i>Vice President<i></font></div>'); 3. in order to add an image, add your image HTML elements into the HTML value data.setCell(3, 0, 'Bob', '<img src=" http://www.pitch.com/imager/obama-says-rock-chalk-jayhawk-baby/b/square/2576492/f664/presidentbarackobama.jpg "/><br/>Bob');
Just make sure that you have the "allowHtml" option set to true. On Sat, Nov 5, 2011 at 6:18 AM, Cege <[email protected]> wrote: > Hi everyone, > > I've been trying with OrgChart from this link > http://code.google.com/apis/ajax/playground/?type=visualization#org_chart > > All nodes/blocks chart are blue, I've added this line color: > ['#ff0000'] inside "chart.draw(data, {allowHtml:true})" but this > changes the color to all nodes. > > 3 questions: > How can I customize to put the color desired to each node/block? > > How can I change the font, for instance, to bold in the "President", > "Vice-President" etc? > > Is possible to insert an image of the person inside each block? (to > show person's face) > > Thanks in advance. > > Regards > > -- > 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. > > -- 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.
