Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork21
Open
Description
The ObservablePlotOverlapping histogram example is:
Plot.plot({round:true,color:{legend:true},marks:[Plot.rectY(olympians,Plot.binX({y1:"count"},{x:"weight",fill:"sex",mixBlendMode:"multiply"})),Plot.ruleY([0])]})
The rendered chart is unaffected by changing{y1: "count"} to{y2: "count"} (but changing it to{y: "count"} causesrectY to apply an implicitstackY transform).
The SveltePlot equivalent is:
<Ploty={{grid:true }}color={{legend:true }}> <RectY {...binX( {data:olympians,x:'weight',fill:'sex' }, {y:'count' } )} /> <RuleYdata={[0]} /></Plot>
which renders like:
Changing toy1: 'count' makes it match the apeparance of the ObservablePlot plot:
I wanted to flag this discrepancy, but my first thought is that what SveltePlot does might be more reasonable.
(this is one of the issues surfaced by#72)
Metadata
Metadata
Assignees
Labels
No labels

