Skip to content

feature: Variable fills for areas and lines #94

@jamesscottbrown

Description

@jamesscottbrown

Observable Plot allows variable fills for an area or line, as in this example.

This example would translate to SveltePlot as:

<Plot color={{ type: 'log', legend: true }}>
    <AreaY
        data={aapl}
        x="Date"
        y="Close"
        fill="Volume"
        z="null" />
    <RuleY data={[0]} />
</Plot>

However, this currently renders with a single color:

Image

(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