Skip to content

Commit 598c021

Browse files
🚸 fine tune gantt xAxis date time label formats
1 parent 471a901 commit 598c021

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

‎src/vue/summary/components/gantt.vue‎

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,39 @@ export default defineComponent({
146146
navigator: {
147147
enabled: true,
148148
yAxis: { reversed: true, min: 0, max: 1 },
149+
handles: { width: 16 }
149150
},
150151
// rangeSelector: { enabled: true },
151152
scrollbar: { enabled: true, liveRedraw: true },
152-
xAxis: { tickPixelInterval: 100 },
153+
xAxis: {
154+
dateTimeLabelFormats: {
155+
year: '%[Y]',
156+
month: {
157+
list: ['%[yB]', '%[b]'],
158+
main: {},
159+
},
160+
week: {
161+
list: ['%Y | W%W', 'Week%W', 'W%W'],
162+
main: {},
163+
},
164+
day: {
165+
list: ['%[YBe]', '%[be]', '%[a]', '%e'],
166+
main: {},
167+
},
168+
hour: {
169+
list: ['%[YBeH]', '%[beH]', '%[H]'],
170+
main: {}
171+
},
172+
minute: {
173+
list: ['%[YBe] %H:%M', '%[be] %H:%M', '%H:%M'],
174+
main: {},
175+
},
176+
second: {
177+
list: ['%H:%M:%S', '%H:%M'],
178+
main: {},
179+
},
180+
}
181+
},
153182
yAxis: {
154183
visible: window.innerWidth > 500,
155184
// type: 'category',

0 commit comments

Comments
 (0)