ScatterTouchTooltipData class

Holds representation data for showing tooltip popup on top of spots.

Constructors

ScatterTouchTooltipData({BorderRadius? tooltipBorderRadius, EdgeInsets? tooltipPadding, FLHorizontalAlignment? tooltipHorizontalAlignment, double? tooltipHorizontalOffset, double? maxContentWidth, GetScatterTooltipItems? getTooltipItems, bool? fitInsideHorizontally, bool? fitInsideVertically, double? rotateAngle, BorderSide? tooltipBorder, GetScatterTooltipColor? getTooltipColor})
if ScatterTouchData.handleBuiltInTouches is true, ScatterChart shows a tooltip popup on top of spots automatically when touch happens, otherwise you can show it manually using ScatterChartData.showingTooltipIndicators. Tooltip shows on top of rods, with getTooltipColor as a background color. You can set the corner radius using tooltipBorderRadius, If you want to have a padding inside the tooltip, fill tooltipPadding. Content of the tooltip will provide using getTooltipItems callback, you can override it and pass your custom data to show in the tooltip. You can restrict the tooltip's width using maxContentWidth. Sometimes, ScatterChart shows the tooltip outside of the chart, you can set fitInsideHorizontally true to force it to shift inside the chart horizontally, also you can set fitInsideVertically true to force it to shift inside the chart vertically.
const

Properties

fitInsideHorizontally → bool
Forces the tooltip to shift horizontally inside the chart, if overflow happens.
final
fitInsideVertically → bool
Forces the tooltip to shift vertically inside the chart, if overflow happens.
final
getTooltipColor → GetScatterTooltipColor
Retrieves the background color of the tooltip for each touched spot.
final
getTooltipItems → GetScatterTooltipItems
Retrieves data for showing content inside the tooltip.
final
hashCode → int
The hash code for this object.
no setterinherited
maxContentWidth → double
Maximum width of the tooltip's content, a text row which is wider than this breaks into a new line.
final
props → List<Object?>
Used for equality check, see Equatable.
no setter
rotateAngle → double
Controls the rotation of the tooltip.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
tooltipBorder → BorderSide
Border of the tooltip bubble.
final
tooltipBorderRadius → BorderRadius
Sets a rounded radius for the tooltip.
no setter
tooltipHorizontalAlignment → FLHorizontalAlignment
Controls showing tooltip on left side, right side or center aligned with spot.
final
tooltipHorizontalOffset → double
Applies horizontal offset for showing tooltip.
final
tooltipPadding → EdgeInsets
Applies a padding for showing contents inside the tooltip.
final

Methods

copyWith({EdgeInsets? tooltipPadding, FLHorizontalAlignment? tooltipHorizontalAlignment, double? tooltipHorizontalOffset, double? maxContentWidth, GetScatterTooltipItems? getTooltipItems, bool? fitInsideHorizontally, bool? fitInsideVertically, double? rotateAngle, BorderSide? tooltipBorder, GetScatterTooltipColor? getTooltipColor}) → ScatterTouchTooltipData
Copies current ScatterTouchTooltipData to a new ScatterTouchTooltipData, and replaces provided values.
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.
inherited