Is it possible for me to get the bin information?
Basically, the user has selected a bar in the histogram. I want information 
about the bar. 
The start and end for the column on the haxis would be useful information. 
Can I get that? 

Thanks, 
Ekta 


On Thursday, March 6, 2014 at 6:33:27 PM UTC+5:30, Dustqm Sybolls wrote:
>
> I added listener like this;
>
> google.visualization.events.addListener(chart, 'select', myClickHandler);
>
> My listener function like this;
>
>                       function myClickHandler(){
> var selection = chart.getSelection();
> var message = '';
>
>  for (var i = 0; i < selection.length; i++) {
>    var item = selection[i];
>    var value = data.getValue(item.row, 0);
>    if (item.row != null && item.column != null) {
>      message += '{row:' + item.row + ',column:' + item.column + '} / 
> Value: ' + value;
>    } else if (item.row != null) {
>      message += '{row:' + item.row + '}';
>    } else if (item.column != null) {
>      message += '{column:' + item.column + '}';
>    }
>  }
>  if (message != '') {
>  alert('You selected ' + message);
>  }
> }
>
> But value is not true.. Because when I select, it gives me place on which 
> column is on it.. But I want the row of data array..
>
> So how can I get selected data value??
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/ea15ff64-21bd-4690-8011-3fd3f036eaf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to