AreaChartWidget constructor
const
AreaChartWidget({
- Key? key,
- required List<
ChartDataSet> dataSets, - ChartTheme? theme,
- double lineWidth = 3.0,
- bool showPoints = true,
- bool showGrid = true,
- bool showAxis = true,
- bool showLabel = true,
- String? title,
- String? subtitle,
- bool useGlassmorphism = false,
- bool useNeumorphism = false,
- ChartPointCallback? onPointTap,
- bool isLoading = false,
- bool isError = false,
- String? errorMessage,
Creates an area chart widget.
dataSets must not be empty. Each dataset must contain at least one
data point. theme is optional and will be inferred from the Material
theme if not provided.
The lineWidth defaults to 3.0 pixels. Use onPointTap to handle
user interactions with data points.
Implementation
const AreaChartWidget({
super.key,
required this.dataSets,
this.theme,
this.lineWidth = 3.0,
this.showPoints = true,
this.showGrid = true,
this.showAxis = true,
this.showLabel = true,
this.title,
this.subtitle,
this.useGlassmorphism = false,
this.useNeumorphism = false,
this.onPointTap,
this.isLoading = false,
this.isError = false,
this.errorMessage,
});