Hello, I noticed the getSelection() method is not working anymore in all of 
Tree Map Charts I've created since years. They've always worked, but 
suddenly the getSelection method stopped returning the row/column value of 
selected item.

I tried this debugging handler and it returns "nothing", when normally, in 
Tree Map case, it should return the row value: getSelection()[0].row


function selectHandlerTree() {
           var selection = tree.getSelection();
  var message = '';

  for (var i = 0; i < selection.length; i++) {
    var item = selection[i];
    if (item.row != null && item.column != null) {
      message += '{row:' + item.row + ',column:' + item.column + '}';
    } else if (item.row != null) {
      message += '{row:' + item.row + '}';
    } else if (item.column != null) {
      message += '{column:' + item.column + '}';
    }
  }
  if (message == '') {
    message = 'nothing';
  }
  alert('You selected ' + message);
        }
              
Thanks.

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/3dc4975e-ed31-464a-9c59-abf27b5a9b5cn%40googlegroups.com.

Reply via email to