trackballInfo method
TrackballInfo?
trackballInfo(
- Offset position
)
override
Implementation
@override
TrackballInfo? trackballInfo(Offset position) {
if (segmentRect != null) {
final num left = x + series.sbsInfo.minimum;
final num right = x + series.sbsInfo.maximum;
final CartesianChartPoint<D> chartPoint = _chartPoint();
return ChartTrackballInfo<T, D>(
position: Offset(segmentRect!.center.dx,
series.pointToPixelY((left + right) / 2, maximum)),
point: chartPoint,
series: series,
pointIndex: currentSegmentIndex,
seriesIndex: series.index,
maxYPos: series.pointToPixelY((left + right) / 2, chartPoint.maximum!),
);
}
return null;
}