XYChart constructor
const
XYChart({
- Key? key,
- required List<
Widget> children, - LinearScale? xScale,
- LinearScale? yScale,
- ChartMargin margin = const ChartMargin(),
- bool showXAxis = true,
- bool showYAxis = true,
- bool showGrid = true,
- String? xAxisLabel,
- String? yAxisLabel,
- Color? backgroundColor,
- Color gridColor = const Color(0xFFE0E0E0),
- Color axisColor = const Color(0xFF757575),
- void onPointTap(
- XYDataPoint point
Implementation
const XYChart({
super.key,
required this.children,
this.xScale,
this.yScale,
this.margin = const ChartMargin(),
this.showXAxis = true,
this.showYAxis = true,
this.showGrid = true,
this.xAxisLabel,
this.yAxisLabel,
this.backgroundColor,
this.gridColor = const Color(0xFFE0E0E0),
this.axisColor = const Color(0xFF757575),
this.onPointTap,
});