i want to change this object depends on the select event (i am working on
the drill down charts)'
on the first level i have the state chart depends on the selection of the
state i have to filter the values from the data2 object
i able to draw the chart at this level but on select event i have to get
the value of the town
var data2 = google.visualization.arrayToDataTable([
['state' , 'town','count'],
<?php
$getStateTownInfo = mysql_query("SELECT
`state`,`town`,SUM(`outlet_status`) as salesCovered FROM `poientry` group
by town");
$getTowns = Array();
$getStatesTowns = Array();
while( $row = mysql_fetch_assoc($getStateTownInfo)){
$state = $row['state'];
$town = $row['town'];
$getTowns[] = $town;
$getStatesTowns[] = $state;
$salesCovered = $row['salesCovered'];
echo "['{$state}', '{$town}', {$salesCovered}],";
}
?>
]);
--
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/groups/opt_out.