Please read the documentation:

"Fired when the user clicks a bar or legend. When a bar is selected, the
corresponding cell in the data table is selected; when a legend is selected,
the corresponding column in the data table is selected. To learn what has
been selected, 
callgetSelection()<http://code.google.com/apis/visualization/documentation/gallery/barchart.html#Methods>
."


On Tue, Feb 8, 2011 at 2:57 PM, fkorleone <[email protected]> wrote:

> how to make the event handling
>  I use this
>
>  google.visualization.events.addListener (chart, 'select ',
> selectHandler)
>
>  selectHandler function (e) {
>
>   alert ('hello ');
>  }
>
>  but when you press any bar always gives me the message "Hello"
> obviously
>
>  What I need is that it gives me the name of each bar or the value of
> each bar or adding a logical id was not done.
>
>  Is that possible?
>
>  Thanks
>
>
> On 8 feb, 08:26, ChartALot <[email protected]> wrote:
> > Hi,
> > The values in bar chart do not support html content.
> > Another possibility to achieve your goal is to use our
> > events<
> http://code.google.com/apis/visualization/documentation/gallery/barch...>
> > .
> >
> > On Mon, Feb 7, 2011 at 10:36 PM, Franco Figueroa <[email protected]
> >wrote:
> >
> >
> >
> > > how to create a link by pressing on a bar of barChart
> > >  then lead to another website with data for that bar
> >
> > > For example:
> >
> > > var data = new google.visualization.DataTable();
> > > data.addColumn('string', 'Tareas');
> > > data.addColumn('number', 'Pendientes');
> > > data.addColumn('number', 'Vencidas');
> > > data.setValue(0, 0, 'CRS');
> > > data.setValue(0, 1, 5);
> > > data.setValue(0, 0, 1);
> > > data.setValue(1, 0, 'SCI');
> > > data.setValue(1, 1, 2);
> > > data.setValue(1, 2, 0);
> > > data.setValue(2, 0, 'SCM');
> > > data.setValue(2, 1, 3);
> > > data.setValue(2, 2, 1);
> >
> > > I try with
> >
> > > var formatter = new google.visualization.PatternFormat('<a
> > > href="mailto:{1}";>{0}</a>');
> > > formatter.format(data, [0, 1]); // Apply formatter and set the
> > > formatted value of the first column.
> >
> > > But I had no good results
> >
> > > pressing on the bar that has 3 tasks "pending"is redirect me to
> > > another website which contains details of these 3 tasks
> >
> > > Thanks
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Visualization 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-visualization-api?hl=en.- Ocultar
> texto de la cita -
> >
> > - Mostrar texto de la cita -
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization 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-visualization-api?hl=en.
>
>

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

Reply via email to