Hello,

I have seen a few posts about this with no reasonable solution it would 
seem. What I want to do is handle the click event on a treemap Node and if 
the selected Node is the header call the goUpAndDraw() method.

First of all it is not simple to find which Node is a header. Then once I 
do call goUpAndDraw(); nothing happens. It would appear that the 'select' 
event is then further being handled by google. Does anyone know how to get 
around this, for instance in c# one could declare that they have handled 
the event by "event.handled = true". If I call goUpAndDraw() outside of the 
select event it works fine. A hack is to use setInterval to rollup 1ms 
later. Any help would be appreciated, also is there any simple way to see 
if the selected node is the header?

This is my select and rollup event handlers the problem with this code is 
once i reach a final level node the level gets set incorrectly.

var level = 0;
 function selectHandler() {
            var itemLevel = chart.getSelection()[0].row;
            console.log(itemLevel);
            if (itemLevel != level) {
                level = itemLevel;
            } else {
                console.log("HIT HEADER");
                goUpTimer = setInterval(goUpAndDraw, 1);
                //chart.goUpAndDraw();
            }
        }

        function rollUp() {
            window.clearInterval(goUpTimer);
            var itemLevel = chart.getSelection()[0].row;
            level = itemLevel;
            console.log("SETTING LEVEL TO " + level);
        }

-- 
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.

Reply via email to