Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Difference in rendering overlapping histograms between Observable Plot and SveltePlot #103

Open
@jamesscottbrown

Description

@jamesscottbrown

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:

Image

Changing toy1: 'count' makes it match the apeparance of the ObservablePlot plot:

Image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp