Commit 86a71c8
authored
fix(sunburst-clock): respect startOfDay offset when rendering the clock (#766)
* fix(sunburst-clock): respect startOfDay offset when rendering the clock
The sunburst clock was ignoring the user's "Start of day" setting and
always using calendar midnight (00:00) as the start of the visualization
window. This meant the queried time range (e.g. 04:00-04:00 next day)
didn't align with the clock's visual range (00:00-23:59), causing events
between midnight and the startOfDay offset to appear missing.
Pass the starttime (already offset-aware) from SunburstClock.vue into
sunburst-clock.ts so both the data query and the visualization use the
same 24h window. Also adjust the clock tick labels to be placed at
6-hour intervals relative to the actual start-of-day hour rather than
hard-coded at 0/6/12/18.
Fixes #358
* fix(sunburst-clock): use standard clock ticks with special start-of-day marker
Keep 6-hour ticks at standard positions (00:00, 06:00, 12:00, 18:00) for
analog-clock familiarity. Add a special ☀ marker for the start-of-day
boundary when it differs from midnight (e.g. 04:00 ☀ for the default setting).1 parent 934daca commit 86a71c8
2 files changed
Lines changed: 27 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
| 222 | + | |
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
236 | 240 | | |
237 | 241 | | |
238 | 242 | | |
| |||
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
265 | 283 | | |
266 | 284 | | |
267 | 285 | | |
| |||
0 commit comments