CartesianSeries<T, D> class

Renders the cartesian type series.

Inheritance
Implementers

Constructors

CartesianSeries({ChartIndexedValueMapper<D> xValueMapper, ChartIndexedValueMapper<num> yValueMapper, ChartIndexedValueMapper<String> dataLabelMapper, String name, List<T> dataSource, String xAxisName, String yAxisName, ChartIndexedValueMapper<num> sizeValueMapper, ChartIndexedValueMapper<Color> pointColorMapper, Color color, String legendItemText, ChartIndexedValueMapper sortFieldValueMapper, LinearGradient gradient, double width, MarkerSettings markerSettings, bool isVisible, bool enableTooltip, EmptyPointSettings emptyPointSettings, DataLabelSettings dataLabelSettings, double animationDuration, List<double> dashArray, Color borderColor, double borderWidth, SelectionSettings selectionSettings, bool isVisibleInLegend, LegendIconType legendIconType, double opacity, List<ChartSegment> segments, SortingOrder sortingOrder })

Properties

animationDuration double
Duration of the series animation. It takes millisecond value as input. [...]
final
borderColor Color
Border color of the series. [...]
final
borderWidth double
Border width of the series. [...]
final
color Color
Color of the series. If no color is specified, then the series will be rendered with the default palette color. [...]
final
dashArray List<double>
Dashes of the series. Any number of values can be provided in the list. Odd value is considered as rendering size and even value is considered as gap. [...]
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. If no data source is specified, empty chart will be rendered without 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. Tooltip will display more details about data points when tapping the data point region. [...]
final
gradient → LinearGradient
Fills the chart series with gradient color. [...]
final
isVisible bool
Toggles the visibility of the series. [...]
read / write, final, inherited-setter, override-getter
isVisibleInLegend bool
Toggles the visibility of the legend item of this specific series in the legend. If it is set to false, the legend item for this series will not be visible in the legend. [...]
final
legendIconType LegendIconType
Shape of the legend icon. Any shape in the LegendIconType can be applied to this property. By default, icon will be rendered based on the type of the series. [...]
final
legendItemText String
Text to be displayed in legend. By default, the series name will be displayed in the legend. You can change this by setting values to this property. [...]
final
markerSettings MarkerSettings
Indication of data points. Mark the data point location with symbols for better indication. The shape, color, border, and size of the marker can be customized. [...]
final
name String
Name of the series. The name will be displayed in legend item by default. If name is not specified for the series, then the current series index with ‘series’ text prefix will be considered as series name. [...]
final
opacity double
Opacity of the series. The value ranges from 0 to 1. [...]
final
pointColorMapper ChartIndexedValueMapper<Color>
Field in the data source, which is considered as fill color for the data points. [...]
final
segments List<ChartSegment>
Gets the Segments collection variable declarations.
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. The data points will be rendered in the specified order if it is set to none. [...]
final
width double
Width of the series. In line, spline, step line, and fast line series, width of the line will be changed. In column series, width of the column rectangle will be changed. In bar series, the height of the bar rectangle will be changed. [...]
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<num>
Field in the data source, which is considered as y-value. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createSegment() ChartSegment
To create segment for series
createSegments() → void
Creates collection of segments for series
customizeSegment(ChartSegment segment) → void
To customize each segments
drawDataLabel(int index, Canvas canvas, String dataLabel, double pointX, double pointY, int angle, ChartTextStyle style) → void
To customize each data labels
drawDataMarker(int index, Canvas canvas, Paint fillPaint, Paint strokePaint, double pointX, double pointY) → void
To customize each data markers
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited