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 = const BorderRadius.all(Radius.zero),
- bool? enableTooltip,
- double? animationDuration,
- Color trackColor = Colors.grey,
- Color trackBorderColor = Colors.transparent,
- double trackBorderWidth = 1,
- double trackPadding = 0,
- Color? borderColor,
- double? borderWidth,
- SelectionSettings? selectionSettings,
- SelectionBehavior? selectionBehavior,
- bool? isVisibleInLegend,
- LegendIconType? legendIconType,
- String? legendItemText,
- double? opacity,
- List<
double> ? dashArray, - SeriesRendererCreatedCallback? onRendererCreated,
- List<
int> ? initialSelectedDataIndexes,
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 = const BorderRadius.all(Radius.zero),
bool? enableTooltip,
double? animationDuration,
this.trackColor = Colors.grey,
this.trackBorderColor = Colors.transparent,
this.trackBorderWidth = 1,
this.trackPadding = 0,
Color? borderColor,
double? borderWidth,
// ignore: deprecated_member_use_from_same_package
SelectionSettings? selectionSettings,
SelectionBehavior? selectionBehavior,
bool? isVisibleInLegend,
LegendIconType? legendIconType,
String? legendItemText,
double? opacity,
List<double>? dashArray,
SeriesRendererCreatedCallback? onRendererCreated,
List<int>? initialSelectedDataIndexes})
: 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,
selectionSettings: selectionSettings,
selectionBehavior: selectionBehavior,
legendItemText: legendItemText,
isVisibleInLegend: isVisibleInLegend,
legendIconType: legendIconType,
sortingOrder: sortingOrder,
opacity: opacity,
dashArray: dashArray,
onRendererCreated: onRendererCreated,
initialSelectedDataIndexes: initialSelectedDataIndexes);