This is my following code : 

    function drawChartYear(data,chart){
google.visualization.events.removeAllListeners(chart);
var dataYear;
if(data != 1 && data != 11){ //default when page loads.....
console.log("Line Default run ");
dataYear = data;
}else{
var year ='year';
displayLoader();
var jsonData = $.ajax({
type: "POST",
url: "getYearMainChart.php",
data: $("#my_form").serialize(),
dataType: "json",
async: false
}).responseText;
 var obj = jQuery.parseJSON(jsonData);  
 if(obj == 'No Data Found'){
currentChartView=0;
alert(obj);
hideLoader();
}else{
dataYear = google.visualization.arrayToDataTable(obj);
} 
}
 var totalCount = totalRecords(dataYear,chart);
 setSelectBoxWithChartVals(dataYear);
chart.setDataTable(dataYear);
chart.setOptions(options)
chart.draw(); 
 var stateListener = google.visualization.events.addListener(chart, 
'select', selectHandler);
        function selectHandler() {
console.log("select listner called : Year");
var sel = chart.getChart().getSelection();   console.log("sel : 
"+sel.toSource());
if (sel) {
var year = dataYear.getValue(sel[0].row, 0); console.log("year : "+year);
var user = dataYear.getColumnLabel(sel[0].column); console.log("user name : 
"+user)
google.visualization.events.removeListener(stateListener);
drawMonthChart(year,user,chart);
}
        }
    }

I am populating the chart with this function initially.
but stateListener not working , after clicking chart getting blocked.
same is working fine in mozilla firefox .

-- 
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/d/optout.

Reply via email to