dataPointIndex method

  1. @override
int dataPointIndex(
  1. Offset position,
  2. ChartSegment segment
)
inherited

Implementation

@override
int dataPointIndex(Offset position, ChartSegment segment) {
  final int segPointIndex = segmentPointIndex(position, segment);
  if (segPointIndex != -1) {
    return _dataPointIndex(segPointIndex);
  }
  return segPointIndex;
}