Skip to content

feat(results): export Quick Charts as SVG - #1129

Merged
ZhuchkaTriplesix merged 2 commits into
devfrom
issue/1061-chart-svg-export
Oct 8, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
devfrom
issue/1061-chart-svg-export

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Last open criterion of #1061: besides PNG, the chart can be saved as SVG. ChartSvg.build renders bar, line and pie as a standalone SVG from the same points and the workbench / semantic-palette colors, so it follows the current theme; the view gets an Export SVG button (onSaveSvg replaces the file dialog in tests).

The SVG is drawn by our own code, not by fl_chart (which cannot export it), so it is a clean version of the chart, not a pixel copy: axes with 5 ticks, labels every n-th point, hover titles on bars, dots and slices, a legend for pies.

Tests: chart_svg_test.dart (elements per type, escaping, negatives, empty and flat data) and the button in quick_chart_view_test.dart.

Written without running locally; CI is the first run.

Closes #1061

@github-actions github-actions Bot added enhancement New feature or request frontend Theme parser epic label: frontend ui User interface components and widgets data-grid Interactive data grid, cell editor, filtering, groupings P3 Low priority / Polish & Enhancements labels Oct 8, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit ec7c646 into dev Oct 8, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data-grid Interactive data grid, cell editor, filtering, groupings enhancement New feature or request frontend Theme parser epic label: frontend P3 Low priority / Polish & Enhancements ui User interface components and widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant