-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Labels
bugSomething isn’t workingSomething isn’t working
Description
The maybeDenseIntervalX transform used by areaY’s interval option uses the binX transform, but only outputs the y channel:
Line 70 in 194e1f4
: bin({[k]: options?.reduce === undefined ? reduceFirst : options.reduce, filter: null}, options); |
This means it doesn’t work if the areaY mark is using the y1 and y2 options:
Plot.areaY(aapl.slice(0, 81), {
x: "Date",
y1: "Low",
y2: "High",
interval: "day",
curve: "step"
}).plot()
It should instead be equivalent to this:
Plot.areaY(
aapl.slice(0, 81),
Plot.binX(
{ y1: "first", y2: "first", filter: null },
{ x: "Date", y1: "Low", y2: "High", interval: "day", curve: "step" }
)
).plot()
So somehow maybeDenseIntervalX will need to know to output y1 and y2 instead.
Metadata
Metadata
Assignees
Labels
bugSomething isn’t workingSomething isn’t working