alignThresholds (chart properties)
y축이 여러 개일 때 각 축의 기준값(0) 위치를 같은 높이로 맞춥니다.
음수와 양수가 섞인 데이터를 서로 다른 y축으로 표시할 때, 0선이 하나로 맞춰져 비교하기 쉬워집니다.
Info
| name |
type |
required(default) |
description |
| alignThresholds |
boolean |
선택(false) |
y축이 여러 개일 때 각 축의 기준값(0) 위치를 같은 높이로 맞춥니다. |
Example
myChart.setOptions({
chart: {
type: "column",
alignThresholds: true
},
yAxis: [{
title: { text: "증감액" }
}, {
title: { text: "증감률" },
opposite: true
}],
series: [{
name: "증감액",
data: [-50, 40, 60, -10]
}, {
name: "증감률",
data: [5, -2, 8, 12],
yAxis: 1
}]
}, {
append: true,
redraw: true
});
제공 버전