Ok, I did some experimenting, and it turns out that the formatter stores the old formatted value in a cell property (_bar_format_old_value) which it uses when you reformat the table. You can get around this by using the #setCell method instead of #setValue, ie:
data.setCell(row, col, value, null, null); The first null clears the formatted value, the second clears the cell properties. You can then reformat as you wish. On Monday, May 14, 2012 9:50:23 AM UTC-4, NA wrote: > > I tried your idea, and it didn't work. Same problem as without it. > > I also don't understand why it works when the chart is first drawn, but > not after the chart is updated. It seems as if the only way to make > progress here is to just destroy the chart and redraw it each time, which > isn't desirable. > > Does anyone have a working example of a number formatter and bar formatter > applied to a table whose values are then updated? > > -- 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/-/ABAy6tDAGBAJ. 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.
