XyDataSeries<T, D> constructor
const
XyDataSeries<T, D> ({
- ValueKey<
String> ? key, - ChartValueMapper<
T, num> ? yValueMapper, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - SeriesRendererCreatedCallback<
T, D> ? onRendererCreated, - ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- CartesianShaderCallback? onCreateShader,
- ChartValueMapper<
T, D> ? xValueMapper, - ChartValueMapper<
T, String> ? dataLabelMapper, - String? name,
- List<
T> ? dataSource, - String? xAxisName,
- String? yAxisName,
- ChartValueMapper<
T, Color> ? pointColorMapper, - String? legendItemText,
- ChartValueMapper<
T, dynamic> ? sortFieldValueMapper, - LinearGradient? gradient,
- LinearGradient? borderGradient,
- List<
Trendline> ? trendlines, - MarkerSettings markerSettings = const MarkerSettings(),
- bool initialIsVisible = true,
- bool enableTooltip = true,
- bool enableTrackball = true,
- EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
- DataLabelSettings dataLabelSettings = const DataLabelSettings(),
- double animationDuration = 1500,
- List<
double> ? dashArray, - double borderWidth = 2.0,
- SelectionBehavior? selectionBehavior,
- bool isVisibleInLegend = true,
- LegendIconType legendIconType = LegendIconType.seriesType,
- double opacity = 1.0,
- double animationDelay = 0,
- Color? color,
- List<
int> ? initialSelectedDataIndexes, - SortingOrder sortingOrder = SortingOrder.none,
Creating an argument constructor of XyDataSeries class.
Implementation
const XyDataSeries({
super.key,
this.yValueMapper,
super.onCreateRenderer,
super.onRendererCreated,
super.onPointTap,
super.onPointDoubleTap,
super.onPointLongPress,
super.onCreateShader,
super.xValueMapper,
super.dataLabelMapper,
super.name,
super.dataSource,
super.xAxisName,
super.yAxisName,
super.pointColorMapper,
super.legendItemText,
super.sortFieldValueMapper,
super.gradient,
super.borderGradient,
super.trendlines,
super.markerSettings,
super.initialIsVisible,
super.enableTooltip = true,
super.enableTrackball = true,
super.emptyPointSettings,
super.dataLabelSettings,
super.animationDuration,
super.dashArray,
super.borderWidth,
super.selectionBehavior,
super.isVisibleInLegend,
super.legendIconType,
super.opacity,
super.animationDelay,
super.color,
super.initialSelectedDataIndexes,
super.sortingOrder,
});