common library

Classes

A11yNode
Container for accessibility data.
AnnotationSegment<D>
Base class for chart annotations.
ArcLabelDecorator<D>
Renders labels for arc renderers.
ArcLabelLeaderLineStyleSpec
Style configuration for leader lines.
ArcRenderer<D>
ArcRendererConfig<D>
Configuration for an ArcRenderer.
AttributeKey<R>
AutoAdjustingDateTimeTickProvider
Tick provider for date and time.
AutoAdjustingStaticOrdinalTickProviderSpec
TickProviderSpec that tries different tick increments to avoid tick collisions.
AutoDateTimeTickFormatterSpec
TickFormatterSpec that automatically chooses the appropriate level of formatting based on the tick stepSize. Each level of date granularity has its own TimeFormatterSpec used to specify the formatting strings at that level.
AutoDateTimeTickProviderSpec
TickProviderSpec that sets up the automatically assigned time ticks based on the extents of your data.
Axis<D>
AxisSpec<D>
BarChart
BarErrorDecorator<D>
Decorates bars with error whiskers.
BarLabelDecorator<D>
BarLaneRendererConfig
Configuration for a bar lane renderer.
BarRenderer<D>
Renders series data as a series of bars.
BarRendererConfig<D>
Configuration for a bar renderer.
BarRendererDecorator<D>
Decorates bars after the bars have already been painted.
BarRendererElement<D>
BarTargetLineRenderer<D>
Renders series data as a series of bar target lines.
BarTargetLineRendererConfig<D>
Configuration for a bar target line renderer.
BaseBarRendererConfig<D>
Shared configuration for bar chart renderers.
BaseCartesianRenderer<D>
BaseChart<D>
BaseRenderSpec<D>
BaseTickDrawStrategy<D>
Base strategy that draws tick labels and checks for label collisions.
BaseTimeStepper
A base stepper for operating with DateTimeFactory and time range steps.
BasicDateTimeTickFormatterSpec
A DateTimeTickFormatterSpec that accepts a DateFormat or a DateTimeFormatterFunction.
BasicNumericTickFormatterSpec
BasicNumericTickProviderSpec
BasicOrdinalTickFormatterSpec
BasicOrdinalTickProviderSpec
BucketingAxisSpec
A numeric AxisSpec that positions all values beneath a certain threshold into a reserved space on the axis range. The label for the bucket line will be drawn in the middle of the bucket range, rather than aligned with the gridline for that value's position on the scale.
BucketingNumericTickProviderSpec
CanvasBarStack
A stack of CanvasRect to be painted by ChartCanvas.
CanvasPie
A list of CanvasPieSlices to be painted by ChartCanvas.
CanvasPieSlice
A circle sector to be painted by ChartCanvas.
CanvasRect
A rectangle to be painted by ChartCanvas.
CartesianChart<D>
ChartBehavior<D>
Interface for adding behavior to a chart.
ChartCanvas
ChartContext
ChartTitle<D>
Chart behavior that adds title text to a chart. An optional second line of text may be rendered as a sub-title.
CircleSymbolRenderer
Circle symbol renderer.
Color
ComparisonPointsDecorator<D>
Decorates a point chart by drawing a shape connecting the domain and measure data bounds.
ConstCornerStrategy
Strategy for constant corner radius.
CornerStrategy
CylinderSymbolRenderer
Draws a cylindrical shape connecting two points.
DateTimeAxisSpec
Generic AxisSpec specialized for Timeseries charts.
DateTimeEndPointsTickProviderSpec
TickProviderSpec that sets up time ticks at the two end points of the axis range.
DateTimeExtents
DateTimeFactory
Interface for factory that creates DateTime and DateFormat.
DateTimeTickFormatter
A TickFormatter that formats date/time values based on minimum difference between subsequent ticks.
DateTimeTickFormatterSpec
DateTimeTickProviderSpec
DatumDetails<D>
Represents processed rendering details for a data point from a series.
DatumLegend<D>
Datum legend behavior for charts.
DayTickProviderSpec
TickProviderSpec that sets up time ticks with days increments only.
DomainA11yExploreBehavior<D>
Behavior that generates semantic nodes for each domain.
DomainHighlighter<D>
Chart behavior that monitors the specified SelectionModel and darkens the color for selected data.
DomainOutliner<D>
Chart behavior that monitors the specified SelectionModel and outlines the selected data.
EndPointsTimeAxisSpec
Default AxisSpec used for Timeseries charts.
FixedPixelOrdinalScaleSpec
OrdinalScaleSpec which allows setting bar width to be a fixed pixel size.
FixedPixelSpaceOrdinalScaleSpec
OrdinalScaleSpec which allows setting space between bars to be a fixed pixel size.
GestureListener
Listener to touch gestures.
Graph<N, L, D>
GraphicsFactory
Interface to native platform graphics functions.
GridlineRendererSpec<D>
ImmutableAxis<D>
ImmutableBarRendererElement<D>
ImmutableSeries<D>
InitialHintBehavior<D>
Adds initial hint behavior for CartesianChart.
InitialSelection<D>
Behavior that sets initial selection.
KeyboardDomainNavigator<D>
Enable keyboard navigation of the chart when focused using the directional keys.
LayoutConfig
Collection of configurations that apply to the LayoutManager.
LayoutView
A component that measures its size and accepts bounds to complete layout.
LayoutViewConfig
Configuration of a LayoutView.
LayoutViewPaintOrder
Standard layout paint orders for all internal components.
LayoutViewPositionOrder
Standard layout position orders for all internal components.
Legend<D>
Legend behavior for charts.
LegendCategory<D>
When the legend groups by category it will create additional legend entries that track styling and grouping on a per category basis.
LegendCellPadding
Stores legend cell padding, in percents or pixels.
LegendEntry<D>
Holder for the information used for a legend row.
LegendEntryBase
The most basic possible legend entry - just a display name and positioning.
LegendEntryGenerator<D>
A strategy for generating a list of LegendEntry based on the series drawn.
LegendState<D>
Stores legend data used by native legend content builder.
LifecycleListener<D>
LineAnnotationSegment<D>
Data for a chart line annotation.
LinearScale
NumericScale that lays out the domain linearly across the range.
LineChart
LinePointHighlighter<D>
Chart behavior that monitors the specified SelectionModel and renders a dot for selected data.
LineRenderer<D>
LineRendererConfig<D>
Configuration for a line renderer.
LineStyle
LineStyleSpec
LineSymbolRenderer
Line symbol renderer.
A link as defined by the two sets of points that determine the bezier curves of the link.
LinkChart<D>
LinkRendererConfig<D>
Configuration for a SankeyRenderer.
LocalDateTimeFactory
A local time DateTimeFactory.
LockSelection<D>
Chart behavior that listens to tap event trigges and locks the specified SelectionModel. This is used to prevent further updates to the selection model, until it is unlocked again.
MarginSpec
Specs that applies to one margin.
MaterialPalette
A canonical palette of colors from material.io.
MaterialStyle
MutableSelectionModel<D>
A SelectionModel that can be updated.
MutableSeries<D>
NoCornerStrategy
Strategy for no corner radius.
NoneRenderSpec<D>
Renders no ticks no labels, and claims no space in layout. However, it does render the axis line if asked to by the axis.
NullablePoint
A two-dimensional cartesian coordinate pair with potentially null coordinate values.
NumericAxis
NumericAxisSpec
AxisSpec specialized for numeric/continuous axes like the measure axis.
NumericCartesianChart
NumericEndPointsTickProviderSpec
TickProviderSpec that sets up numeric ticks at the two end points of the axis range.
NumericExtents
Represents the starting and ending extent of a dataset.
NumericScale
Scale used to convert numeric domain input units to output range units.
NumericTickFormatterSpec
NumericTickProviderSpec
OrdinalAxis
OrdinalAxisSpec
AxisSpec specialized for ordinal/non-continuous axes typically for bars.
OrdinalCartesianChart
OrdinalScaleSpec
OrdinalTickFormatterSpec
OrdinalTickProviderSpec
OrdinalViewport
Viewport to cover dataSize data points starting at startingDomain value.
PanAndZoomBehavior<D>
Adds domain axis panning and zooming support to the chart.
PanBehavior<D>
Adds domain axis panning support to a chart.
PercentAxisSpec
Convenience AxisSpec specialized for numeric percentage axes.
PercentInjector<D>
Chart behavior that can inject series or domain percentages into each datum.
Performance
PieChart<D>
PointRenderer<D>
PointRendererConfig<D>
Configuration for a line renderer.
PointRendererDecorator<D>
Decorates points after the points have already been painted.
PointRendererElement<D>
PointSymbolRenderer
Strategy for rendering a symbol centered around a point.
ProxyGestureListener
Listens to all gestures and proxies to child listeners.
RangeAnnotation<D>
Chart behavior that annotates domain ranges with a solid fill color.
RangeAnnotationSegment<D>
Data for a chart range annotation.
RangeOrdinalTickProviderSpec
TickProviderSpec that allows you to provide range ticks and normal ticks.
RangeTickRendererSpec<D>
Displays individual ticks and range ticks and with a shade for ranges. Sample ticks looks like:
RangeTickSpec<D>
Definition for a range tick.
RectangleRangeSymbolRenderer
Draws a rectangular shape connecting two points.
RectSymbolRenderer
Rectangle symbol renderer.
RendererAttributeKey<R>
RenderSpec<D>
RoundedRectSymbolRenderer
Rounded rectangular symbol with corners having radius.
RTLSpec
Defines the behavior of the chart if it is RTL.
SankeyChart<D>
SankeyGraph<N, L, D>
Directed acyclic graph with Sankey diagram related data.
SankeyRendererConfig<D>
Configuration for a SankeyRenderer.
ScaleSpec<D>
ScatterPlotChart
A scatter plot draws series data as a collection of points in a two dimensional Cartesian space, plotting two variables from each datum at a point represented by (domain, measure).
SelectionModel<D>
Holds the state of interaction or selection for the chart to coordinate between various event sources and things that wish to act upon the selection state (highlight, drill, etc).
SelectNearest<D>
Chart behavior that listens to the given eventTrigger and updates the specified SelectionModel. This is used to pair input events to behaviors that listen to selection changes.
Series<T, D>
SeriesDatum<D>
Stores datum and the series the datum originated.
SeriesDatumConfig<D>
Represents a series datum based on series id and datum index.
SeriesLegend<D>
Series legend behavior for charts.
SeriesRenderer<D>
A series renderer draws one or more series of data onto a chart canvas.
SeriesRendererConfig<D>
Interface for series renderer configuration.
SimpleOrdinalScaleSpec
SimpleTickFormatterBase<D>
Slider<D>
Chart behavior that adds a slider widget to a chart. When the slider is dropped after drag, it will report its domain position and nearest datum value. This behavior only supports charts that use continuous scales.
SliderStyle
Style configuration for a Slider behavior.
SlidingViewport<D>
Chart behavior that centers the viewport on the selected domain.
SmallTickRendererSpec<D>
SquarifiedTreeMapRenderer<D>
A treemap renderer that renders a squarified treemap.
StaticDateTimeTickProviderSpec
TickProviderSpec that allows you to specific the ticks to be used.
StaticNumericTickProviderSpec
TickProviderSpec that allows you to specific the ticks to be used.
StaticOrdinalTickProviderSpec
TickProviderSpec that allows you to specify the ticks to be used.
StyleFactory
SunburstArcLabelDecorator<D>
Renders labels for sunburst arc renderers. Configures label based on arc's position via innerRingArcLabelPosition, innerRingLeafArcLabelPosition, and outerRingArcLabelPosition. Currently label for non-leaf arcs in the inner ring may only be drawn inside until there's better collision detection for inner arcs' label versus the outer arcs.
SunburstArcRenderer<D>
ArcRenderer for the Sunburst chart using Tree based data.
SunburstArcRendererConfig<D>
Configuration for an ArcRenderer.
SunburstChart<D>
SunburstRingExpander<D>
Expands the initially displayed outer ring to show subset of data in one final ring.
SymbolAnnotationRenderer<D>
Series renderer which draws a row of symbols for each series below the drawArea but above the bottom axis.
SymbolAnnotationRendererConfig<D>
Configuration for SymbolAnnotationRenderer.
SymbolRenderer
Strategy for rendering a symbol bounded within a box.
TextElement
Interface for accessing text measurement and painter.
TextMeasurement
A measurement result for rendering text.
TextStyle
Paint properties of a text.
TextStyleSpec
Tick<D>
A labeled point on an axis.
TickDrawStrategy<D>
Strategy for drawing ticks and checking for collisions.
TickFormatter<D>
A strategy used for converting domain values of the ticks into Strings.
TickFormatterSpec<D>
TickProviderSpec<D>
TickSpec<D>
Definition for a tick.
TimeFormatterSpec
Formatters for a single level of the DateTimeTickFormatterSpec.
TimeRangeTickProviderImpl
TimeSeriesChart
Tree<T, D>
A tree structure that contains metadata of a rendering tree.
TreeMapChart<D>
TreeMapLabelDecorator<D>
Decorator that renders label for treemap renderer element.
TreeMapRendererConfig<D>
Configuration for a BaseTreeMapRenderer.
TreeNode<T>
TriangleSymbolRenderer
This SymbolRenderer renders an upward pointing equilateral triangle.
UTCDateTimeFactory
An UTC time DateTimeFactory.
ViewMargin
A configuration for margin (empty space) around a layout child view.
ViewMeasuredSizes
Size measurements of one component.

Enums

AnnotationLabelAnchor
Configures where to anchor the label.
AnnotationLabelDirection
Direction of the label text on the chart.
AnnotationLabelPosition
Configures where to place the label relative to the annotation.
ArcLabelPosition
Configures where to place the label relative to the arcs.
AxisDirection
Direction of the domain axis when the chart container is configured for RTL mode.
AxisOrientation
Orientation of an Axis.
BarGroupingType
Defines the way multiple series of bars are renderered per domain.
BarLabelAnchor
Configures where to anchor the label for labels drawn inside the bars.
BarLabelPlacement
Configures where to place the label relative to the axis.
BarLabelPosition
Configures where to place the label relative to the bars.
BarLabelVerticalPosition
Configures where to place labels vertically on horizontal bars.
BehaviorPosition
Position of a component within the chart layout.
BlendMode
Defines the blend modes to use for drawing on canvas.
ChartTitleDirection
Direction of the title text on the chart.
ExploreModeTrigger
The gesture to use for triggering explore mode.
FillPatternType
Defines the pattern for a color fill.
InsideJustification
Justification for components positioned BehaviorPosition.inside.
LayoutPosition
Position of a LayoutView.
LegendDefaultMeasure
Options for calculating what measures are shown when there is no selection.
LegendTapHandling
Options for behavior of tapping/clicking on entries in the legend.
LinePointHighlighterFollowLineType
Type of follow line(s) to draw.
LinkOrientation
Determines the orientation of a drawn link.
MaxWidthStrategy
The strategy to use if a TextElement exceeds the maxWidth.
OutsideJustification
Justification for components positioned outside BehaviorPosition.
PanningTickProviderMode
PercentInjectorTotalType
Describes the type of data total that will be calculated by PercentInjector.
RangeAnnotationAxisType
Axis type for an annotation.
SelectionMode
Mode for expanding the selection beyond just the nearest datum.
SelectionModelType
SelectionTrigger
SliderHandlePosition
Describes the vertical position of the slider handle on the slider.
SliderListenerDragState
Describes the current state of a slider change as a result of a drag event.
SunburstColorStrategy
Strategies for assinging color to the arcs if colorFn is not provided for Series.
TextDirection
TickLabelAnchor
TickLabelJustification
TreeMapTileType
Tiling algorithm, which is the way to divide a region into subregions of specified areas, in a treemap.

Constants

barGroupCountKey → const AttributeKey<int>
barGroupIndexKey → const AttributeKey<int>
barGroupWeightKey → const AttributeKey<double>
boundsLineRadiusPxFnKey → const AttributeKey<AccessorFn<double?>>
Defines an AccessorFn for the radius for data bounds lines (typically drawn by attaching a ComparisonPointsDecorator to the renderer.
boundsLineRadiusPxKey → const AttributeKey<double>
Defines a fixed radius for data bounds lines (typically drawn by attaching a ComparisonPointsDecorator to the renderer.
domainAxisKey → const AttributeKey<Axis<Object>>
measureAxisIdKey → const AttributeKey<String>
measureAxisKey → const AttributeKey<Axis<Object>>
pointSymbolRendererFnKey → const AttributeKey<AccessorFn<String>>
pointSymbolRendererIdKey → const AttributeKey<String>
rendererIdKey → const AttributeKey<String>
Unique identifier used to associate custom series renderers on a chart with one or more series of data.
rendererKey → const AttributeKey<SeriesRenderer<Object>>

Typedefs

DomainFormatter<D> = String Function(D domain)
MeasureFormatter = String Function(num? measure)
PanningCompletedCallback = void Function()
Callback for when panning is completed.
SelectionModelListener<D> = void Function(SelectionModel<D> model)
Callback for SelectionModel. It is triggered when the selection state changes.
SliderListenerCallback<D> = void Function(Point<int> point, D? domain, String roleId, SliderListenerDragState dragState)
Callback function for Slider drag events.
TypedAccessorFn<T, R> = R Function(T datum, int? index)
VocalizationCallback<D> = String Function(List<SeriesDatum<D>> seriesDatums)
Returns a string for a11y vocalization from a list of series datum.