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

feature:y1 default to0 for Area #97

Closed
Labels
enhancementNew feature or request
@jamesscottbrown

Description

@jamesscottbrown

This example gives an error, becausey1 is not explicitly set for the Area mark:

<Plotheight={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:'count' }        )} /></Plot>

Whereas it works ify1: 0 is added:

<Plotheight={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',y1: 0            },            {y2:'count' }        )} /></Plot>

It also works if I specifyy rather thany1:

<Plotheight={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',            },            {y:'count' }        )} /></Plot>

In Observable Plot, setting justy2 works (as inthis example).

(this is one of the issues surfaced by#72)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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