Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 在jade中加载谷歌图表_Css_Express_Google Visualization_Pug - Fatal编程技术网

Css 在jade中加载谷歌图表

Css 在jade中加载谷歌图表,css,express,google-visualization,pug,Css,Express,Google Visualization,Pug,我正在尝试使用jade加载google注释的图表,但无法使该图表呈现。我能够加载饼图,但在加载需要显式指定容器元素大小的图表时无法加载 谷歌的例子 翻译成我的代码 *我的CSS浏览了express layout.jade文件,注意图表分区加载的蓝色背景* body { padding: 50px; font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; } a { color: #00B7FF; } #chart_di

我正在尝试使用jade加载google注释的图表,但无法使该图表呈现。我能够加载饼图,但在加载需要显式指定容器元素大小的图表时无法加载

谷歌的例子

翻译成我的代码

*我的CSS浏览了express layout.jade文件,注意图表分区加载的蓝色背景*

body {
  padding: 50px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

a {
  color: #00B7FF;
}

#chart_div {
    background-color: #00B7FF;
    width: 700px;
    height: 240px;
}

看起来这只是一个提前结束绘图功能的问题

添加数据后的}必须在chart.draw之后

body {
  padding: 50px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

a {
  color: #00B7FF;
}

#chart_div {
    background-color: #00B7FF;
    width: 700px;
    height: 240px;
}