当我只想要两条线时,为什么dygraph会生成多行?

时间:2016-09-10 05:19:42

标签: javascript google-visualization visualization data-visualization dygraphs

我只想绘制两条线,但它会生成多条可以重叠的线。并且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

                                }
                                }})

0 个答案:

没有答案