LineChart constructor
const
LineChart({
- Key? key,
- required List<
LineChartSeries> series, - double spacing = 20,
- String? title,
- TextStyle? titleStyle,
- TextStyle? xAxisLabelStyle,
- TextStyle? yAxisLabelStyle,
- String yAxisLabelFormatter(
- double value
- String xAxisLabelFormatter(
- dynamic label
- void onPointTap()?,
- double yAxisMargin = 30,
- double xAxisMargin = 30,
- bool showDots = true,
- bool showGrid = true,
- String lineTooltipBuilder(
- LineChartSeries serie,
- LineChartData data
- double dotRadius = 4.0,
- double strokeWidth = 2.0,
- required List xAxis,
- double? yMin,
- double? yMax,
Implementation
const LineChart({
super.key,
required this.series,
this.spacing = 20,
this.title,
this.titleStyle,
this.xAxisLabelStyle,
this.yAxisLabelStyle,
this.yAxisLabelFormatter,
this.xAxisLabelFormatter,
this.onPointTap,
this.yAxisMargin = 30,
this.xAxisMargin = 30,
this.showDots = true,
this.showGrid = true,
this.lineTooltipBuilder,
this.dotRadius = 4.0,
this.strokeWidth = 2.0,
required this.xAxis,
this.yMin,
this.yMax,
});