ChartPainter constructor
ChartPainter(
- double _progress,
- LineChart _chart,
- bool _horizontalDragActive,
- double _horizontalDragPosition,
- TextStyle? style, {
- TapText? tapText,
- required Color gridColor,
- required Color toolTipColor,
- List<
Legend> ? legends = const [], - bool? showMarkerLines = false,
- List<
DateTime> ? verticalMarker = const [], - Color? verticalMarkerColor,
- List<
Icon> ? verticalMarkerIcon = const [], - Color? iconBackgroundColor,
- bool? fillMarkerLines = false,
- double? innerGridStrokeWidth = 0.0,
- List<
MaxMin> ? filledMarkerLinesValues = const [], - bool? legendsRightLandscapeMode = false,
- bool? useLineColorsInTooltip = false,
- bool? showMinutesInTooltip = true,
Implementation
ChartPainter(
this._progress,
this._chart,
this._horizontalDragActive,
this._horizontalDragPosition,
this.style, {
this.tapText,
required Color gridColor,
required Color toolTipColor,
this.legends = const [],
this.showMarkerLines = false,
this.verticalMarker = const [],
this.verticalMarkerColor,
this.verticalMarkerIcon = const [],
this.iconBackgroundColor,
this.fillMarkerLines = false,
this.innerGridStrokeWidth = 0.0,
this.filledMarkerLinesValues = const [],
this.legendsRightLandscapeMode = false,
this.useLineColorsInTooltip = false,
this.showMinutesInTooltip = true,
}) {
tapText = tapText ?? _defaultTapText;
_tooltipPainter.color = toolTipColor;
_gridPainter.color = gridColor;
_linePainter.color = gridColor;
}