LineChart constructor

const LineChart({
  1. Key? key,
  2. required LineChartData data,
  3. int visibleLabels = 3,
  4. int? initialIndex,
  5. SelectedPointerStyle? selectedPointerStyle,
  6. GridLinesStyle? gridLinesStyle,
  7. LineLabelStyle? lineLabelStyle,
  8. DataMarkerStyle? dataMarkerStyle,
  9. ZeroLineStyle zeroLineStyle = const ZeroLineStyle(),
  10. XAxisStyle xAxisStyle = const XAxisStyle(),
  11. XAxisLabelStyle xAxisLabelStyle = const XAxisLabelStyle(),
  12. YAxisStyle yAxisStyle = const YAxisStyle(),
  13. LabelTransformer labelTransformer = defaultLabelTransformer,
  14. MissingDataBehavior missingDataBehavior = MissingDataBehavior.zero,
  15. YAxisAnimationConfig yAxisAnimationConfig = YAxisAnimationConfig.smooth,
  16. ScrollPhysicsConfig scrollPhysicsConfig = ScrollPhysicsConfig.smooth,
  17. OnVisibleRangeChanged? onVisibleRangeChanged,
  18. OnSelectedChanged? onSelectedChanged,
  19. bool smooth = false,
  20. bool selectOnTap = false,
})

Implementation

const LineChart({
  super.key,
  required this.data,
  this.visibleLabels = 3,
  this.initialIndex,
  this.selectedPointerStyle,
  this.gridLinesStyle,
  this.lineLabelStyle,
  this.dataMarkerStyle,
  this.zeroLineStyle = const ZeroLineStyle(),
  this.xAxisStyle = const XAxisStyle(),
  this.xAxisLabelStyle = const XAxisLabelStyle(),
  this.yAxisStyle = const YAxisStyle(),
  this.labelTransformer = defaultLabelTransformer,
  this.missingDataBehavior = MissingDataBehavior.zero,
  this.yAxisAnimationConfig = YAxisAnimationConfig.smooth,
  this.scrollPhysicsConfig = ScrollPhysicsConfig.smooth,
  this.onVisibleRangeChanged,
  this.onSelectedChanged,
  this.smooth = false,
  this.selectOnTap = false,
});