ColumnSeries<T, D> constructor
ColumnSeries<T, D>({@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, MarkerSettings markerSettings, EmptyPointSettings emptyPointSettings, DataLabelSettings dataLabelSettings, bool isVisible, LinearGradient gradient, BorderRadius borderRadius, bool enableTooltip, double animationDuration, Color trackColor, Color trackBorderColor, double trackBorderWidth, double trackPadding, Color borderColor, double borderWidth, SelectionSettings selectionSettings, bool isVisibleInLegend, LegendIconType legendIconType, String legendItemText, double opacity })
Implementation
ColumnSeries(
{@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,
double spacing,
MarkerSettings markerSettings,
EmptyPointSettings emptyPointSettings,
DataLabelSettings dataLabelSettings,
bool isVisible,
LinearGradient gradient,
BorderRadius borderRadius,
bool enableTooltip,
double animationDuration,
Color trackColor,
Color trackBorderColor,
double trackBorderWidth,
double trackPadding,
Color borderColor,
double borderWidth,
SelectionSettings selectionSettings,
bool isVisibleInLegend,
LegendIconType legendIconType,
String legendItemText,
double opacity})
: trackColor = trackColor ?? Colors.grey,
trackBorderColor = trackBorderColor ?? Colors.transparent,
trackBorderWidth = trackBorderWidth ?? 1,
trackPadding = trackPadding ?? 0,
spacing = spacing ?? 0,
borderRadius = borderRadius ?? const BorderRadius.all(Radius.zero),
super(
name: name,
xValueMapper: xValueMapper,
yValueMapper: yValueMapper,
sortFieldValueMapper: sortFieldValueMapper,
pointColorMapper: pointColorMapper,
dataLabelMapper: dataLabelMapper,
dataSource: dataSource,
xAxisName: xAxisName,
yAxisName: yAxisName,
color: color,
width: width ?? 0.7,
markerSettings: markerSettings,
dataLabelSettings: dataLabelSettings,
isVisible: isVisible,
gradient: gradient,
emptyPointSettings: emptyPointSettings,
enableTooltip: enableTooltip,
animationDuration: animationDuration,
borderColor: borderColor,
borderWidth: borderWidth,
selectionSettings: selectionSettings,
legendItemText: legendItemText,
isVisibleInLegend: isVisibleInLegend,
legendIconType: legendIconType,
sortingOrder: sortingOrder,
opacity: opacity);