invertExtent method
Returns the extent of values in the domain that map to the given range value.
Implementation
(double, double) invertExtent(R value) {
final i = _range.indexOf(value);
if (i < 0) return (double.nan, double.nan);
final n = _range.length;
final d0 = _domain[0];
final d1 = _domain[1];
final step = (d1 - d0) / n;
return (d0 + i * step, d0 + (i + 1) * step);
}