Skip to content

"container" sizing does not work #1053

@sarah37

Description

@sarah37

It should be possible to set

"height": "container",
"width": "container"

in the spec and have the chart adapt to the surrounding container. This does not seem to work with <VegaLite /> (it works when using svelte-embed directly, but that's inconvenient in other ways, I haven't checked <Vega />).

Here's a Svelte Playground with a simple example: https://svelte.dev/playground/d720cdd6a76741b6848267361acbc562?version=latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions