0
저는 다이 그래프 그래프가 있으며 세리에가 참조하는 축을 식별하는 방법이 필요합니다. 은 dygraphs로 보조 y 축을 강조 표시합니다.
나는 다음과 같은 하이라이트 방법을 시도했지만 명확하게 y 축을 표시하는 어떤 제안은 내가 가져 가면, 나는이 시리즈에 하이라이트 기능을 사용 오신 것을 환영합니다, 그러나 나는 또한 Y을 강조 할 것 -중심선. 나는 하이라이트 콜백을 시도,하지만 난
highlightCallback: function(event, x, points, row, seriesName) {
var hiProps = {
axisLineColor: 'cyan',
axisLineWidth: 10
};
var unhiProps = {
axisLineColor: 'white',
axisLineWidth: 0.3
};
var opts={axes: {
y: unhiProps,
y2: unhiProps
}};
var p=that.getParam(seriesName);
if (p.y2) {
opts.axes.y2 = hiProps;
} else {
opts.axes.y = hiProps;
}
that.graph.updateOptions(opts);
},
내 문제가 updateOptions
를 호출하여, 그래프 다시 계산과 전설이 다시 초기화된다는 것이다 다음 문제에 입력합니다. 나는 updateOptions
로 전화 할 때 값 표시가 느슨하게된다.