ScatterSeries<T, D> constructor

ScatterSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. required List<T> dataSource,
  4. required ChartValueMapper<T, D> xValueMapper,
  5. required ChartValueMapper<T, num> yValueMapper,
  6. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  7. ChartValueMapper<T, Color>? pointColorMapper,
  8. ChartValueMapper<T, String>? dataLabelMapper,
  9. String? xAxisName,
  10. String? yAxisName,
  11. String? name,
  12. Color? color,
  13. MarkerSettings? markerSettings,
  14. EmptyPointSettings? emptyPointSettings,
  15. bool? isVisible,
  16. DataLabelSettings? dataLabelSettings,
  17. bool? enableTooltip,
  18. List<Trendline>? trendlines,
  19. double? animationDuration,
  20. Color? borderColor,
  21. double? borderWidth,
  22. LinearGradient? gradient,
  23. LinearGradient? borderGradient,
  24. SelectionBehavior? selectionBehavior,
  25. bool? isVisibleInLegend,
  26. LegendIconType? legendIconType,
  27. SortingOrder? sortingOrder,
  28. String? legendItemText,
  29. double? opacity,
  30. double? animationDelay,
  31. SeriesRendererCreatedCallback? onRendererCreated,
  32. ChartPointInteractionCallback? onPointTap,
  33. ChartPointInteractionCallback? onPointDoubleTap,
  34. ChartPointInteractionCallback? onPointLongPress,
  35. CartesianShaderCallback? onCreateShader,
  36. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of ScatterSeries class.

Implementation

ScatterSeries(
    {ValueKey<String>? key,
    ChartSeriesRendererFactory<T, D>? onCreateRenderer,
    required List<T> dataSource,
    required ChartValueMapper<T, D> xValueMapper,
    required ChartValueMapper<T, num> yValueMapper,
    ChartValueMapper<T, dynamic>? sortFieldValueMapper,
    ChartValueMapper<T, Color>? pointColorMapper,
    ChartValueMapper<T, String>? dataLabelMapper,
    String? xAxisName,
    String? yAxisName,
    String? name,
    Color? color,
    MarkerSettings? markerSettings,
    EmptyPointSettings? emptyPointSettings,
    bool? isVisible,
    DataLabelSettings? dataLabelSettings,
    bool? enableTooltip,
    List<Trendline>? trendlines,
    double? animationDuration,
    Color? borderColor,
    double? borderWidth,
    LinearGradient? gradient,
    LinearGradient? borderGradient,
    SelectionBehavior? selectionBehavior,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    SortingOrder? sortingOrder,
    String? legendItemText,
    double? opacity,
    double? animationDelay,
    SeriesRendererCreatedCallback? onRendererCreated,
    ChartPointInteractionCallback? onPointTap,
    ChartPointInteractionCallback? onPointDoubleTap,
    ChartPointInteractionCallback? onPointLongPress,
    CartesianShaderCallback? onCreateShader,
    List<int>? initialSelectedDataIndexes})
    : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          xValueMapper: xValueMapper,
          yValueMapper: yValueMapper,
          sortFieldValueMapper: sortFieldValueMapper,
          pointColorMapper: pointColorMapper,
          dataLabelMapper: dataLabelMapper,
          dataSource: dataSource,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          name: name,
          color: color,
          markerSettings: markerSettings,
          dataLabelSettings: dataLabelSettings,
          emptyPointSettings: emptyPointSettings,
          enableTooltip: enableTooltip,
          isVisible: isVisible,
          animationDuration: animationDuration,
          borderColor: borderColor,
          borderWidth: borderWidth,
          trendlines: trendlines,
          gradient: gradient,
          borderGradient: borderGradient,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          animationDelay: animationDelay,
          onCreateShader: onCreateShader,
          onRendererCreated: onRendererCreated,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress,
          initialSelectedDataIndexes: initialSelectedDataIndexes);