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<https://developers.google.com/chart/interactive/docs/reference#DataTable_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. On Wednesday, November 14, 2012 11:43:12 AM UTC-5, diferdin wrote: > > 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. > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/owlO2BpVs-AJ. 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.
