SimpleContourChart constructor
const
SimpleContourChart({
- Key? key,
- required List<
SimpleContourPoint> points, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minX,
- double? maxX,
- double? minY,
- double? maxY,
- double? minValue,
- double? maxValue,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- String? xAxisLabel,
- String? yAxisLabel,
- Color? lowColor,
- Color? highColor,
- Color? lineColor,
- Color? pointColor,
- Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- List<
Color> ? palette, - TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showFilledBands = true,
- bool showContourLines = true,
- bool showSamplePoints = true,
- bool showLabels = true,
- bool showValues = false,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveSelection = true,
- bool showAxisLabels = true,
- int gridLineCount = 4,
- int gridResolution = 26,
- int levelCount = 6,
- double contourLineWidth = 1.2,
- double pointRadius = 4,
- double interpolationPower = 2,
- List<
double> levels = const [], - SimpleContourValueFormatter? xValueFormatter,
- SimpleContourValueFormatter? yValueFormatter,
- SimpleContourValueFormatter? valueFormatter,
- SimpleContourTapCallback? onSelectionTap,
- SimpleContourTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleContourChart({
super.key,
required this.points,
this.style = SimpleBarChartStyle.elegant,
this.minX,
this.maxX,
this.minY,
this.maxY,
this.minValue,
this.maxValue,
this.height = 260,
this.padding = _defaultPadding,
this.xAxisLabel,
this.yAxisLabel,
this.lowColor,
this.highColor,
this.lineColor,
this.pointColor,
this.gridColor,
this.axisColor,
this.activeColor,
this.palette,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showFilledBands = true,
this.showContourLines = true,
this.showSamplePoints = true,
this.showLabels = true,
this.showValues = false,
this.showLegend = true,
this.showTooltip = true,
this.showActiveSelection = true,
this.showAxisLabels = true,
this.gridLineCount = 4,
this.gridResolution = 26,
this.levelCount = 6,
this.contourLineWidth = 1.2,
this.pointRadius = 4,
this.interpolationPower = 2,
this.levels = const [],
this.xValueFormatter,
this.yValueFormatter,
this.valueFormatter,
this.onSelectionTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 700),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(gridLineCount >= 2),
assert(gridResolution >= 8),
assert(levelCount >= 2),
assert(contourLineWidth > 0),
assert(pointRadius >= 0),
assert(interpolationPower > 0);