SimpleDotPlotChart constructor
const
SimpleDotPlotChart({
- Key? key,
- required List<
String> categories, - required List<
SimpleDotPlotSeries> series, - SimpleBarChartOrientation orientation = SimpleBarChartOrientation.horizontal,
- SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- double? minValue,
- double? maxValue,
- double height = 260,
- EdgeInsets? padding,
- List<
Color> ? palette, - Color? dotColor,
- Color? guideLineColor,
- Color? gridColor,
- Color? axisColor,
- Color? activeColor,
- TextStyle? labelStyle,
- TextStyle? valueStyle,
- bool showGrid = true,
- bool showGuideLines = true,
- bool showValues = true,
- bool showLegend = true,
- bool showTooltip = true,
- bool showActiveDot = true,
- List<
SimpleChartReferenceLine> referenceLines = const [], - List<
SimpleChartReferenceBand> referenceBands = const [], - int gridLineCount = 4,
- double? dotRadius,
- double? guideLineWidth,
- SimpleDotPlotValueFormatter? valueFormatter,
- SimpleDotPlotTapCallback? onPointTap,
- SimpleDotPlotTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 650),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleDotPlotChart({
super.key,
required this.categories,
required this.series,
this.orientation = SimpleBarChartOrientation.horizontal,
this.style = SimpleBarChartStyle.elegant,
this.minValue,
this.maxValue,
this.height = 260,
this.padding,
this.palette,
this.dotColor,
this.guideLineColor,
this.gridColor,
this.axisColor,
this.activeColor,
this.labelStyle,
this.valueStyle,
this.showGrid = true,
this.showGuideLines = true,
this.showValues = true,
this.showLegend = true,
this.showTooltip = true,
this.showActiveDot = true,
this.referenceLines = const [],
this.referenceBands = const [],
this.gridLineCount = 4,
this.dotRadius,
this.guideLineWidth,
this.valueFormatter,
this.onPointTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 650),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(gridLineCount >= 2),
assert(dotRadius == null || dotRadius >= 0),
assert(guideLineWidth == null || guideLineWidth > 0);