我使用禁用的範圍內選擇小圖: showInRangeSelector: false,
,但我發現警告標誌是這樣的: 我似乎無法找到哪裏是錯誤。DYGRAPHS:顯示警告時,禁止小圖的範圍內選擇
更新,代碼:
<html>
<head>
<link href="http://dygraphs.com/2.0.0/dygraph.css" rel="stylesheet"/>
<script src="http://dygraphs.com/2.0.0/dygraph.js"></script>
<div id="hello" class="chart"></div>
</head>
<body>
<script type = "text/javascript">
var hello = [
[new Date("2016-03-06"),[10,20,30],[11,11,11]],
[new Date("2016-03-07"),[10,20,30],[15,15,15]],
[new Date("2016-03-08"),[10,20,30],[32,32,32]],
[new Date("2016-03-09"),[10,20,30],[18,18,18]],
[new Date("2016-03-10"),[10,20,30],[26,26,26]],
[new Date("2016-03-11"),[10,20,30],[31,31,31]],
[new Date("2016-03-12"),[10,20,30],[9,9,9]],
],
a = new Dygraph(
document.getElementById("hello"),hello,
{
labels: [ "Date", "Mean" , "Scatter"],
customBars: true,
showRangeSelector: true,
showInRangeSelector : false,
interactionModel: Dygraph.defaultInteractionModel,
series: {
"Mean" : {
drawPoints: false,
color: "#585858",
},
"Scatter" : {
drawPoints: true,
pointSize: 3,
strokeWidth: 0,
}
},
}
);
</script>
謝謝:)
我必須添加額外的措辭,因爲該職位主要是代碼,我不能將它張貼:P
你能發佈你的代碼能夠幫助你嗎? –
@LucidioVacas新增:)我做了一個jfiddle,但你不能看到警告標誌:P – Justine