【发布时间】:2016-09-14 16:21:11
【问题描述】:
当我尝试在 bootstrap modal 中添加 google 图表 时,它是 small size,我添加了一个 resize 功能在屏幕尺寸改变时重绘它。
仍然图表 onLoad 是 small 但是当我调整窗口大小时,它占据了整个宽度。
当我在 普通 html 页面中添加 google chart 时,问题是 notcoming。
Normal HTML Page 和 Bootstrap Modal Page
感谢任何类型的帮助:)
【问题讨论】:
-
根据模态框的宽度在图表中设置
width选项... -
@WhiteHat :这样做不会使其响应:(
-
使用
resize事件——见redrawCharthere
标签: javascript html twitter-bootstrap google-visualization linechart