Plot.plot({
width: 1000,
height: 2000,
marginLeft: 55,
x: { axis: "top", tickFormat: "%" },
y: { axis: "left", label: null, tickFormat: "%b %Y", interval: d3.utcMonth},
color: {
scheme: "Spectral",
legend: "ramp",
width: 1000,
label: "Well:"
},
marks: [
Plot.barX(tidy, {
x: "flows",
y: "date",
channels: { month: "month" },
fill: "well",
offset: "normalize",
tip: true
}),
Plot.ruleX([0])
]
})