마스터 세부 정보 차트 설정에 문제가 있습니다. 처음에는 마스터 및 세부 그래프가 모두 라인 시리즈와 에러 바 시리즈를 그립니다. 그러나 마스터에서만 새 범위를 선택하면 선이 세부 사항 내에서 그립니다. (비록 마스터가 여전히 둘 다 그렸지만)하이 차트 마스터 세부 차트 렌더링되지 않음 두 번째 시리즈
JSFiddle : http://jsfiddle.net/binpower93/za46Y/1/을 추가했습니다.
이selection: function (event) {
var extremesObject = event.xAxis[0],
min = extremesObject.min,
max = extremesObject.max,
detailData = [],
xAxis = this.xAxis[0];
// reverse engineer the last part of the data
jQuery.each(this.series, function (i, series) {
var data = [];
jQuery.each(series.data, function (i, point) {
if (point.x > min && point.x < max) {
data.push({
x: point.x,
y: point.y
});
}
});
detailData.push(data);
});
// move the plot bands to reflect the new detail span
xAxis.removePlotBand('mask-before');
xAxis.addPlotBand({
id: 'mask-before',
from: firstUTC,
to: min,
color: 'rgba(0, 0, 0, 0.2)'
});
xAxis.removePlotBand('mask-after');
xAxis.addPlotBand({
id: 'mask-after',
from: max,
to: lastUTC,
color: 'rgba(0, 0, 0, 0.2)'
});
jQuery.each(detailChart.series, function (i, series) {
detailChart.series[i].setData(detailData[i]);
});
return false;
}
}
},