showCrosshairLabel property
final
Whether to show a crosshair Y-value label positioned over this axis.
When enabled in multi-axis normalized mode, displays the actual (denormalized) Y-value at the crosshair's horizontal position, drawn with a semi-transparent background over this specific Y-axis.
This is useful in multi-axis charts where the default crosshair Y-label shows normalized percentages which are not meaningful to users.
Example:
YAxisConfig(
id: 'power_axis',
position: YAxisPosition.left,
showCrosshairLabel: true, // Shows actual power value on crosshair
)
Defaults to false.
Implementation
final bool showCrosshairLabel;