Changing a row value in column chart

23 views
Skip to first unread message

diferdin

unread,
Nov 14, 2012, 11:43:12 AM11/14/12
to google-visua...@googlegroups.com
Suppose I've got a column chart that is populated with rows dynamically upon reception of messages from a server, which makes it impossible to make assumptions on the index a specific row is in.
My stupid question is: how can I update the value for a specific row?

In theory I should retrieve the row, get the index and do a setValue(...) on it, however the APIs seem to lack a function allowing me to check whether a data table contains a specific row and/or getting the index for a row dynamically.

Any help is highly appreciated.

Thanks.

asgallant

unread,
Nov 14, 2012, 2:10:01 PM11/14/12
to google-visua...@googlegroups.com
Let me see if I've got this right: you are retrieving new data from a data source and the new data will pertain to a specific row in the DataTable which has to be updated, but you don't know how to identify which row to update, correct?

To find a row in the DataTable, you will need to use the #getFilteredRows method.  Using that, you can search the DataTable for whatever the identifying characteristic(s) of the row is/are and get the associated row index.
Reply all
Reply to author
Forward
0 new messages