CartesianSeries<T, D> class abstract

This class has the properties of the cartesian series.

CartesianSeries 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, MarkerSettings? markerSettings, bool? isVisible, bool? enableTooltip, EmptyPointSettings? emptyPointSettings, DataLabelSettings? dataLabelSettings, double? animationDuration, List<double>? dashArray, List<int>? initialSelectedDataIndexes, Color? borderColor, double? borderWidth, SelectionSettings? selectionSettings, SelectionBehavior? selectionBehavior, bool? isVisibleInLegend, LegendIconType? legendIconType, double? opacity, SortingOrder? sortingOrder})
Creating an argument constructor of CartesianSeries class.

Properties

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
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
selectionSettings SelectionSettings
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