Bar chart with dates

This is the intended use of the interval transform. For example:

Plot.plot({
  marks: [
    Plot.rectY(dataWithparsedDates, {
      x: "date",
      interval: d3.utcDay,
      y: "volume",
      fill: "magenta"
    })
  ]
})

For more on the interval transform:

1 Like