Ekta,

Information about the bins is not available at this time.  We are planning
on overhauling the Histogram chart at some point to provide much more
capability, along with better integration with the rest of the charts, so
we will keep this request in mind.

On Thu, Sep 10, 2015 at 4:08 AM, Ekta Agarwal <[email protected]>
wrote:

> 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
> <https://groups.google.com/d/msgid/google-visualization-api/ea15ff64-21bd-4690-8011-3fd3f036eaf0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton MA

-- 
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/CAOtcSJNF_V-YsSYeVSsW5%3DiCAvXdy%3DYdcb8LLe%2B3KGNk2vjsog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to