Open
Description
Say you have an activity
table that has active users by date
and login
. You might want to draw stacked dots, and then draw a line between active users. But if you use the interval option, you might be surprised that the line is shifted to the right to the middle of the day (noon) rather than the start of the day (midnight).
It’s the difference between this
Plot.lineY(activity, Plot.stackY({x: "date", interval: "day", z: "login"}))
and this
Plot.lineY(activity, Plot.binX({x: "x1", y: "first", filter: null}, Plot.stackY({x: "date", interval: "day", z: "login"})))