我只想绘制两条线,但它会生成多条可以重叠的线。并且x轴时间有时会消失。 Here is the graph generated
After zoom in you can see the points are actually the top sharpes
这是我的代码:
g = new Dygraph(document.getElementById("chartConatiner-"+$scope.graphIndex[j]),$scope.LcDataList[j]['data'].sort(Comparator2),{labels: $scope.LcDataList[j]['opts']['labels'], title: $scope.LcDataList[j]['opts']['title'], axes: {
x: {
valueFormatter: Dygraph.dateString_,
axisLabelFormatter: Dygraph.dateAxisFormatter,
ticker: Dygraph.dateTicker
}
}})