SfCartesianChart constructor

SfCartesianChart({Key key, Color backgroundColor: Colors.transparent, bool enableSideBySideSeriesPlacement: true, Color borderColor: Colors.transparent, double borderWidth: 0, Color plotAreaBackgroundColor, Color plotAreaBorderColor: const Color.fromRGBO(219, 219, 219, 1), double plotAreaBorderWidth: 0.7, String plotAreaBackgroundImageUrl, ChartTooltipCallback onTooltipRender, ChartActualRangeChangedCallback onActualRangeChanged, ChartAxisLabelRenderCallback onAxisLabelRender, ChartDatalabelRenderCallback onDataLabelRender, ChartLegendRenderCallback onLegendItemRender, ChartTrackballCallback onTrackballPositionChanging, ChartCrosshairCallback onCrosshairPositionChanging, ChartZoomingCallback onZooming, ChartZoomingCallback onZoomStart, ChartZoomingCallback onZoomEnd, ChartZoomingCallback onZoomReset, ChartPointTapCallback onPointTapped, ChartAxisLabelTapCallback onAxisLabelTapped, ChartLegendTapCallback onLegendTapped, ChartSelectionCallback onSelectionChanged, bool isTransposed: false, List<CartesianChartAnnotation> annotations, List<Color> palette: const [Color.fromRGBO(53, 92, 125, 1), Color.fromRGBO(192, 108, 132, 1), Color.fromRGBO(246, 114, 128, 1), Color.fromRGBO(248, 177, 149, 1), Color.fromRGBO(116, 180, 155, 1), Color.fromRGBO(0, 168, 181, 1), Color.fromRGBO(73, 76, 162, 1), Color.fromRGBO(255, 205, 96, 1), Color.fromRGBO(255, 240, 219, 1), Color.fromRGBO(238, 238, 238, 1)], ChartAxis primaryXAxis, ChartAxis primaryYAxis, EdgeInsets margin, TooltipBehavior tooltipBehavior, ZoomPanBehavior zoomPanBehavior, Legend legend, SelectionType selectionType, ActivationMode selectionGesture, bool enableMultiSelection, CrosshairBehavior crosshairBehavior, TrackballBehavior trackballBehavior, dynamic series, List<IndexesModel> initialSelectedDataIndexes, ChartTitle title, List<ChartAxis> axes })

Implementation

SfCartesianChart(
    {Key key,
    this.backgroundColor = Colors.transparent,
    this.enableSideBySideSeriesPlacement = true,
    this.borderColor = Colors.transparent,
    this.borderWidth = 0,
    this.plotAreaBackgroundColor,
    this.plotAreaBorderColor = const Color.fromRGBO(219, 219, 219, 1),
    this.plotAreaBorderWidth = 0.7,
    this.plotAreaBackgroundImageUrl,
    this.onTooltipRender,
    this.onActualRangeChanged,
    this.onAxisLabelRender,
    this.onDataLabelRender,
    this.onLegendItemRender,
    this.onTrackballPositionChanging,
    this.onCrosshairPositionChanging,
    this.onZooming,
    this.onZoomStart,
    this.onZoomEnd,
    this.onZoomReset,
    this.onPointTapped,
    this.onAxisLabelTapped,
    this.onLegendTapped,
    this.onSelectionChanged,
    this.isTransposed = false,
    this.annotations,
    this.palette = const <Color>[
      Color.fromRGBO(53, 92, 125, 1),
      Color.fromRGBO(192, 108, 132, 1),
      Color.fromRGBO(246, 114, 128, 1),
      Color.fromRGBO(248, 177, 149, 1),
      Color.fromRGBO(116, 180, 155, 1),
      Color.fromRGBO(0, 168, 181, 1),
      Color.fromRGBO(73, 76, 162, 1),
      Color.fromRGBO(255, 205, 96, 1),
      Color.fromRGBO(255, 240, 219, 1),
      Color.fromRGBO(238, 238, 238, 1)
    ],
    ChartAxis primaryXAxis,
    ChartAxis primaryYAxis,
    EdgeInsets margin,
    TooltipBehavior tooltipBehavior,
    ZoomPanBehavior zoomPanBehavior,
    Legend legend,
    SelectionType selectionType,
    ActivationMode selectionGesture,
    bool enableMultiSelection,
    CrosshairBehavior crosshairBehavior,
    TrackballBehavior trackballBehavior,
    dynamic series,
    List<IndexesModel> initialSelectedDataIndexes,
    ChartTitle title,
    List<ChartAxis> axes})
    : primaryXAxis = primaryXAxis ?? NumericAxis(),
      primaryYAxis = primaryYAxis ?? NumericAxis(),
      title = title ?? ChartTitle(),
      axes = axes ?? <ChartAxis>[],
      series = series ?? <ChartSeries<dynamic, dynamic>>[],
      initialSelectedDataIndexes =
          initialSelectedDataIndexes ?? <IndexesModel>[],
      margin = margin ?? const EdgeInsets.all(10),
      zoomPanBehavior = zoomPanBehavior ?? ZoomPanBehavior(),
      tooltipBehavior = tooltipBehavior ?? TooltipBehavior(),
      crosshairBehavior = crosshairBehavior ?? CrosshairBehavior(),
      trackballBehavior = trackballBehavior ?? TrackballBehavior(),
      legend = legend ?? Legend(),
      selectionType = selectionType ?? SelectionType.point,
      selectionGesture = selectionGesture ?? ActivationMode.singleTap,
      enableMultiSelection = enableMultiSelection ?? false,
      super(key: key) {
  _chartAxis = _ChartAxis();
  _chartSeries = _ChartSeries();
  _chartLegend = _ChartLegend();
  _chartTheme = _ChartTheme();
}