SplineChartWidget constructor
const
SplineChartWidget({
- Key? key,
- required List<
ChartDataSet> dataSets, - double lineWidth = 3.0,
- bool showArea = true,
- bool showPoints = true,
- bool showGrid = true,
- bool showAxis = true,
- bool showLabel = true,
- String? title,
- String? subtitle,
- Widget? header,
- ChartPointCallback? onPointTap,
- ChartPointHoverCallback? onPointHover,
- bool isLoading = false,
- bool isError = false,
- double? height,
- EdgeInsets? padding,
- EdgeInsets? margin,
- ChartsConfig? config,
- int? xAxisLabelRotation,
- int? yAxisLabelRotation,
Implementation
const SplineChartWidget({
super.key,
required this.dataSets,
this.lineWidth = 3.0,
this.showArea = true,
this.showPoints = true,
this.showGrid = true,
this.showAxis = true,
this.showLabel = true,
this.title,
this.subtitle,
this.header,
this.footer,
this.onPointTap,
this.onPointHover,
this.isLoading = false,
this.isError = false,
this.height,
this.padding,
this.margin,
this.config,
this.xAxisLabelRotation,
this.yAxisLabelRotation,
}) : assert(lineWidth > 0, 'Line width must be positive');