I have an application which uses:
google.visualization.events.addListener(table, 'select', function
(event)

to determine the selected value from a column - then apply this value
to filter a view which in turn drives a chart of the subset of
matching rows.

http://www.logsitall.com/jswrite2-better.asp

I have two questions:

1. This command

view.setRows(view.getFilteredRows([{column: 1, value: data.getValue
(item.row, 1)}]));

works - as long as the column in question returns a numeric value. I
can not sort out how to use the data.getValue to function when the
returned value is a string.

2. I'd like to allow the user to select any value in any column  and
use this value/column information to filter the view that drives the
chart - however each time i've tried to use a variation of:

view.setRows(view.getFilteredRows([{column: item.column, value:
data.getValue(item.row, item.Column)}]));

the item.column value comes back null and the function fails.

Thank you very much in advance.

-bill
-- 
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