ColumnSeries<T, D> constructor

const ColumnSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. 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 = SortingOrder.none,
  10. String? xAxisName,
  11. String? yAxisName,
  12. String? name,
  13. Color? color,
  14. double width = 0.7,
  15. MarkerSettings markerSettings = const MarkerSettings(),
  16. List<Trendline>? trendlines,
  17. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  18. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  19. bool initialIsVisible = true,
  20. LinearGradient? gradient,
  21. LinearGradient? borderGradient,
  22. bool enableTooltip = true,
  23. double animationDuration = 1500,
  24. Color trackColor = Colors.grey,
  25. Color trackBorderColor = Colors.transparent,
  26. double trackBorderWidth = 1.0,
  27. double trackPadding = 0.0,
  28. BorderRadius borderRadius = BorderRadius.zero,
  29. bool isTrackVisible = false,
  30. double spacing = 0.0,
  31. Color borderColor = Colors.transparent,
  32. double borderWidth = 2.0,
  33. SelectionBehavior? selectionBehavior,
  34. bool isVisibleInLegend = true,
  35. LegendIconType legendIconType = LegendIconType.seriesType,
  36. String? legendItemText,
  37. double opacity = 1.0,
  38. double animationDelay = 0,
  39. List<double>? dashArray,
  40. SeriesRendererCreatedCallback<T, D>? 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

const ColumnSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  this.width = 0.7,
  super.markerSettings,
  super.trendlines,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.gradient,
  super.borderGradient,
  super.enableTooltip = true,
  super.animationDuration,
  this.trackColor = Colors.grey,
  this.trackBorderColor = Colors.transparent,
  this.trackBorderWidth = 1.0,
  this.trackPadding = 0.0,
  this.borderRadius = BorderRadius.zero,
  this.isTrackVisible = false,
  this.spacing = 0.0,
  this.borderColor = Colors.transparent,
  super.borderWidth,
  super.selectionBehavior,
  super.isVisibleInLegend,
  super.legendIconType,
  super.legendItemText,
  super.opacity,
  super.animationDelay,
  super.dashArray,
  super.onRendererCreated,
  super.initialSelectedDataIndexes,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
});