ChartTheme constructor
const
ChartTheme({
- required Color backgroundColor,
- required Color gridColor,
- required Color axisColor,
- required TextStyle axisTextStyle,
- required Color tooltipBackground,
- required TextStyle tooltipTextStyle,
- required Color crosshairColor,
- required Color selectionColor,
- required List<
Color> seriesColors, - required List<
BoxShadow> shadow, - TextStyle? titleTextStyle,
- TextStyle? subtitleTextStyle,
- TextStyle? legendTextStyle,
- Color borderColor = const Color(0x33FFFFFF),
- double cardBorderRadius = 12,
- Color sliceBorderColor = const Color(0xFFFFFFFF),
- double sliceBorderWidth = 2,
- bool ringMarkers = false,
- Color markerCenterColor = Colors.white,
- double gridStrokeWidth = 1.0,
- double axisStrokeWidth = 1.0,
- EdgeInsets padding = const EdgeInsets.all(16),
- Gradient? backgroundGradient,
Implementation
const ChartTheme({
required this.backgroundColor,
required this.gridColor,
required this.axisColor,
required this.axisTextStyle,
required this.tooltipBackground,
required this.tooltipTextStyle,
required this.crosshairColor,
required this.selectionColor,
required this.seriesColors,
required this.shadow,
this.titleTextStyle,
this.subtitleTextStyle,
this.legendTextStyle,
this.borderColor = const Color(0x33FFFFFF),
this.cardBorderRadius = 12,
this.sliceBorderColor = const Color(0xFFFFFFFF),
this.sliceBorderWidth = 2,
this.ringMarkers = false,
this.markerCenterColor = Colors.white,
this.gridStrokeWidth = 1.0,
this.axisStrokeWidth = 1.0,
this.padding = const EdgeInsets.all(16),
this.backgroundGradient,
});