LinePointHighlighter<D> class

Chart behavior that monitors the specified SelectionModel and renders a dot for selected data.

Vertical or horizontal follow lines can optionally be drawn underneath the rendered dots. Follow lines will be drawn in the combined area of the chart draw area, and the draw area for any layout components that provide a series draw area (e.g. SymbolAnnotationRenderer).

This is typically used for line charts to highlight segments.

It is used in combination with SelectNearest to update the selection model and expand selection out to the domain value.

Implemented types

Constructors

LinePointHighlighter({SelectionModelType? selectionModelType, double? defaultRadiusPx, double? radiusPaddingPx, LinePointHighlighterFollowLineType? showHorizontalFollowLine, LinePointHighlighterFollowLineType? showVerticalFollowLine, List<int>? dashPattern, bool? drawFollowLinesAcrossChart, SymbolRenderer? symbolRenderer})

Properties

dashPattern List<int>?
The dash pattern to be used for drawing the line.
final
defaultRadiusPx double
Default radius of the dots if the series has no radius mapping function.
final
drawFollowLinesAcrossChart bool
Whether or not follow lines should be drawn across the entire chart draw area, or just from the axis to the point.
final
hashCode int
The hash code for this object.
no setterinherited
radiusPaddingPx double
Additional radius value added to the radius of the selected data.
final
role String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionModelType SelectionModelType
final
showHorizontalFollowLine LinePointHighlighterFollowLineType
Whether or not to draw horizontal follow lines through the selected points.
final
showVerticalFollowLine LinePointHighlighterFollowLineType
Whether or not to draw vertical follow lines through the selected points.
final
symbolRenderer SymbolRenderer
Renderer used to draw the highlighted points.
final

Methods

attachTo(BaseChart<D> chart) → void
Injects the behavior into a chart.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeFrom(BaseChart<D> chart) → void
Removes the behavior from a chart.
override
toString() String
A string representation of this object.
inherited

Operators

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