BarSeries<T, D> constructor
BarSeries<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,
- 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,
- List<
Trendline> ? trendlines, - Color? borderColor,
- double? borderWidth,
- SelectionBehavior? selectionBehavior,
- bool? isVisibleInLegend,
- LegendIconType? legendIconType,
- String? legendItemText,
- double? opacity,
- double? animationDelay,
- List<
double> ? dashArray, - SeriesRendererCreatedCallback? onRendererCreated,
- ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- CartesianShaderCallback? onCreateShader,
- List<
int> ? initialSelectedDataIndexes,
Creating an argument constructor of BarSeries class.
Implementation
BarSeries(
{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,
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,
List<Trendline>? trendlines,
Color? borderColor,
double? borderWidth,
SelectionBehavior? selectionBehavior,
bool? isVisibleInLegend,
LegendIconType? legendIconType,
String? legendItemText,
double? opacity,
double? animationDelay,
List<double>? dashArray,
SeriesRendererCreatedCallback? onRendererCreated,
ChartPointInteractionCallback? onPointTap,
ChartPointInteractionCallback? onPointDoubleTap,
ChartPointInteractionCallback? onPointLongPress,
CartesianShaderCallback? onCreateShader,
List<int>? initialSelectedDataIndexes})
: super(
key: key,
onCreateRenderer: onCreateRenderer,
name: name,
onRendererCreated: onRendererCreated,
onPointTap: onPointTap,
onPointDoubleTap: onPointDoubleTap,
onPointLongPress: onPointLongPress,
xValueMapper: xValueMapper,
yValueMapper: yValueMapper,
sortFieldValueMapper: sortFieldValueMapper,
pointColorMapper: pointColorMapper,
dataLabelMapper: dataLabelMapper,
dataSource: dataSource,
xAxisName: xAxisName,
yAxisName: yAxisName,
color: color,
trendlines: trendlines,
width: width ?? 0.7,
markerSettings: markerSettings,
dataLabelSettings: dataLabelSettings,
emptyPointSettings: emptyPointSettings,
isVisible: isVisible,
gradient: gradient,
borderGradient: borderGradient,
enableTooltip: enableTooltip,
animationDuration: animationDuration,
borderColor: borderColor,
borderWidth: borderWidth,
selectionBehavior: selectionBehavior,
legendItemText: legendItemText,
isVisibleInLegend: isVisibleInLegend,
legendIconType: legendIconType,
sortingOrder: sortingOrder,
opacity: opacity,
animationDelay: animationDelay,
onCreateShader: onCreateShader,
initialSelectedDataIndexes: initialSelectedDataIndexes,
dashArray: dashArray);