Hi Many events supported by line, pie, column charts and the likes are not supported by the ATL, unfortunately hover event is one of those events
Badtnik On Sat, Sep 25, 2010 at 9:23 AM, BiBi <[email protected]> wrote: > Hi, > > Im using Annotated timline API and I have 5 columns except for date > column. values are passed to these column using a loop in php anfd It > is working well. > > eg: > A = array(11, 16, 8, 5, 9, 15, 11, 8, 10, 2, 12, 17, 8, 11); -----> > page A > B = array(2, 2, 2, 5, 2, 4, 4, 4, 106, 11, 1, 2, 2, 8, 4, 4); -----> > page B > ... > E = array(2, 5, 2, 3, 2, 1, 1, 7, 3, 33, 4, 1, 27, 3, 11, 54); ----> > page E > > I need to add click event on the graph. As a example if I click on 'A' > values series, I want to open a new page (page A). If click event on > 'B' values series, then .page B'. > > I could do it for pie chart, bar chart and line chart. This is my code > for line chart > ///////////////////// > > google.visualization.events.addListener(chart, 'select', > selectHandler); > > function selectHandler(e){ > var selection = chart.getSelection(); > > for (var i = 0; i < selection.length; i++) { > var item = selection[i]; > var val = data.getFormattedValue(0,item.column); > > if(val== <?php echo $A[0]; ?> ){ > window.location.href="http://localhost/chart/A.php"; > } > } > ///////////////////// > > But in Annotated timline, when I hover mouse on the graph, by default > all column values are selected. I need to select only one column > data. > > > > -- > 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]<google-visualization-api%[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.
