ColumnSeries<T, D> constructor

ColumnSeries<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. SortingOrder? sortingOrder,
  10. bool isTrackVisible = false,
  11. String? xAxisName,
  12. String? yAxisName,
  13. String? name,
  14. Color? color,
  15. double? width,
  16. double spacing = 0,
  17. MarkerSettings? markerSettings,
  18. List<Trendline>? trendlines,
  19. EmptyPointSettings? emptyPointSettings,
  20. DataLabelSettings? dataLabelSettings,
  21. bool? isVisible,
  22. LinearGradient? gradient,
  23. LinearGradient? borderGradient,
  24. BorderRadius borderRadius = BorderRadius.zero,
  25. bool? enableTooltip,
  26. double? animationDuration,
  27. Color trackColor = Colors.grey,
  28. Color trackBorderColor = Colors.transparent,
  29. double trackBorderWidth = 1,
  30. double trackPadding = 0,
  31. Color? borderColor,
  32. double? borderWidth,
  33. SelectionBehavior? selectionBehavior,
  34. bool? isVisibleInLegend,
  35. LegendIconType? legendIconType,
  36. String? legendItemText,
  37. double? opacity,
  38. double? animationDelay,
  39. List<double>? dashArray,
  40. SeriesRendererCreatedCallback? onRendererCreated,
  41. List<int>? initialSelectedDataIndexes,
  42. ChartPointInteractionCallback? onPointTap,
  43. ChartPointInteractionCallback? onPointDoubleTap,
  44. ChartPointInteractionCallback? onPointLongPress,
  45. CartesianShaderCallback? onCreateShader,
})

Creating an argument constructor of ColumnSeries class.

Implementation

ColumnSeries({
  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,
  SortingOrder? sortingOrder,
  this.isTrackVisible = false,
  String? xAxisName,
  String? yAxisName,
  String? name,
  Color? color,
  double? width,
  this.spacing = 0,
  MarkerSettings? markerSettings,
  List<Trendline>? trendlines,
  EmptyPointSettings? emptyPointSettings,
  DataLabelSettings? dataLabelSettings,
  bool? isVisible,
  LinearGradient? gradient,
  LinearGradient? borderGradient,
  this.borderRadius = BorderRadius.zero,
  bool? enableTooltip,
  double? animationDuration,
  this.trackColor = Colors.grey,
  this.trackBorderColor = Colors.transparent,
  this.trackBorderWidth = 1,
  this.trackPadding = 0,
  Color? borderColor,
  double? borderWidth,
  SelectionBehavior? selectionBehavior,
  bool? isVisibleInLegend,
  LegendIconType? legendIconType,
  String? legendItemText,
  double? opacity,
  double? animationDelay,
  List<double>? dashArray,
  SeriesRendererCreatedCallback? onRendererCreated,
  List<int>? initialSelectedDataIndexes,
  ChartPointInteractionCallback? onPointTap,
  ChartPointInteractionCallback? onPointDoubleTap,
  ChartPointInteractionCallback? onPointLongPress,
  CartesianShaderCallback? onCreateShader,
}) : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          name: name,
          xValueMapper: xValueMapper,
          yValueMapper: yValueMapper,
          sortFieldValueMapper: sortFieldValueMapper,
          pointColorMapper: pointColorMapper,
          dataLabelMapper: dataLabelMapper,
          dataSource: dataSource,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          trendlines: trendlines,
          color: color,
          width: width ?? 0.7,
          markerSettings: markerSettings,
          dataLabelSettings: dataLabelSettings,
          isVisible: isVisible,
          gradient: gradient,
          borderGradient: borderGradient,
          emptyPointSettings: emptyPointSettings,
          enableTooltip: enableTooltip,
          animationDuration: animationDuration,
          borderColor: borderColor,
          borderWidth: borderWidth,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          animationDelay: animationDelay,
          onCreateShader: onCreateShader,
          dashArray: dashArray,
          onRendererCreated: onRendererCreated,
          initialSelectedDataIndexes: initialSelectedDataIndexes,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress);