pointIntervalUnit (plotOptions properties)
시간 축에서 포인트 간격을 월 또는 연 단위로 설정합니다.
월마다 일 수가 달라 밀리초로 지정할 수 없는 간격에 사용합니다. pointInterval은 단위의 배수가 됩니다 (예: pointInterval: 3, pointIntervalUnit: "month"는 3개월 간격).
Info
| name |
type |
required(default) |
description |
| pointIntervalUnit |
string |
선택(undefined) |
시간 축에서 포인트 간격을 월 또는 연 단위로 설정합니다. |
Enum
| value |
description |
| day |
일 단위 |
| month |
월 단위 |
| year |
연 단위 |
Example
myChart.setOptions({
chart: {
type: "column"
},
xAxis: {
type: "datetime"
},
plotOptions: {
series: {
pointStart: Date.UTC(2025, 0, 1),
pointIntervalUnit: "month"
}
},
series: [{
name: "서울",
data: [60, 40, 20, 80]
}]
}, {
append: true,
redraw: true
});
제공 버전