CartesianSeries<T, D> class abstract

This class has the properties of the cartesian series.

The cartesian series provides a variety of options, such as animation, dynamic animation, transpose, color palette, color mapping to customize the Cartesian chart. The chart’s data source can be sorted using the sorting order and sortFieldValueMapper properties of series.

Provides the options for animation, color palette, sorting, and empty point mode to customize the charts.

Inheritance
Implementers

Constructors

CartesianSeries({ValueKey<String>? key, ChartIndexedValueMapper<D>? xValueMapper, ChartIndexedValueMapper? yValueMapper, ChartIndexedValueMapper<String>? dataLabelMapper, String? name, required List<T> dataSource, String? xAxisName, String? yAxisName, ChartIndexedValueMapper<num>? sizeValueMapper, ChartIndexedValueMapper<Color>? pointColorMapper, Color? color, String? legendItemText, ChartIndexedValueMapper? sortFieldValueMapper, LinearGradient? gradient, LinearGradient? borderGradient, double? width, ChartIndexedValueMapper<num>? highValueMapper, ChartIndexedValueMapper<num>? lowValueMapper, ChartIndexedValueMapper<bool>? intermediateSumPredicate, ChartIndexedValueMapper<bool>? totalSumPredicate, List<Trendline>? trendlines, SeriesRendererCreatedCallback? onRendererCreated, ChartSeriesRendererFactory<T, D>? onCreateRenderer, ChartPointInteractionCallback? onPointTap, ChartPointInteractionCallback? onPointDoubleTap, ChartPointInteractionCallback? onPointLongPress, CartesianShaderCallback? onCreateShader, MarkerSettings? markerSettings, bool? isVisible, bool? enableTooltip, EmptyPointSettings? emptyPointSettings, DataLabelSettings? dataLabelSettings, double? animationDuration, List<double>? dashArray, List<int>? initialSelectedDataIndexes, Color? borderColor, double? borderWidth, SelectionBehavior? selectionBehavior, bool? isVisibleInLegend, LegendIconType? legendIconType, double? opacity, double? animationDelay, SortingOrder? sortingOrder})
Creating an argument constructor of CartesianSeries class.

Properties

animationDelay double?
Delay duration of the series animation.It takes a millisecond value as input. By default, the series will get animated for the specified duration. If animationDelay is specified, then the series will begin to animate after the specified duration.
final
animationDuration double
Duration of the series animation. It takes millisecond value as input.
final
borderColor Color
Border color of the series.
final
borderGradient LinearGradient?
Fills the border of the chart series with gradient color.
final
borderWidth double
Border width of the series.
final
color Color?
Color of the series.
final
dashArray List<double>
Dashes of the series.
final
dataLabelMapper ChartIndexedValueMapper<String>?
Field in the data source, which is considered as text for the data points.
final
dataLabelSettings DataLabelSettings
Customizes the data labels in a series. Data label is a text, which displays the details about the data point.
final
dataSource List<T>
Data required for rendering the series.
final
emptyPointSettings EmptyPointSettings
Customizes the empty points, i.e. null data points in a series.
final
enableTooltip bool
Enables or disables the tooltip for this series.
final
gradient LinearGradient?
Fills the chart series with gradient color.
final
hashCode int
The hash code for this object.
no setterinherited
highValueMapper ChartIndexedValueMapper<num>?
Field in the data source, which is considered as high value for the data points.
final
initialSelectedDataIndexes List<int>?
List of data indexes to initially be selected.
final
intermediateSumPredicate ChartIndexedValueMapper<bool>?
A boolean value, based on which the data point will be considered as intermediate sum or not.
final
isVisible bool
Toggles the visibility of the series.
final
isVisibleInLegend bool
Toggles the visibility of the legend item of this specific series in the legend.
final
key ValueKey<String>?
Key to identify a series in a collection.
final
legendIconType LegendIconType
Shape of the legend icon.
final
legendItemText String?
Text to be displayed in legend.
final
lowValueMapper ChartIndexedValueMapper<num>?
Field in the data source, which is considered as low value for the data points.
final
markerSettings MarkerSettings
Indication of data points.
final
name String?
Name of the series.
final
onCreateRenderer ChartSeriesRendererFactory<T, D>?
Used to create the renderer for custom series.
final
onCreateShader CartesianShaderCallback?
Fills the data points with the gradient and image shaders.
final
onPointDoubleTap ChartPointInteractionCallback?
Called when double tapped on the chart data point.
final
onPointLongPress ChartPointInteractionCallback?
Called when long pressed on the chart data point.
final
onPointTap ChartPointInteractionCallback?
Called when tapped on the chart data point.
final
onRendererCreated SeriesRendererCreatedCallback?
Triggers when the series renderer is created.
final
opacity double
Opacity of the series.
final
pointColorMapper ChartIndexedValueMapper<Color>?
Field in the data source, which is considered as fill color for the data points.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionBehavior SelectionBehavior
Customizes the data points or series on selection.
final
sizeValueMapper ChartIndexedValueMapper<num>?
Field in the data source, which is considered as size of the bubble for all the data points.
final
sortFieldValueMapper ChartIndexedValueMapper?
Field in the data source, which is considered for sorting the data points.
final
sortingOrder SortingOrder
The data points in the series can be sorted in ascending or descending order.
final
totalSumPredicate ChartIndexedValueMapper<bool>?
A boolean value, based on which the data point will be considered as total sum or not.
final
trendlines List<Trendline>?
Customizes the trendlines.
final
width double?
Width of the series.
final
xAxisName String?
Name of the x-axis to bind the series.
final
xValueMapper ChartIndexedValueMapper<D>?
Field in the data source, which is considered as x-value.
final
yAxisName String?
Name of the y-axis to bind the series.
final
yValueMapper ChartIndexedValueMapper?
Field in the data source, which is considered as y-value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited