연결된 데이터가 없는 축의 축선과 제목을 표시할지 설정합니다.
시리즈를 조건에 따라 넣거나 뺄 때, 빈 축이 남아 있지 않게 하려면false로 설정합니다.
| name | type | required(default) | description |
|---|---|---|---|
| showEmpty | boolean |
선택(true) | 연결된 데이터가 없는 축의 축선과 제목을 표시할지 설정합니다. |
myChart.setOptions({
chart: {
type: "line"
},
yAxis: [{
title: { text: "매출" }
}, {
title: { text: "이익률" },
opposite: true,
lineWidth: 1,
showEmpty: false // 데이터가 없으면 축선과 제목을 숨김
}],
series: [{
name: "매출",
data: [60, 40, 20, 80]
}]
}, {
append: true,
redraw: true
});
| version | desc |
|---|---|
| 7.3.0.0 |