TooltipBehavior class

Customizes the tooltip.

This class provides options for customizing the properties of the tooltip.

Constructors

TooltipBehavior({TextStyle? textStyle, ActivationMode? activationMode, int? animationDuration, bool? enable, double? opacity, Color? borderColor, double? borderWidth, double? duration, bool? shouldAlwaysShow, double? elevation, bool? canShowMarker, ChartAlignment? textAlignment, int? decimalPlaces, TooltipPosition? tooltipPosition, bool? shared, Color? color, String? header, String? format, ChartWidgetBuilder? builder, Color? shadowColor})
Creating an argument constructor of TooltipBehavior class.

Properties

activationMode ActivationMode
Gesture for activating the tooltip.
final
animationDuration int
Duration for animating the tooltip.
final
borderColor Color
Border color of the tooltip.
final
borderWidth double
Border width of the tooltip.
final
builder ChartWidgetBuilder?
Builder of the tooltip.
final
canShowMarker bool
Toggles the visibility of the marker in the tooltip.
final
color Color?
Color of the tooltip.
final
decimalPlaces int
Specifies the number decimals to be displayed in tooltip text.
final
duration double
Duration for displaying the tooltip.
final
elevation double
Elevation of the tooltip.
final
enable bool
Toggles the visibility of the tooltip.
final
format String?
Formats the tooltip text.
final
hashCode int
The hash code for this object.
no setteroverride
Header of the tooltip. By default, the series name will be displayed in the header.
final
opacity double
Opacity of the tooltip.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
Color of the tooltip shadow.
final
shared bool
Share the tooltip with same index points.
final
shouldAlwaysShow bool
Shows or hides the tooltip.
final
textAlignment ChartAlignment
Alignment of the text in the tooltip.
final
textStyle TextStyle
Customizes the tooltip text.
final
tooltipPosition TooltipPosition
Show tooltip at tapped position.
final

Methods

hide() → void
Hides the tooltip if it is displayed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show(dynamic x, double y, [String? xAxisName, String? yAxisName]) → void
Displays the tooltip at the specified x and y-values.
showByIndex(int seriesIndex, int pointIndex) → void
Displays the tooltip at the specified series and point index.
showByPixel(double x, double y) → void
Displays the tooltip at the specified x and y-positions.
toString() String
A string representation of this object.
inherited

Operators

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