XYChart constructor

const XYChart({
  1. Key? key,
  2. required List<Widget> children,
  3. LinearScale? xScale,
  4. LinearScale? yScale,
  5. ChartMargin margin = const ChartMargin(),
  6. bool showXAxis = true,
  7. bool showYAxis = true,
  8. bool showGrid = true,
  9. String? xAxisLabel,
  10. String? yAxisLabel,
  11. Color? backgroundColor,
  12. Color gridColor = const Color(0xFFE0E0E0),
  13. Color axisColor = const Color(0xFF757575),
  14. void onPointTap(
    1. 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,
});