繁体   English   中英

Google趋势图未显示

[英]Google trend chart not showing

我想在HTML内显示Google趋势图,但是问题是我从Google趋势页面获取了我的Embed javascript,它在我的本地计算机上不起作用。 我的目标是显示有关任何特定关键字的最近12个月的数据图表。 我怎样才能做到这一点?

屏幕截图

<!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>

看来您只是在砍底。 尝试在CSS或HTML中定义最小机体高度为450像素(〜嵌入Google的大小)

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM