CrosshairGuide class

The specification of a crosshair

A corsshair indicates the position of the pointer or the selected point. If no point is selected, it will not occur.

Constructors

CrosshairGuide.new({Set<String>? selections, List<PaintStyle?>? styles, List<LabelStyle?>? labelStyles, List<PaintStyle?>? labelBackgroundStyles, List<double>? labelPaddings, List<bool>? showLabel, List<String? Function(dynamic)?>? formatter, List<bool>? followPointer, int? layer, int? mark, List<bool>? expandEdges})
Creates a crosshair.

Properties

expandEdges List<bool>?
Indicates whether the crosshair should expand in each of the four directions (left, top, right, bottom).
getter/setter pair
followPointer List<bool>?
Whether the position for each dimension follows the pointer or stick to selected points.
getter/setter pair
formatter List<String? Function(dynamic)?>?
Convert the value to a String on the chart.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
labelBackgroundStyles List<PaintStyle?>?
The labelBackground styles of crosshair lines for each dimension.
getter/setter pair
labelPaddings List<double>?
The padding between label and axis.
getter/setter pair
labelStyles List<LabelStyle?>?
The label styles of crosshair lines for each dimension.
getter/setter pair
layer int?
The layer of this crosshair.
getter/setter pair
mark int?
Which mark series this crosshair reacts to.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selections Set<String>?
The selections this crosshair reacts to.
getter/setter pair
showLabel List<bool>?
Whether to show label on axis.
getter/setter pair
styles List<PaintStyle?>?
The stroke styles of crosshair lines for each dimension.
getter/setter pair

Methods

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