ChartSeries<T, D> class
This class holds the property of series.
Chart series has property to render the series if the property data source is empty it renders an empty chart. ChartSeries is the base class, it has the property to set the name, data source, border color and width to customize the series.
Provides options that are extended by the other sub classes such as name, point color mapper, data label mapper, animation duration and border-width and color for customize the appearance of the chart.
- Implementers
Constructors
-
ChartSeries({ChartIndexedValueMapper<
D> ? xValueMapper, ChartIndexedValueMapper? yValueMapper, ChartIndexedValueMapper<String> ? dataLabelMapper, String? name, List<T> ? dataSource, ChartIndexedValueMapper<Color> ? pointColorMapper, ChartIndexedValueMapper? sortFieldValueMapper, bool? enableTooltip, EmptyPointSettings? emptyPointSettings, DataLabelSettings? dataLabelSettings, double? animationDuration, Color? borderColor, double? borderWidth, SelectionBehavior? selectionBehavior, String? legendItemText, LegendIconType? legendIconType, double? opacity, SortingOrder? sortingOrder, double? animationDelay, bool? isVisible}) -
Creating an argument constructor of ChartSeries class.
const
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
- borderWidth → double?
-
Border width 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. 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
- hashCode → int
-
The hash code for this object.
no setterinherited
- isVisible → bool?
-
Visibility of the series.
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
- 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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionBehavior → SelectionBehavior?
-
Customizes the data points or series on selection.
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
-
xValueMapper
→ ChartIndexedValueMapper<
D> ? -
Field in the data source, which is considered as x-value.
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