trackballInfo method
TrackballInfo?
trackballInfo(
- Offset position
)
override
Implementation
@override
TrackballInfo? trackballInfo(Offset position) {
final num left = x + series.sbsInfo.minimum;
final num right = x + series.sbsInfo.maximum;
final CartesianChartPoint<D> chartPoint = _chartPoint();
return ChartTrackballInfo<T, D>(
position: points[0],
point: chartPoint,
series: series,
pointIndex: currentSegmentIndex,
seriesIndex: series.index,
lowYPos: series.pointToPixelY((right + left) / 2, low),
highYPos: series.pointToPixelY((right + left) / 2, high),
highXPos: series.pointToPixelX((right + left) / 2, high),
);
}