If I recall correctly, the TreeMapCharts do not yet support adding values to the tooltips, nor do they support custom tooltips. You can create your own tooltips by registering "onmouseover" and "onmouseout" event handlers for the chart (these events pass an object containing the row of the DataTable that the moused over element is in; you can use this information to fetch data and populate your tooltip). Here's an example to get you started: http://jsfiddle.net/asgallant/fR7a9/ (note this example uses the jQuery library to assist with the tooltip; you can do it all without jQuery if you don't use the library)..
On Friday, May 17, 2013 6:45:07 AM UTC-4, Zoro Swordsman wrote: > > Hi, may I know can I show the value on the treemap? Just like a mouseover > function on other google chart. Cos I saw on the sample at google > playground, it only show the 'name' of that area instead of showing the > 'value'. Can I know what is the coding? > > 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
