SvgChartExporter class
Generates a minimal SVG string for simple chart types.
Intended for:
- Server-side chart thumbnails
- PDF embedding (via flutter_svg or webview)
- Email reports
Only covers bar, line, and pie. Complex charts (sankey, treemap) require a full render-to-canvas → PNG pipeline instead.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
barChart(
{required List< double> values, required List<String> labels, double width = 400, double height = 250, List<String> ? colors, String title = ''}) → String - Generate a bar chart SVG.
-
lineChart(
{required List< double> values, double width = 400, double height = 250, String color = '#2196F3', bool filled = false, String title = ''}) → String - Generate a line chart SVG.