[英]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.