RangeAnnotation<D> class

Chart behavior that annotations domain ranges with a solid fill color.

The annotations will be drawn underneath series data and chart axes.

This is typically used for line charts to call out sections of the data range.

Inheritance
Annotations

Constructors

RangeAnnotation(List<AnnotationSegment<Object>> annotations, {Color? defaultColor, AnnotationLabelAnchor? defaultLabelAnchor, AnnotationLabelDirection? defaultLabelDirection, AnnotationLabelPosition? defaultLabelPosition, TextStyleSpec? defaultLabelStyleSpec, bool? extendAxis, int? labelPadding, int? layoutPaintOrder})

Properties

annotations List<AnnotationSegment<Object>>
List of annotations to render on the chart.
final
defaultColor Color?
Default color for annotations.
final
defaultLabelAnchor AnnotationLabelAnchor?
Configures where to anchor annotation label text.
final
defaultLabelDirection AnnotationLabelDirection?
Direction of label text on the annotations.
final
defaultLabelPosition AnnotationLabelPosition?
Configures where to place labels relative to the annotation.
final
defaultLabelStyleSpec TextStyleSpec?
Configures the style of label text.
final
desiredGestures Set<GestureType>
final
extendAxis bool?
Whether or not the range of the axis should be extended to include the annotation start and end values.
final
hashCode int
The hash code for this object.
no setteroverride
labelPadding int?
Space before and after label text.
final
layoutPaintOrder int?
Configures the order in which the behavior should be painted. This value should be relative to LayoutPaintViewOrder.rangeAnnotation. (e.g. LayoutViewPaintOrder.rangeAnnotation + 1)
final
role String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCommonBehavior() → RangeAnnotation<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
updateCommonBehavior(ChartBehavior commonBehavior) → void
override

Operators

operator ==(Object other) bool
The equality operator.
override