谷歌趋势图未显示

时间:2017-10-12 04:10:46

标签: javascript html

我想在我的HTML中显示谷歌趋势图,但问题是我从谷歌趋势页面得到了我的嵌入式JavaScript它不能在我的本地机器上工作。我的目标是显示任何特定关键字的过去12个月数据的图表。我怎样才能做到这一点?

Screen shot

<!DOCTYPE html>
<html>
<head>
    <title>Test</title>
</head>

<body>

<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/1173_RC01/embed_loader.js"></script> <script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"arts","geo":"","time":"today 12-m"}],"category":0,"property":""}, {"exploreQuery":"q=arts&date=today 12-m","guestPath":"https://trends.google.co.in:443/trends/embed/"}); </script> 


</body>
</html>

1 个答案:

答案 0 :(得分:0)

看起来你只是在切断底部。尝试在css或html中定义最小身高450像素(〜谷歌嵌入的大小)

<body style="min-height: 450px">