ChartWrapper using 'table' in dashboard does not refresh

瀏覽次數:19 次
跳到第一則未讀訊息

Sean Larson

未讀,
2018年2月2日 下午2:43:012018/2/2
收件者: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

未讀,
2018年2月2日 下午3:02:162018/2/2
收件者: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

未讀,
2018年2月2日 下午4:54:522018/2/2
收件者: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

未讀,
2018年2月3日 下午1:40:582018/2/3
收件者: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

未讀,
2018年2月3日 下午5:04:442018/2/3
收件者: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.
回覆所有人
回覆作者
轉寄
0 則新訊息