SfCartesianChart constructor
const
SfCartesianChart({
- Key? key,
- Color? backgroundColor,
- bool enableSideBySideSeriesPlacement = true,
- Color borderColor = Colors.transparent,
- double borderWidth = 0.0,
- Color? plotAreaBackgroundColor,
- Color? plotAreaBorderColor,
- double plotAreaBorderWidth = 0.7,
- ImageProvider<
Object> ? plotAreaBackgroundImage, - ChartTooltipCallback? onTooltipRender,
- ChartActualRangeChangedCallback? onActualRangeChanged,
- ChartDataLabelRenderCallback? onDataLabelRender,
- ChartLegendRenderCallback? onLegendItemRender,
- ChartTrackballCallback? onTrackballPositionChanging,
- ChartCrosshairCallback? onCrosshairPositionChanging,
- ChartZoomingCallback? onZooming,
- ChartZoomingCallback? onZoomStart,
- ChartZoomingCallback? onZoomEnd,
- ChartZoomingCallback? onZoomReset,
- ChartAxisLabelTapCallback? onAxisLabelTapped,
- DataLabelTapCallback? onDataLabelTapped,
- ChartLegendTapCallback? onLegendTapped,
- ChartSelectionCallback? onSelectionChanged,
- ChartTouchInteractionCallback? onChartTouchInteractionUp,
- ChartTouchInteractionCallback? onChartTouchInteractionDown,
- ChartTouchInteractionCallback? onChartTouchInteractionMove,
- ChartMarkerRenderCallback? onMarkerRender,
- bool isTransposed = false,
- bool enableAxisAnimation = false,
- List<
CartesianChartAnnotation> ? annotations, - LoadMoreViewBuilderCallback? loadMoreIndicatorBuilder,
- ChartPlotAreaSwipeCallback? onPlotAreaSwipe,
- List<
Color> ? palette, - ChartAxis primaryXAxis = const NumericAxis(),
- ChartAxis primaryYAxis = const NumericAxis(),
- EdgeInsets margin = const EdgeInsets.all(10),
- TooltipBehavior? tooltipBehavior,
- ZoomPanBehavior? zoomPanBehavior,
- Legend legend = const Legend(),
- SelectionType selectionType = SelectionType.point,
- ActivationMode selectionGesture = ActivationMode.singleTap,
- bool enableMultiSelection = false,
- CrosshairBehavior? crosshairBehavior,
- TrackballBehavior? trackballBehavior,
- List<
CartesianSeries> series = const <CartesianSeries>[], - ChartTitle title = const ChartTitle(),
- List<
ChartAxis> axes = const <ChartAxis>[], - List<
TechnicalIndicator> indicators = const <TechnicalIndicator>[],
Creating an argument constructor of SfCartesianChart class.
Implementation
const SfCartesianChart({
Key? key,
this.backgroundColor,
this.enableSideBySideSeriesPlacement = true,
this.borderColor = Colors.transparent,
this.borderWidth = 0.0,
this.plotAreaBackgroundColor,
this.plotAreaBorderColor,
this.plotAreaBorderWidth = 0.7,
this.plotAreaBackgroundImage,
this.onTooltipRender,
this.onActualRangeChanged,
this.onDataLabelRender,
this.onLegendItemRender,
this.onTrackballPositionChanging,
this.onCrosshairPositionChanging,
this.onZooming,
this.onZoomStart,
this.onZoomEnd,
this.onZoomReset,
this.onAxisLabelTapped,
this.onDataLabelTapped,
this.onLegendTapped,
this.onSelectionChanged,
this.onChartTouchInteractionUp,
this.onChartTouchInteractionDown,
this.onChartTouchInteractionMove,
this.onMarkerRender,
this.isTransposed = false,
this.enableAxisAnimation = false,
this.annotations,
this.loadMoreIndicatorBuilder,
this.onPlotAreaSwipe,
this.palette,
this.primaryXAxis = const NumericAxis(),
this.primaryYAxis = const NumericAxis(),
this.margin = const EdgeInsets.all(10),
this.tooltipBehavior,
this.zoomPanBehavior,
this.legend = const Legend(),
this.selectionType = SelectionType.point,
this.selectionGesture = ActivationMode.singleTap,
this.enableMultiSelection = false,
this.crosshairBehavior,
this.trackballBehavior,
this.series = const <CartesianSeries>[],
this.title = const ChartTitle(),
this.axes = const <ChartAxis>[],
this.indicators = const <TechnicalIndicator>[],
}) : super(key: key);