effectiveDataPointCount static method

int effectiveDataPointCount(
  1. List<Series> series, {
  2. int? startIndex,
  3. int? endIndex,
})

Implementation

static int effectiveDataPointCount(
  List<Series> series, {
  int? startIndex,
  int? endIndex,
}) {
  if (startIndex == null && endIndex == null) {
    return totalDataPoints(series);
  }

  var total = 0;
  for (final s in series) {
    total += _effectiveDataPointCountForLength(
      s.data?.length ?? 0,
      startIndex: startIndex,
      endIndex: endIndex,
    );
  }
  return total;
}