CircularSeries<T, D> class

This class holds the property of circular series.

To render the Circlular chart, create an instance of PieSeries or DoughnutSeries or RadialBarSeries, and add it to the series collection property of SfCircularChart. You can use the radius property to change the diameter of the circular chart for the plot area. Also, explode the circular chart segment by enabling the explode property.

Provide the options of stroke width, stroke color, opacity, and point color mapper to customize the appearance.

Inheritance
Implemented types
Implementers

Constructors

CircularSeries({ValueKey<String>? key, ChartSeriesRendererFactory<T, D>? onCreateRenderer, CircularSeriesRendererCreatedCallback? onRendererCreated, List<T>? dataSource, ChartIndexedValueMapper<D>? xValueMapper, ChartIndexedValueMapper<num>? yValueMapper, ChartIndexedValueMapper<Color>? pointColorMapper, ChartShaderMapper? pointShaderMapper, ChartIndexedValueMapper<String>? pointRadiusMapper, ChartIndexedValueMapper<String>? dataLabelMapper, ChartIndexedValueMapper? sortFieldValueMapper, int? startAngle, int? endAngle, String? radius, String? innerRadius, bool? explode, bool? explodeAll, int? explodeIndex, ActivationMode? explodeGesture, String? explodeOffset, double? groupTo, CircularChartGroupMode? groupMode, PointRenderMode? pointRenderMode, String? gap, double? opacity, EmptyPointSettings? emptyPointSettings, Color? borderColor, double? borderWidth, DataLabelSettings? dataLabelSettings, bool? enableTooltip, bool? enableSmartLabels, String? name, double? animationDuration, SelectionSettings? selectionSettings, SelectionBehavior? selectionBehavior, SortingOrder? sortingOrder, LegendIconType? legendIconType, CornerStyle? cornerStyle, List<int>? initialSelectedDataIndexes})
Creating an argument constructor of CircularSeries class.

Properties

animationDuration double
Duration for animating the data points.
final
borderColor Color
Border color of the data points in the series.
final
borderWidth double
Border width of the data points in the series.
final
cornerStyle CornerStyle
Specifies the radial bar’s corner type.
final
dataLabelMapper ChartIndexedValueMapper<String>?
Maps the field name, which will be considered as text for the data points.
final
dataLabelSettings DataLabelSettings
Toggles the visibility of the tooltip for this series.
final
dataSource List<T>?
A collection of data required for rendering the series.
final
emptyPointSettings EmptyPointSettings
Customizes the empty data points in the series
final
enableSmartLabels bool
Data label placement without collision.
final
enableTooltip bool
Toggles the visibility of the tooltip for this series.
final
endAngle int
Ending angle of the series.
final
explode bool
Enables or disables the explode of slices on tap.
final
explodeAll bool
Enables or disables exploding all the slices at the initial rendering.
final
explodeGesture ActivationMode
Gesture for activating the explode.
final
explodeIndex int?
Index of the slice to explode it at the initial rendering.
final
explodeOffset String
Offset of exploded slice. The value ranges from 0% to 100%.
final
gap String
Specifies the gap between the radial bars in percentage.
final
groupMode CircularChartGroupMode?
Slice can also be grouped based on the data points value or based on index.
final
groupTo double?
Groups the data points of the series based on their index or values.
final
hashCode int
The hash code for this object.
no setterinherited
initialSelectedDataIndexes List<int>
List of data indexes initially selected
getter/setter pair
innerRadius String
Inner radius of the series.
final
isVisible bool?
Visibility of the series
finalinherited
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. 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.
final
onCreateRenderer ChartSeriesRendererFactory<T, D>?
Used to create the renderer for custom series.
final
onRendererCreated CircularSeriesRendererCreatedCallback?
Triggers when the series renderer is created.
final
opacity double
Opacity of the series. The value ranges from 0 to 1.
final
pointColorMapper ChartIndexedValueMapper<Color>?
Maps the field name, which will be considered as x-values.
final
pointRadiusMapper ChartIndexedValueMapper<String>?
Maps the field name, which will be considered for calculating the radius of all the data points.
final
pointRenderMode PointRenderMode?
Defines the painting mode of the data points.
final
pointShaderMapper ChartShaderMapper?
Returns the shaders to fill each data point.
final
radius String
Radius of the series.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionBehavior SelectionBehavior
Customizes the selection of series.
final
selectionSettings SelectionSettings
Customizes the selection of series.
final
sortFieldValueMapper ChartIndexedValueMapper?
Field in the data source for performing sorting. Sorting will be performed based on this field.
final
sortingOrder SortingOrder
Type of sorting.
final
startAngle int
Starting angle of the series.
final
xValueMapper ChartIndexedValueMapper<D>?
Maps the field name, which will be considered as x-values.
final
yValueMapper ChartIndexedValueMapper<num>?
Maps the field name, which will be considered as y-values.
final

Methods

calculateEmptyPointValue(int pointIndex, ChartPoint currentPoint, [CircularSeriesRenderer? seriesRenderer]) → void
To calculate empty point values
override
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