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.
Vega-Lite already has export support enabled (
actions: { export: true }is set inChartMessage.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.