hello volks...

the use case is like this:
i wanna display some infos with the pie chart, of google chart.
but at this moment i don't know how many charts it would be. i will
get some data and
i've to parse thrue them and now i know how many charts it would be.
so i append the div's in which the chart should be drawn first and
then give them to the PieChart Class as a container.

the code looks like this:

var counter = 1;

//Append the number of div's, in which the chart should be displayed.
while(counter<allCharts.length){
        var existingdiv1 = document.getElementById('allCharts');
        $(existingdiv1).append('<div id="chart'+counter+'"></div>');
        counter++;
}

counter = 1;
//the google chart part
$.each(allCharts, function(allCharts, _allChartsVar){
        var chart = new
google.visualization.PieChart(document.getElementById('chart'+counter));
        chart.draw(_allChartsVar.data, _allChartsVar.options);
        counter++;
        }
)



i hope i found the correct words to explain the problem..

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart 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-chart-api?hl=en.

Reply via email to