Skip to content

Expose chart download button in the UI #34

@shirshanka

Description

@shirshanka

Vega-Lite already has export support enabled (actions: { export: true } is set in ChartMessage.tsx), but it's buried in the Vega toolbar which most users never find — you have to know to look for the three-dot menu.

A simple 'Download PNG' button in the chart message header would make this discoverable. The Vega view instance is already accessible in the component, so it's mostly a matter of calling view.toImageURL('png') and triggering a download.

Good first issue if you're comfortable with React and want to dig into how chart rendering works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions