RadialCategorySeries class abstract
Shared validated source contract for Pie and Donut category series.
Concrete radial chart types remain distinct public models. This base owns only the source-point identity, common appearance contract, optional second radius metric, and validation that must remain identical across them.
- Inheritance
-
- Object
- ChartSeries
- RadialCategorySeries
- Implementers
Constructors
-
RadialCategorySeries({required String id, String? name, required List<
ChartDataPoint> points, Color? color, Map<String, dynamic> ? metadata, String? unit, bool showInLegend = true, bool showTrackingAxisLabel = true, bool showInTrackingTooltip = true, required SeriesStyle style, required RadialChartStyle radialStyle, RadialSelectionStyle selectionStyle = const RadialSelectionStyle(), required PieDataLabelConfig dataLabels, required RadialSliceRadiusConfig? sliceRadiusConfig, required RadialSliceGroupingConfig? sliceGroupingConfig}) - Creates the shared immutable radial category state.
Properties
-
annotations
→ List<
ChartAnnotation> -
finalinherited
- color → Color?
-
finalinherited
- dataLabels → PieDataLabelConfig
-
Data-label eligibility and placement configuration.
final
- displayName → String
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasVariableSliceRadius → bool
-
Whether every slice carries an active variable-radius value.
no setter
- id → String
-
finalinherited
- innerRadiusFactor → double
-
Radius of the shared center opening relative to the maximum outer radius.
no setter
- isAllZero → bool
-
Whether this series contains data but every contribution is zero.
no setter
- isEmpty → bool
-
no setterinherited
- isNotEmpty → bool
-
no setterinherited
- isXOrdered → bool
-
finalinherited
- length → int
-
no setterinherited
-
metadata
→ Map<
String, dynamic> ? -
finalinherited
- name → String?
-
finalinherited
-
points
→ List<
ChartDataPoint> -
finalinherited
- radialStyle → RadialChartStyle
-
Shared slice geometry and appearance consumed by the radial renderer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionStyle → RadialSelectionStyle
-
Visual treatment applied to durable slice selection.
final
- showInLegend → bool
-
Whether automatic legends include this series.
finalinherited
- showInTrackingTooltip → bool
-
Whether the tracking tooltip includes this series.
finalinherited
- showTrackingAxisLabel → bool
-
Whether tracking mode may expose this series' value on its Y-axis.
finalinherited
- sliceGroupingConfig → RadialSliceGroupingConfig?
-
Optional deterministic projection of small categories into one slice.
final
- sliceRadiusConfig → RadialSliceRadiusConfig?
-
Optional second-metric encoding used for variable slice radii.
final
- style → SeriesStyle?
-
finalinherited
- sweepAngleDegrees → double
-
Total configured angular span in degrees.
no setter
- total → double
-
Sum of all visible, positive slice contributions.
no setter
- unit → String?
-
Optional unit suffix for value formatting.
finalinherited
-
visiblePointIndices
→ List<
int> -
Primary source indices that produce visible projected geometry.
no setter
-
visibleSlices
→ List<
RadialCategorySlice> -
Visible radial categories after the configured grouping projection.
latefinal
- yAxisConfig → YAxisConfig?
-
Inline Y-axis configuration for this series.
finalinherited
- yAxisId → String?
-
Optional Y-axis ID for referencing a shared axis in multi-axis mode.
finalinherited
Methods
-
copyWith(
{String? id, String? name, List< ChartDataPoint> ? points, Color? color, SeriesStyle? style, bool? isXOrdered, Map<String, dynamic> ? metadata, List<ChartAnnotation> ? annotations, String? yAxisId, YAxisConfig? yAxisConfig, String? unit, bool? showInLegend, bool? showTrackingAxisLabel, bool? showInTrackingTooltip}) → ChartSeries -
Creates a copy of this series with specified properties overridden.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this series to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateRadialConfiguration(
{required String chartName}) → void - Validates the common radial source and visual contract in every build mode. Concrete types call this after their own fields are initialized.
-
visibleSliceForSourcePointIndex(
int sourcePointIndex) → RadialCategorySlice? -
Finds the visible slice containing
sourcePointIndex.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
requireFinite(
double value, String name) → void - Requires a finite value.
-
requireNonNegative(
double value, String name) → void - Requires a finite non-negative value.
-
requireRange(
double value, String name, {required double min, required double max, bool minInclusive = true, bool maxInclusive = true}) → void - Requires a finite value within the configured range.
-
withoutSliceRadius(
ChartDataPoint point) → ChartDataPoint - Removes the optional second-metric radius from one source point.