Skip to content

feature: currently un-implemented reducers #96

Description

@jamesscottbrown

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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