ChartSeries<T, D> constructor
const
ChartSeries<T, D> ({
- ValueKey<
String> ? key, - List<
T> ? dataSource, - ChartValueMapper<
T, D> ? xValueMapper, - ChartValueMapper<
T, Color> ? pointColorMapper, - SortingOrder sortingOrder = SortingOrder.none,
- ChartValueMapper<
T, dynamic> ? sortFieldValueMapper, - ChartValueMapper<
T, String> ? dataLabelMapper, - String? name,
- bool enableTooltip = true,
- bool enableTrackball = true,
- double animationDuration = 1500,
- Color? color,
- double borderWidth = 2.0,
- bool isVisibleInLegend = true,
- LegendIconType legendIconType = LegendIconType.seriesType,
- String? legendItemText,
- double opacity = 1.0,
- double animationDelay = 0,
- bool initialIsVisible = true,
- SelectionBehavior? selectionBehavior,
- List<
int> ? initialSelectedDataIndexes, - EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
- DataLabelSettings dataLabelSettings = const DataLabelSettings(),
- MarkerSettings markerSettings = const MarkerSettings(),
- ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
Creating an argument constructor of ChartSeries class.
Implementation
const ChartSeries({
ValueKey<String>? key,
this.dataSource,
this.xValueMapper,
this.pointColorMapper,
this.sortingOrder = SortingOrder.none,
this.sortFieldValueMapper,
this.dataLabelMapper,
this.name,
this.enableTooltip = true,
this.enableTrackball = true,
this.animationDuration = 1500,
this.color,
this.borderWidth = 2.0,
this.isVisibleInLegend = true,
this.legendIconType = LegendIconType.seriesType,
this.legendItemText,
this.opacity = 1.0,
this.animationDelay = 0,
this.initialIsVisible = true,
this.selectionBehavior,
this.initialSelectedDataIndexes,
this.emptyPointSettings = const EmptyPointSettings(),
this.dataLabelSettings = const DataLabelSettings(),
this.markerSettings = const MarkerSettings(),
this.onPointTap,
this.onPointDoubleTap,
this.onPointLongPress,
}) : super(key: key);