how to pass parameter to pie chart

101 views
Skip to first unread message

sk

unread,
May 31, 2012, 5:44:36 AM5/31/12
to google-visua...@googlegroups.com
hello i want to pass parameter to the pie chart

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

please kindly help me ASAP

 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);

Jinji

unread,
May 31, 2012, 12:47:36 PM5/31/12
to google-visua...@googlegroups.com
I'm afraid I didn't understand. Are you trying to make the tooltip automatically open on a specific pie of the PieChart? If so, that's not supported, sorry.


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/Bz2xBuNhwhEJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

Reply all
Reply to author
Forward
0 new messages