[visualization-api] Re: Timeline get selected element

2014-06-19 Thread JProject
(); if (selection.length) { alert(Row: +selection[0].row); alert(Length: +selection.length); }else{ alert(2 - Length: +selection.length); } }); } /script /head body div id=example1 style=width: 900px; height: 180px;/div /body /html Em quarta-feira, 18 de junho de 2014 15h52min14s UTC-3, JProject escreveu

[visualization-api] Re: Timeline get selected element

2014-06-19 Thread JProject
: one with a number value (this is the row index) and one that is null (this would be the column index, if selecting a column in a Timeline had any meaning). On Thursday, June 19, 2014 11:16:42 AM UTC-4, JProject wrote: Andrew Gallant, thanks for the reply. Yet selection[0].row is returning

[visualization-api] Timeline get selected element

2014-06-18 Thread JProject
Hello, I want to capture the selected element in my timeline, but chart.getSelection () [0]. Returns undefined. var container = document.getElementById('timeline'); chartTimeLine = new google.visualization.Timeline(container); dataTimeLine = new google.visualization.DataTable();