trackballInfo method

  1. @override
TrackballInfo? trackballInfo(
  1. Offset position
)
override

Implementation

@override
TrackballInfo? trackballInfo(Offset position) {
  final CartesianChartPoint<D> chartPoint = _chartPoint();
  return ChartTrackballInfo<T, D>(
    position: points[0],
    point: chartPoint,
    series: series,
    pointIndex: currentSegmentIndex,
    seriesIndex: series.index,
    lowYPos: series.pointToPixelY(xValue, low),
    highYPos: series.pointToPixelY(xValue, high),
    highXPos: series.pointToPixelX(xValue, high),
  );
}