ColumnSeries<T, D> constructor
ColumnSeries<T, D> ({
- 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,
- bool isTrackVisible = false,
- String? xAxisName,
- String? yAxisName,
- String? name,
- Color? color,
- double? width,
- double spacing = 0,
- MarkerSettings? markerSettings,
- List<
Trendline> ? trendlines, - EmptyPointSettings? emptyPointSettings,
- DataLabelSettings? dataLabelSettings,
- bool? isVisible,
- LinearGradient? gradient,
- LinearGradient? borderGradient,
- BorderRadius borderRadius = BorderRadius.zero,
- bool? enableTooltip,
- double? animationDuration,
- Color trackColor = Colors.grey,
- Color trackBorderColor = Colors.transparent,
- double trackBorderWidth = 1,
- double 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,
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);