Why doesn’t x:{type:"time"}
make the x
axis get labelled in local time?
Context: I think it should be local based on the Plot documentation here, which says “If the scale type is time, the ticks will be in local time — as with the dates below — rather than UTC.”
So in the example page, since I’m in CST, I’d expect to see noon rather than 5p.
And using vega-lite with the same data, I do.
Can you share a screenshot of what you see, and what is going wrong? The notebook you shared looks to be working correctly for me. I’m in the Pacific time zone, and I see the chart range from 6:45am to 9am, which seems to be correct and matches Vega.
Well… I can’t! I reloaded the page and it’s working?!
I can’t explain it, but FWIW it was just reading 5PM rather than noon for the rightmost datapoint.
It’s also now working on the workbook where I was initially encountering this that inspired me to ask and make a simple example.
Did you travel recently by any chance?
Firefox (at least) sometimes gets confused about what timezone it’s supposed to be in, and just defaults to UTC. Causes some fascinating bugs in time tracking apps.