startOfWeek (xAxis properties)
시간 축에서 주 단위 눈금을 무슨 요일에 둘지 설정합니다. 0은 일요일, 1은 월요일입니다.
Info
| name |
type |
required(default) |
description |
| startOfWeek |
number |
선택(1) |
시간 축에서 주 단위 눈금을 무슨 요일에 둘지 설정합니다. 0은 일요일, 1은 월요일입니다. |
Example
myChart.setOptions({
chart: {
type: "line"
},
xAxis: {
type: "datetime",
tickInterval: 7 * 24 * 3600 * 1000,
startOfWeek: 0
},
series: [{
name: "방문자",
pointStart: Date.UTC(2025, 0, 1),
pointInterval: 24 * 3600 * 1000,
data: [50, 87, 64, 101, 78, 55, 92, 69, 106, 83, 60, 97, 74, 51, 88, 65, 102, 79, 56, 93, 70, 107, 84, 61, 98, 75, 52, 89, 66, 103, 80, 57, 94, 71, 108]
}]
}, {
append: true,
redraw: true
});
제공 버전