I temporarily solved by loading the previous version of libraries (49).
Il giorno giovedì 13 maggio 2021 alle 14:52:02 UTC+2 Simone Fracassa ha
scritto:
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/9ca143f7-3b38-43ad-b790-6b47985919cdn%40googlegroups.com.