Howard Jones ha scritto: > Renato Formato wrote: >> Hi all, >> >> I wrote a jQuery plugin to show treemaps >> (http://en.wikipedia.org/wiki/Treemap) easily thanks to jQuery. >> >> A treemap is a nice way to visually show data with rectangles and colors. >> >> Let me know what do you think about it, how can I enhance it, add new >> features and so on. >> >> Link: http://www.jquery.info/spip.php?article40 > That's a really cool example of both jQuery and unobtrusive javascript > :-) Nice one! > > One nice thing would be some way to carry through IDs from the source > data to the treemap. Suppose you have a table, you turn it into a > treemap and then you wanted to attach context menus, or pop up more > information. If you could know the ID of the divs, you could use other > plugins on the results. Say, take the ID for the source TR/LI and prefix > it with 'treemap_' or something? >
Hi Howie, thanks for your suggestion. This change would require a different structure of the data array, to pass the id. I would like not to change it at the moment. However, as an alternative, a function to retrieve a treemap cell given its content,its primary or secondary data can be provided. Do you think it could be a good alternative? Ciao Renato _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/