This message was deleted.
# help
s
This message was deleted.
a
I think I figured it out by playing around…
Copy code
y: {
    grid: true,
    tickFormat: (ms) => ms * 0.00000027778,
    domain: Array.from({ length: 11 }).map((d, i) => (i + 8) * 3600000)
  },
f
I'd use y{type:"utc"}
Copy code
Plot.plot({
  height: 400,
  marginLeft: 120,
  x: { interval: "day" },
  y: { type: "utc", reverse: true, domain: [27000000, 70000000], grid: true },
  marks: [
    Plot.barY(calendarItems, {
      y1: (d) => day(d.start).diff(day(day(d.start).hour(0))),
      y2: (d) => day(d.end).diff(day(day(d.end).hour(0))),
      x: (d) => day(d.start)
    })
  ]
})
a
Nice! I’ll need to tweak this quite a bit to work in my prototype, but good directions!