Daniel,

Thanks for the reply and jsfiddle example.  While I was in the process of 
removing superfluous elements to get the page to a minimum to demonstrate 
the issue I noticed it suddenly started working with the tooltips appearing 
on top as expected.
My page is programmatically generated and there are no CR/LF characters or 
other formatting to make it more humanly readable and that was the issue. 
 Simply adding a space at the end of the file, after </HTML> cause the 
tooltips to work as expected.

Here is the example where the tooltips appear 'under' the 
Treemap http://www.pluhk.com/Treemap-Tooltip-Under.html
Here is the example where the tooltips appear 'over' the Treemap 
 http://www.pluhk.com/Treemap-Tooltip-Over.html

The only difference between the two files is an extra space on the end of 
the file that works.

Looking in developer tools at the elements, the example that does not work 
the tooltip <DIV>s are inserted BEFORE the Treemap <DIV> and in the example 
that works the tooltip <DIV>s are inserted AFTER the Treemap <DIV> hence 
the z-index rendering differences.

Who knew the power of a space :)

Thanks for your help,

Paul




On Tuesday, 16 February 2016 20:12:03 UTC, [email protected] wrote:
>
> I am using a Treemap based on the Treemaps documentation utilising 
> the generateTooltip option with the 4 line tooltip example.
> The Treemap displays as expected but the tooltips appear 'behind' the 
> Treemap.  If a tooltip is displayed for a cell near the edge I see a 
> partial tooltip, half 'under'' the Treemap, the other half to the side of 
> the Treemap.
> Looking in developer tools in Chrome I see hidden tooltip <DIV>'s inserted 
>  just after the <BODY> but before the <DIV> containing the Treemap.  If I 
> manually move, in developer tools, one of the tooltip <DIV>s to be after 
> the Treemap <DIV> the tooltip displays on top as required.
> I assume the Treemap javascript is inserting the hidden tooltip <DIV>s, 
> how can I make sure they are inserted after the Treemap <DIV> so the 
> tooltips appear on top or is there something else I am missing.
>
> Thanks,
>
> Paul
>
>

-- 
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/ce8bbd55-117a-4de9-a74d-3818337c9bef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to