SunburstArcRendererConfig<D> class
Configuration for an ArcRenderer.
- Inheritance
-
- Object
- LayoutViewConfig
- SunburstArcRendererConfig
- Implemented types
Constructors
-
SunburstArcRendererConfig({String? customRendererId, double arcLength = 2 * pi, List<
ArcRendererDecorator< arcRendererDecorators = const [], double? arcRatio, List<D> >int> ? arcRatios, int? arcWidth, List<int> ? arcWidths, SunburstColorStrategy colorAssignmentStrategy = SunburstColorStrategy.newShadePerLevel, int layoutPaintOrder = LayoutViewPaintOrder.arc, int? maxDisplayLevel, int? initialDisplayLevel, int minHoleWidthForCenterContent = 30, double startAngle = -pi / 2, double strokeWidthPx = 2.0})
Properties
- arcLength → double
-
Total arc length, in radians.
finalinherited
- arcRatio → double?
-
If set, configures the arcWidth to be a percentage of the radius.
finalinherited
-
arcRatios
→ List<
int> ? -
Ratio of the arc widths for each of the ring drawn in the sunburst. The
arc ratio of each ring will be normalized based on the actual render area
of the chart. If the maxDisplayLevel to be rendered is greater than the
arcRatios provided, the last value of the arcRatios will be used to fill
the rest of the levels. If neither arcRatios nor arcWidths is provided,
space will be distributed evenly between levels.
final
-
arcRendererDecorators
→ List<
ArcRendererDecorator< D> > -
List of decorators applied to rendered arcs.
finalinherited
- arcWidth → int?
-
Fixed width of the arc within the radius.
finalinherited
-
arcWidths
→ List<
int> ? -
Fixed width of the arcs for each of the ring drawn in the sunburst. The
arcs will be drawn exactly as the defined width, any part exceeding the
chart area will not be drawn. If the maxDisplayLevel to be rendered is
greater than the arcWidths provided, the last value of the arcWidths will
be used to fill the rest of the levels. arcWidths has more precedence than
arcRatios. If neither arcRatios nor arcWidths is provided, space will be
distributed evenly between levels.
final
- colorAssignmentStrategy → SunburstColorStrategy
-
Configures how missing colors are assigned for the Sunburst.
final
- customRendererId → String?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
Unique identifier for the LayoutView.
getter/setter pairinherited
- initialDisplayLevel → int
-
The initial display level of rings to render in the sunburst. Children
of hovered/selected node may expand up to the maxDisplayLevel. If unset,
defaults to maxDisplayLevel.
final
- isFullPosition → bool
-
Returns true if it is a full position.
no setterinherited
- layoutPaintOrder → int
-
The order to paint this renderer on the canvas.
finalinherited
- maxDisplayLevel → int
-
The max level of rings to render in the sunburst. If unset, display all
data.
final
- minHoleWidthForCenterContent → int
-
Minimum radius in pixels of the hole in a donut chart for center content
to appear.
finalinherited
- noDataColor → Color
-
Color of the "no data" state for the chart, used when an empty series is
drawn.
finalinherited
- paintOrder ↔ int?
-
The order to paint a LayoutView on the canvas.
getter/setter pairinherited
- position ↔ LayoutPosition?
-
The position of a LayoutView defining where to place the view.
getter/setter pairinherited
- positionOrder ↔ int?
-
The order to place the LayoutView within a chart margin.
getter/setter pairinherited
- rendererAttributes → RendererAttributes
-
Stores typed renderer attributes
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startAngle → double
-
Start angle for pie slices, in radians.
finalinherited
- stroke → Color
-
Stroke color of the border of the arcs.
finalinherited
- strokeWidthPx → double
-
Stroke width of the border of the arcs.
finalinherited
- symbolRenderer → SymbolRenderer
-
finalinherited
- viewMargin ↔ ViewMargin
-
Defines the space around a layout component.
getter/setter pairinherited
Methods
-
build(
) → SunburstArcRenderer< D> -
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