TrackballBehavior class

Customizes the trackball.

Trackball feature displays the tooltip for the data points that are closer to the point where you touch on the chart area. This feature can be enabled using enable property of TrackballBehavior.

Provides options to customize the activationMode, tooltipDisplayMode, lineType and tooltipSettings.

Constructors

TrackballBehavior({ActivationMode activationMode, TrackballLineType lineType, TrackballDisplayMode tooltipDisplayMode, ChartAlignment tooltipAlignment, InteractiveTooltip tooltipSettings, TrackballMarkerSettings markerSettings, List<double> lineDashArray, bool enable: false, Color lineColor, double lineWidth: 1, bool shouldAlwaysShow: false, double hideDelay})
Creating an argument constructor of TrackballBehavior class.

Properties

activationMode ActivationMode
Gesture for activating the trackball. [...]
final
enable bool
Toggles the visibility of the trackball. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
hideDelay double
Giving disappear delay for trackball [...]
final
lineColor Color
Color of the track line. [...]
final
lineDashArray List<double>
Dashes of the track line. [...]
final
lineType TrackballLineType
Type of trackball line. By default, vertical line will be displayed. [...]
final
lineWidth double
Width of the track line. [...]
final
markerSettings TrackballMarkerSettings
Options to customize the markers that are displayed when trackball is enabled. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shouldAlwaysShow bool
Shows or hides the trackball. [...]
final
tooltipAlignment ChartAlignment
Alignment of the trackball tooltip. [...]
final
tooltipDisplayMode TrackballDisplayMode
Display mode of tooltip. [...]
final
tooltipSettings InteractiveTooltip
Customizes the trackball tooltip. [...]
read / write

Methods

hide() → void
Hides the trackball if it is displayed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
show(dynamic x, double y, [String coordinateUnit]) → void
Displays the trackball at the specified x and y-positions. [...]
showByIndex(int pointIndex) → void
Displays the trackball at the specified point index. [...]
toString() String
Returns a string representation of this object.
inherited

Operators

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