Hi, The GWT Visualization OrgChart has evolved with the described "allowHtml" feature. I am using OrgChart using the GWT Visualization API with the allowhtml set. Using this allowHtml option i am embedding a div element with an image in a OrgChart node. Now, using GWT Visualization API, is it possible to attach a click event handler for this image in the OrgChart node? Basically, i am adding a bunch of images to each node in the OrgChart and want the individual click handlers to be attached to them which gets called to do some work. The only event now that gets fired is the SelectEvent which only refers to the underlying table. Please let me know if you need more details. Any information regarding how to accomplish this is appreciated!
Thanks! On Wednesday, June 4, 2008 3:49:53 AM UTC-4, VizGuy (Google) wrote: > > Mark, this is beautiful ! > The obfuscation is done to make the JS more compact and faster to > load. I'll try and get an open-source version out as well. I will also > check the option for providing a custom node renderer, which should > make your solution less hackey. > > On Jun 4, 12:34 am, mark mclaren <[email protected]> wrote: > > I have resorted to a very nasty hack in order to get the > > Organizational Chart visualization component displaying HTML (although > > not all HTML seems to work). > > > > http://mark.mclaren.googlepages.com/orgChartGoogle.html > > > > Would it be possible to make the JavaScript source code for the > > Visualization API components available without obfuscation? I think > > developers of new visualizations would love to see how the masters do > > it in plain code. Obfuscating the code means that people with > > existing experience of say the Google Maps API are discouraged from > > contributing. > > > > Mark > > > > On Jun 4, 8:24 am, "VizGuy (Google)" <[email protected]> wrote: > > > > > Currently there isn't. Thinking outloud how to address this: what if > > > the control would allow you to set a renderer that is called with a > > > row number, and draws (returns an HTML string)the inner part of the > > > element? Will that work for what you need ? > > > > > On Jun 3, 8:02 am, Pete <[email protected]> wrote: > > > > > > Thanks for the quick reply. > > > > > > I'm assuming there is no way to extend that control or add to it? > > > > > > VizGuy (Google) wrote: > > > > > Currently this is not possible. It could be a nice improvement to > > > > > support HTML inside an orgchart box. > > > > > > > On Jun 2, 9:42 pm, Pete <[email protected]> wrote: > > > > > > Hello, > > > > > > > > I was wondering if anyone has any tips for formatting text > within an > > > > > > org chart. For example, in a box I would like to have something > like: > > > > > > Position > > > > > > Name > > > > > > Phone > > > > > > Email > > > > > > > > So I guess a good place to start would be how to simply add a > line > > > > > > break. Any help is appreciated. > > > > > > > > Thank you. -- 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 http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
