Assuming that you're filtering in a DataView, you can use the
getTableRowIndex method to get the index of the original data.

- Sergey


On Fri, Sep 20, 2013 at 2:57 AM, Ravindra Gharge
<[email protected]>wrote:

> 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.
>

-- 
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.

Reply via email to