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