BaseBarRendererConfig<D> class abstract

Shared configuration for bar chart renderers.

Bar renderers support 4 different modes of rendering multiple series on the chart, configured by the grouped and stacked flags.

  • grouped - Render bars for each series that shares a domain value side-by-side.
  • stacked - Render bars for each series that shares a domain value in a stack, ordered in the same order as the series list.
  • grouped-stacked: Render bars for each series that shares a domain value in a group of bar stacks. Each stack will contain all the series that share a series category.
  • floating style - When grouped and stacked are both false, all bars that share a domain value will be rendered in the same domain space. Each datum should be configured with a measure offset to position its bar along the measure axis. Bars will freely overlap if their measure values and measure offsets overlap. Note that bars for each series will be rendered in order, such that bars from the last series will be "on top" of bars from previous series.
Inheritance
Implemented types
Implementers

Constructors

BaseBarRendererConfig({int barGroupInnerPaddingPx = 2, String? customRendererId, List<int>? dashPattern, BarGroupingType groupingType = BarGroupingType.grouped, int? layoutPaintOrder, int minBarLengthPx = 0, int? maxBarWidthPx, FillPatternType? fillPattern, int stackedBarPaddingPx = 1, double strokeWidthPx = 0.0, SymbolRenderer? symbolRenderer, List<int>? weightPattern})

Properties

barGroupInnerPaddingPx int
Spacing between the bars in a group.
final
customRendererId String?
final
dashPattern List<int>?
Dash pattern for the stroke line around the edges of the bar.
final
fillPattern FillPatternType?
final
grouped bool
Whether or not the bars should be organized into groups.
no setter
groupingType BarGroupingType
Defines the way multiple series of bars are rendered per domain.
final
hashCode int
The hash code for this object.
no setteroverride
id String?
Unique identifier for the LayoutView.
getter/setter pairinherited
isFullPosition bool
Returns true if it is a full position.
no setterinherited
layoutPaintOrder int?
The order to paint this renderer on the canvas.
final
maxBarWidthPx int?
final
minBarLengthPx int
final
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
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stacked bool
Whether or not the bars should be organized into stacks.
no setter
stackedBarPaddingPx int
The padding between bar stacks.
final
strokeWidthPx double
Stroke width of the target line.
final
symbolRenderer SymbolRenderer
final
viewMargin ViewMargin
Defines the space around a layout component.
getter/setter pairinherited
weightPattern List<int>?
Sets the series weight pattern. This is a pattern of weights used to calculate the width of bars within a bar group. If not specified, each bar in the group will have an equal width.
final

Methods

build() SeriesRenderer<D>
inherited
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