PyramidSeries<T, D> class

Renders the pyramid series.

To render a pyramid chart, create an instance of PyramidSeries, and add it to the series property of SfPyramidChart, it is the form of a triangle with lines dividing it into sections.

Provides the property of color, opacity, border color and border width for customizing the appearance.

Inheritance
Annotations

Constructors

PyramidSeries({ValueKey<String>? key, ChartSeriesRendererFactory<T, D>? onCreateRenderer, PyramidSeriesRendererCreatedCallback? onRendererCreated, ChartPointInteractionCallback? onPointTap, ChartPointInteractionCallback? onPointDoubleTap, ChartPointInteractionCallback? onPointLongPress, List<T>? dataSource, ChartValueMapper<T, D>? xValueMapper, ChartValueMapper<T, num>? yValueMapper, ChartValueMapper<T, Color>? pointColorMapper, ChartValueMapper<T, String>? textFieldMapper, String? name, String? height, String? width, PyramidMode? pyramidMode, double? gapRatio, LegendIconType? legendIconType, EmptyPointSettings? emptyPointSettings, DataLabelSettings? dataLabelSettings, double? animationDuration, double? animationDelay, double? opacity, Color? borderColor, double? borderWidth, bool? explode, num? explodeIndex, ActivationMode? explodeGesture, String? explodeOffset, SelectionBehavior? selectionBehavior, List<int>? initialSelectedDataIndexes})
Creating an argument constructor of PyramidSeries 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.
finalinherited
animationDuration double
Duration for animating the data points.
finalinherited
borderColor Color
Border color of the data points in the series.
finalinherited
borderWidth double
Border width of the data points in the series.
finalinherited
dataLabelMapper ChartIndexedValueMapper<String>?
Field in the data source, which is considered as text for the data points.
finalinherited
dataLabelSettings DataLabelSettings
Customizes the data labels in a series. Data label is a text, which displays the details about the data point.
finalinherited
dataSource List<T>?
A collection of data required for rendering the series. If no data source is specified, empty chart will be rendered without series.
finalinherited
emptyPointSettings EmptyPointSettings
Customizes the empty data points in the series.
finalinherited
enableTooltip bool
Enables or disables the tooltip for this series. Tooltip will display more details about data points when tapping the data point region.
finalinherited
explode bool
Enables or disables the explode of slices on tap.
finalinherited
explodeGesture ActivationMode
Gesture for activating the explode.
finalinherited
explodeIndex num?
Index of the slice to explode it at the initial rendering.
finalinherited
explodeOffset String
Offset of exploded slice. The value ranges from 0% to 100%.
finalinherited
gapRatio double
Gap ratio between the segments of pyramid. Ranges from 0 to 1.
finalinherited
hashCode int
The hash code for this object.
no setteroverride
height String
Height of the series.
finalinherited
initialSelectedDataIndexes List<int>
List of data indexes initially selected.
getter/setter pairinherited
isVisible bool?
Visibility of the series.
finalinherited
key ValueKey<String>?
Key to identify a series in a collection.
finalinherited
legendIconType LegendIconType
Shape of the legend icon.
finalinherited
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.
finalinherited
name String?
Name of the series.
finalinherited
onCreateRenderer ChartSeriesRendererFactory<T, D>?
Used to create the renderer for custom series.
finalinherited
onPointDoubleTap ChartPointInteractionCallback?
Called when double tapped on the chart data point.
finalinherited
onPointLongPress ChartPointInteractionCallback?
Called when long pressed on the chart data point.
finalinherited
onPointTap ChartPointInteractionCallback?
Called when tapped on the chart data point.
finalinherited
onRendererCreated PyramidSeriesRendererCreatedCallback?
Triggers when the series renderer is created. Using this callback, able to get the ChartSeriesController instance, which is used to access the public methods in the series.
finalinherited
opacity double
Opacity of the series. The value ranges from 0 to 1.
finalinherited
pointColorMapper ChartIndexedValueMapper<Color>?
Maps the field name, which will be considered as data point color.
finalinherited
pyramidMode PyramidMode
Specifies the rendering type of pyramid.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionBehavior SelectionBehavior
Customizes the selection of series.
finalinherited
sortFieldValueMapper ChartIndexedValueMapper?
Field in the data source, which is considered for sorting the data points.
finalinherited
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.
finalinherited
textFieldMapper ChartIndexedValueMapper<String>?
Maps the field name, which will be considered as a text.
finalinherited
width String
Width of the series.
finalinherited
xValueMapper ChartIndexedValueMapper<D>?
Maps the field name, which will be considered as x-values.
finalinherited
yValueMapper ChartIndexedValueMapper<num>?
Maps the field name, which will be considered as y-values.
finalinherited

Methods

calculateEmptyPointValue(int pointIndex, dynamic currentPoint, dynamic seriesRenderer) → void
To calculate the values of the empty points.
inherited
createRenderer(PyramidSeries<T, D> series) PyramidSeriesRenderer
Create the pyramid series renderer.
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.
override