SparklineChart constructor
SparklineChart({
- required List<
double> values, - int? width,
- int? height,
- UvStyle? style,
- bool showGrid = false,
- UvStyle? gridStyle,
- List<
ChartLegendEntry> ? legendEntries, - int legendColumns = 1,
- int legendRowGap = 0,
- ChartLegendPosition legendPosition = ChartLegendPosition.topRight,
- int legendPadding = 1,
- int? crosshairX,
- int? crosshairY,
- UvStyle? crosshairStyle,
- Key? key,
Creates a SparklineChart with the given data and dimensions.
When width or height is null the chart fills the available
constraint space (responsive mode).
Set crosshairX and crosshairY to draw a crosshair overlay at
that position (e.g. from mouse hover).
Implementation
SparklineChart({
required this.values,
this.width,
this.height,
this.style,
this.showGrid = false,
this.gridStyle,
this.legendEntries,
this.legendColumns = 1,
this.legendRowGap = 0,
this.legendPosition = ChartLegendPosition.topRight,
this.legendPadding = 1,
this.crosshairX,
this.crosshairY,
this.crosshairStyle,
super.key,
});