将图像放在Google Visualization Table单元格中

ika*_*eat 4 google-visualization google-datatable

我正在试验Google的可视化表的表格和示例代码.

https://google-developers.appspot.com/chart/interactive/docs/gallery/table

但是,我需要能够在单元格内使用图像(通过URL).看来AddColumn功能只支持string,number,boolean,date,datetime,和timeofday每个类型的datatable 文档.

有没有办法围绕这个或我缺少的东西能够将网络图像插入某些单元格?

asg*_*ant 8

您必须使用包含HTML的"字符串"类型列来创建<img>标记.然后在Table的选项中,您需要将该allowHtml选项设置为true.