ChartWrapper using 'table' in dashboard does not refresh

19 views
Skip to first unread message

Sean Larson

unread,
Feb 2, 2018, 2:43:01 PM2/2/18
to Google Visualization API
Hello,

I have a ColumnChart and TableChart in a dashboard using the 'view' option. I can change the value of some records in the dataTable or some chart options then redraw the chart or redraw the dashboard, but the table will never update to reflect changes. 

Is this working as intended?

Daniel LaLiberte

unread,
Feb 2, 2018, 3:02:16 PM2/2/18
to Google Visualization API
I believe the Table chart ought to be getting redrawn as well, each time you redraw the dashboard.  Can you point us at your web page so we can see what is happening?

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/6496f730-6681-4e1f-8fea-fd6f61146dda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Sean Larson

unread,
Feb 2, 2018, 4:54:52 PM2/2/18
to Google Visualization API
I have not posed my project on my website yet, maybe I can try to replicate in a codepen or similar...will post if I can do that.

Anyways, it is good to verify it should be doing this, I will spend some more time with it.

Sean Larson

unread,
Feb 3, 2018, 1:40:58 PM2/3/18
to Google Visualization API
It was due to a formatter I applied to the dataTable before calling the dashboard

The function I was testing cycles the dashboard between the raw values, % of total, and proportional %. It starts as '% of total' so I applied a formatter with pattern "###%" to the columns then when I changed the data I did not reapply or change the formatter, so the table remained "frozen". 

It is kind of strange that the table did not try to force the values into the format and display some strange output, and instead just froze the original value. I guess it encountered a format error and became disconnected?

Daniel LaLiberte

unread,
Feb 3, 2018, 5:04:44 PM2/3/18
to Google Visualization API
Sean,

If you changed the value of each cell with setValue, then it would seem reasonable to expect the formatted value to be cleared.  That is not done, however.  This might be considered a bug, but fixing it could potentially affect applications that depend on the current behavior.  Perhaps someone has preset the formatted value of everything to some default string, with the intention of later setting values and formatted values for only some of the rows.  

We should document the behavior, however, so it is clear.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages