ChartTheme constructor
const
ChartTheme({
- required Color backgroundColor,
- required Color textColor,
- required Color gridColor,
- required Color axisColor,
- required List<
Color> gradientColors, - double shadowElevation = 4.0,
- double borderRadius = 16.0,
- bool showGrid = true,
- bool showAxis = true,
- bool showLegend = true,
- bool showTooltip = true,
- int xAxisLabelRotation = 0,
- int yAxisLabelRotation = 0,
- TextStyle? axisLabelStyle,
- TextStyle? tooltipStyle,
- EdgeInsets padding = const EdgeInsets.fromLTRB(40, 20, 20, 40),
Implementation
const ChartTheme({
required this.backgroundColor,
required this.textColor,
required this.gridColor,
required this.axisColor,
required this.gradientColors,
this.shadowElevation = 4.0,
this.borderRadius = 16.0,
this.showGrid = true,
this.showAxis = true,
this.showLegend = true,
this.showTooltip = true,
this.xAxisLabelRotation = 0,
this.yAxisLabelRotation = 0,
this.axisLabelStyle,
this.tooltipStyle,
this.padding = const EdgeInsets.fromLTRB(40, 20, 20, 40),
});