나는이 시리즈의 한 종류와 dygraphs를 구축하기 위해 노력하고있어에서 분산 및 customBars 결합 errorBars하지만 그것은 단지 표시 중 하나 수있는 것처럼 보인다 :는 Dygraphs
: 이것은 내 코드는입니다
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="dygraph.js"></script>
<link rel="stylesheet" src="dygraph.css" />
</head>
<body>
<div id="container" style="width:1000px; height:600px;"></div>
<script type="text/javascript">
new Dygraph(
document.getElementById("container"),
[
[new Date("2016/2/3"), [1,3,6], [4]],
[new Date("2016/3/3"), [1,3,6], [3]],
[new Date("2016/4/3"), [1,3,6], [1]],
[new Date("2016/5/3"), [1,3,6], [2]],
[new Date("2016/6/3"), [1,3,6], [6]],
[new Date("2016/7/3"), [1,3,6], [5]]
],
{
labels: [ "Date", "SD" , "Scatter"],
showRangeSelector: true,
customBars: true,
drawPoints: true,
series: {
"SD" : {
},
"Scatter" : {
customBars: false,
strokeWidth: 0.0
}
},
includeZero: true
}
);
</script>
</body>
</html>
customBars가 주석 처리 된 경우 산점도가 표시됩니다. 그렇지 않은 경우 맞춤 막대가 표시됩니다. 둘 다 결코. 다음은 여기에 picture
있는 어떤 도움을 크게 JSfiddle
이해할 수있다! 감사합니다.
안녕 @Justine, 나는 라이브러리가 설정되지 않은 dygraphs에 대한 참조로 JSfiddle를 실행할 수 없습니다. 어떤 버전을 사용하고 있습니까? 귀하의 예를 실행할 수 있도록 JSfiddle을 고칠 수 있습니까? 감사합니다 –
좋아, 나는 외부 소스 https://cdnjs.cloudflare.com/ajax/libs/dygraph/2.0.0/dygraph.css 및 https://cdnjs.cloudflare.com/ajax/libs/dygraph/를 추가했습니다. 2.0.0/dygraph.js이고 현재 작동 중입니다. 나는 해결책을 찾으려고 노력할 것이다;) –