Slackbot
04/11/2023, 10:56 PMPeter Murphy
04/11/2023, 10:57 PMPeter Murphy
04/11/2023, 11:13 PMordersByDateStateType
is a shorter list with less data per row, but I wouldn't think that would affect how facet
worksMichael Cooper
04/11/2023, 11:15 PMfy
channel to the mark
{
x: (d) => new Date(d.orderDate),
y: "orders",
stroke: "pizzaType",
fy: "state"
}
Peter Murphy
04/11/2023, 11:17 PMMichael Cooper
04/11/2023, 11:17 PMMichael Cooper
04/11/2023, 11:18 PMfacet
an object (which is correct). That object can have channels, like x or y, and it also needs a data
key. Like this:
facet: {
data: ordersByDateStateType,
y: "state"
},
Peter Murphy
04/11/2023, 11:18 PMdata
as prop name in facet yeahMichael Cooper
04/11/2023, 11:18 PMfy
is still a nice trick