I have a sample google visualization controlwrapper here in this fiddle. How can I get the actual selected value of the control? ie, I drawn the control using column 1 and when I selected something, I want to get the values which are in column 1 instead of its formatted value like if I select CPU, the alert should be 1. I tried with following code and it returns only the formatted value.
google.visualization.events.addListener(chart, 'ready', function () {
if (control.getState().selectedValues.length > 0) {
alert(control.getState().selectedValues);
}
});
You could find selected row values as demonstrated below:
where
Example: JSFiddle