1)when we pass particular state as parameter to the pie chart it should display a the details of that state in pie chart formatte
function drawVisualization() {
var query = new google.visualization.Query(
query.send(draw);
}
function draw(response) {
if (response.isError()) {
alert('Error in query');
}
var data = response.getDataTable();
//var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
//chart.draw(data, {'isStacked': true, 'legend': 'bottom','vAxis': {'title': ''}});
var chart1 = new google.visualization.PieChart(document.getElementById('pie_div'));
chart1.draw(data,{'width': 400, 'height': 240, 'is3D': true});
}
google.setOnLoadCallback(drawVisualization);