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 actualPointIndex(segPointIndex);
  }
  return segPointIndex;
}