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