Hi,

Do anyone know if the method getFormattedValue(numofrows,numofcols)
does not work in some context ?

I am trying it to use it with the ColumnChart visualization. I am
trying to select a bar on the column chart and trying to get the
values of the selected bar by calling the getFormattedValue() method.

But, everything till the line in the code before i call the above
method works fine. Nothing after that line seems to work. It is not
returning anything as result of the call.

Below is the code snippet,

function selectionHandler1()
        {
             alert("bar selected");
             var selection = barsVisualization.getSelection();
             var message = '';
             alert(""+selection.length);
             for (var i = 0; i < selection.length; i++) {
             var item = selection[i];
                if (item.row != null && item.column != null) {
                var str = data1.getFormattedValue(item.row,
item.column);
                alert(""+str);
                message += '{row:' + item.row + ',column:' +
item.column + '} = ' + str + '\n';
                alert(""+message);
             }
}

I tried the same on the Code playground. There it seems to be working
fine. I compared both line by line and they are similar. But, still i
don't see anything.

http://code.google.com/apis/ajax/playground/?type=visualization#select_event

Please, help me find out a solution.

Thanks,
Madhan

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to