我正在尝试构建一些html标牌内容,以显示特定关键字的趋势统计信息。问题是嵌入式图表只是部分可见。前25%显示但是它被切断了。
<div id="topleft">
<script type="text/javascript" src="embed.js"></script> <script type="text/javascript"> trends.embed.renderExploreWidget("GEO_MAP", {"comparisonItem":[{"keyword":"digital signage","geo":"","time":"today 12-m"}],"category":0,"property":""}, {"exploreQuery":"q=digital%20signage&date=today 12-m","guestPath":"https://trends.google.com:443/trends/embed/"}); </script>
</div>
#topleft {
position: fixed;
top: 0px;
left: 0px;
height: 360px;
width: 640px;
background-color: green;
}
答案 0 :(得分:1)
您的第一个脚本标记错误,请尝试使用
<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/1280_RC06/embed_loader.js"></script>
或直接从trends.google.com/trends/explore?date=today%2012-m&q=digital%20signage
复制