Thank you very much. I request you to pl check my other query and reply if you can answer.. its related to color of the bars in the columnchart. BR, Surya
On Nov 21, 10:03 pm, Roni Biran <[email protected]> wrote: > Hi > The only thing wrong that you did was to listen to a non existing event. > The event you need to listen to is called 'select' and not 'onClick' > More ref on this you can find > inhttp://code.google.com/apis/chart/interactive/docs/gallery/columnchar... > > On 21 בנוב 2011, at 17:57, Surya <[email protected]> wrote: > > Hi, > > Want to know if onclick even is possible for columnchart? pl help. > here is the code,.. > > var chart = new > google.visualization.ColumnChart(document.getElementById('chart_div')); > > google.visualization.events.addListener(chart, 'onclick', myfun); > chart.draw(data, {width: 600, height: 600, title: 'Company > Performance', > hAxis: {title: 'Year', > allowHtml:true,showRowNumber: true, enableEvents:true} > }); > > } > function myfun(event) { > alert('test'); > } > > when onclick is replaced with onmouseover the alert is coming but for > onclick i am not getting the message. > Basically my requirement is to show one more chart when the user > clicks on the bar of a column chart.. > > Thanks in advance, > Surya > > -- > 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 > athttp://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.
