Open
Description
reduce.ts includes:
// TODO: proportion
// TODO: proportion-facet
// TODO: min-index
// TODO: max-index
This means that this ObservablePlot example can't be directly used. It translates to:
<Plot
height={300}
marginLeft={60}
y={{ axis: null }}
x={{ nice: true }}
fy={{ domain: ['FEMALE', 'MALE'] }}
color={{ legend: true }}
facet={{ data: penguins, y: 'sex' }}>
<AreaY
{...binX(
{
data: penguins,
x: 'culmen_length_mm',
fill: 'species',
fillOpacity: '.',
thresholds: '',
curve: 'natural'
},
{ y2: 'proportion' }
)} />
<RuleY data={[0]} />
<LineY
{...binX(
{
data: penguins,
x: 'culmen_length_mm',
stroke: 'species',
thresholds: '',
curve: 'natural'
},
{ y: 'proportion' }
)} />
</Plot>
(This is one of the issues surfaced by #72)