RadialBarSeries<T, D> class
Renders the radial bar series.
The radial bar chart is used for showing the comparisons among the categories using the circular shapes. To render a radial bar chart, create an instance of RadialBarSeries, and add to the series collection property of SfCircularChart.
Provides options to customize the maximumValue, trackColor, trackBorderColor, trackBorderWidth, trackOpacity and useSeriesColor of the radial segments.
- Inheritance
-
- Object
- ChartSeries<
T, D> - CircularSeries<
T, D> - RadialBarSeries
Constructors
-
RadialBarSeries({ValueKey<
String> ? key, ChartSeriesRendererFactory<T, D> ? onCreateRenderer, CircularSeriesRendererCreatedCallback? onRendererCreated, ChartPointInteractionCallback? onPointTap, ChartPointInteractionCallback? onPointDoubleTap, ChartPointInteractionCallback? onPointLongPress, List<T> ? dataSource, required ChartValueMapper<T, D> xValueMapper, required ChartValueMapper<T, num> yValueMapper, ChartValueMapper<T, Color> ? pointColorMapper, ChartShaderMapper<T> ? pointShaderMapper, ChartValueMapper<T, String> ? pointRadiusMapper, ChartValueMapper<T, String> ? dataLabelMapper, ChartValueMapper<T, String> ? sortFieldValueMapper, Color trackColor = const Color.fromRGBO(234, 236, 239, 1.0), double trackBorderWidth = 0.0, double trackOpacity = 1, bool useSeriesColor = false, Color trackBorderColor = Colors.transparent, double? maximumValue, DataLabelSettings? dataLabelSettings, String? radius, String? innerRadius, String? gap, double? strokeWidth, double? opacity, Color? strokeColor, bool? enableTooltip, String? name, double? animationDuration, double? animationDelay, SelectionBehavior? selectionBehavior, SortingOrder? sortingOrder, LegendIconType? legendIconType, CornerStyle? cornerStyle, List<int> ? initialSelectedDataIndexes}) - Creating an argument constructor of RadialBarSeries 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
- cornerStyle → CornerStyle
-
Specifies the radial bar’s corner type.
finalinherited
-
dataLabelMapper
→ ChartIndexedValueMapper<
String> ? -
Maps the field name, which will be considered as a 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.
finalinherited
- emptyPointSettings → EmptyPointSettings
-
Customizes the empty data points in the series.
finalinherited
- enableTooltip → bool
-
Determines whether to enable tooltip.
finalinherited
- endAngle → int
-
Ending angle of the series.
finalinherited
- explode → bool
-
Enables or disables the explode of slices on tap.
finalinherited
- explodeAll → bool
-
Enables or disables exploding all the slices at the initial rendering.
finalinherited
- explodeGesture → ActivationMode
-
Gesture for activating the explode.
finalinherited
- explodeIndex → int?
-
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
- gap → String
-
Specifies the gap between the radial bars in percentage.
finalinherited
- groupMode → CircularChartGroupMode?
-
Slice can also be grouped based on the data points value or based on index.
finalinherited
- groupTo → double?
-
Groups the data points of the series based on their index or values.
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
-
initialSelectedDataIndexes
↔ List<
int> -
List of data indexes initially selected.
getter/setter pairinherited
- innerRadius → String
-
Inner radius of the series.
finalinherited
- 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
- maximumValue → double?
-
Specifies the maximum value of the radial bar.
final
- 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 → CircularSeriesRendererCreatedCallback?
-
Triggers when the series renderer is created.
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
-
pointRadiusMapper
→ ChartIndexedValueMapper<
String> ? -
Maps the field name, which will be considered for calculating the radius of
all the data points.
finalinherited
- pointRenderMode → PointRenderMode?
-
Defines the painting mode of the data points.
finalinherited
- pointShaderMapper → ChartShaderMapper?
-
Returns the shaders to fill each data point.
finalinherited
- radius → String
-
Radius of the series.
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 for performing sorting.
finalinherited
- sortingOrder → SortingOrder
-
Type of sorting.
finalinherited
- startAngle → int
-
Starting angle of the series.
finalinherited
- trackBorderColor → Color
-
Border color of the track.
final
- trackBorderWidth → double
-
Border width of the track.
final
- trackColor → Color
-
Color of the track.
final
- trackOpacity → double
-
Opacity of the track.
final
- useSeriesColor → bool
-
Uses the point color for filling the track.
final
-
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, ChartPoint currentPoint, [CircularSeriesRenderer? seriesRenderer]) → void -
To calculate empty point values.
inherited
-
createRenderer(
CircularSeries< T, D> series) → RadialBarSeriesRenderer - Create the Radial bar 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