We did it in order to provide a generic code example for selection.We may add some words about the table being using only row selection.
Regards, VizGuy On Tue, May 12, 2009 at 3:14 PM, Churky <[email protected]> wrote: > > So the code example is very misleading, because why would u check if > column is null or not? Why not just check for just row? > > Churk > > On May 12, 5:05 am, VizGuy <[email protected]> wrote: > > I suppose you refer to the Table example.The table visualization selects > > rows, and not cells, and so there is never 'column' property of the > > selection. > > Other visualizations do selects columns, or cells, and the details are > > described in the specific docs of the charts. > > > > Regards, > > VizGuy > > > > On Mon, May 11, 2009 at 9:37 PM, Churky <[email protected]> wrote: > > > > > Using this function: for(var member in item){ alert(member); }; > > > the only thing that was return was row. Column is obviously not > > > defined. > > > > > Churk > > > > > On May 11, 1:47 pm, Churky <[email protected]> wrote: > > > > I have try to re-implement the event handling example. But as you can > > > > see, every column you click on, Column selected is always NONE, but u > > > > may be clicking on column 1 or 2. > > > > > > Anyone have any success on getting selected column? > > > > > > This section of the code is never reach because Column is always > > > > undefined: > > > > else if (item.column != null) { > > > > var str = data.getFormattedValue(0, item.column); > > > > message += '{row:none, column:' + item.column + '}; value > (row > > > > 0) = ' + str + '\n'; > > > > } > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
