GridData constructor
GridData({
- bool? show,
- String? id,
- double? left,
- double? top,
- double? right,
- double? bottom,
- double? width,
- double? height,
- bool? containLabel,
- String? backgroundColor,
- String? borderColor,
- double? borderWidth,
- double horizontalInterval = 0.5,
- String horizontalColor = 'rgba(0, 0, 0, 0.1)',
- double horizontalWidth = 0.5,
- List<
int> horizontalDashArray = const [5, 5], - String verticalColor = 'rgba(0, 0, 0, 0.1)',
- double verticalWidth = 0.5,
- List<
int> verticalDashArray = const [5, 5], - bool showHorizontalLines = true,
- bool showVerticalLines = true,
- String color = 'rgba(0, 0, 0, 0.1)',
- ChartLineStyle? lineStyle,
Implementation
GridData({
this.show,
this.id,
this.left,
this.top,
this.right,
this.bottom,
this.width,
this.height,
this.containLabel,
this.backgroundColor,
this.borderColor,
this.borderWidth,
this.horizontalInterval = 0.5,
this.horizontalColor = 'rgba(0, 0, 0, 0.1)',
this.horizontalWidth = 0.5,
this.horizontalDashArray = const [5, 5],
this.verticalColor = 'rgba(0, 0, 0, 0.1)',
this.verticalWidth = 0.5,
this.verticalDashArray = const [5, 5],
this.showHorizontalLines = true,
this.showVerticalLines = true,
this.color = 'rgba(0, 0, 0, 0.1)',
ChartLineStyle? lineStyle,
}) : lineStyle = lineStyle ?? ChartLineStyle();