tan tan
05/25/2023, 9:46 PMorder = ["FL","BY","CA","TX","IL","PA"]
, so it's neither alphabet order nor x,y value based. For no grouped bar chart, I can do it via x: { domain: order }
, but for grouped bar chart, that one was used inside for each group.Michael Cooper
05/25/2023, 9:48 PMx
, but fx
. Try fx: { domain: order }
. That's "facet x"tan tan
05/25/2023, 9:50 PMMichael Cooper
05/25/2023, 9:51 PMtan tan
05/25/2023, 9:51 PMMichael Cooper
05/25/2023, 9:52 PMfx
works for me: https://observablehq.com/d/dd878dcd8ebbc322tan tan
05/25/2023, 9:53 PMfx
, I think the variable name confuses meMichael Cooper
05/25/2023, 9:54 PMfx
is the channel name for the horizontal facet direction. You'd use that if you want to affect the facets of the chart, and you'd use x
when you want to affect the horizontal channel within one chartx
channel is the age groups, and it is repeated several times, once for each facet. The fx
channel is the State abbreviation (TX, CA, etc), and it only happens oncetan tan
05/25/2023, 9:58 PMMichael Cooper
05/25/2023, 9:59 PMtan tan
05/25/2023, 10:02 PMMichael Cooper
05/25/2023, 10:03 PMMihael Ankerst
05/25/2023, 10:03 PMMichael Cooper
05/25/2023, 10:04 PMPlot.group
, which is a bit confusingtan tan
05/25/2023, 10:05 PMPlot.group
is used for grouping the rawdata before they are used for rendering right?Michael Cooper
05/25/2023, 10:06 PMtan tan
05/25/2023, 10:06 PMMichael Cooper
05/25/2023, 10:07 PMFabian Iwand
05/25/2023, 10:08 PMMichael Cooper
05/25/2023, 10:11 PMtan tan
05/25/2023, 10:14 PMgroup
can be confusing for developer like me cuz there are some common terms used inside the code (mathematically) and outside of the code (daily life) that hold completely different meanings. But maybe it makes sense for general data science people. 😂 idk, just a user feedback I guess