tooltipAlignment property
Alignment of the trackball tooltip.
The trackball tooltip can be aligned at the top, bottom, and center position of the chart.
Note: This is applicable only when the tooltipDisplay mode is set to groupAllPoints.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
trackballBehavior: TrackballBehavior(
enable: true,
tooltipAlignment: ChartAlignment.far,
tooltipDisplayMode: TrackballDisplayMode.groupAllPoints,
),
));
}
Implementation
final ChartAlignment tooltipAlignment;