QuantileScale<R> constructor

QuantileScale<R>({
  1. List<double>? domain,
  2. required List<R> range,
})

Creates a quantile scale with the given parameters.

Implementation

QuantileScale({
  List<double>? domain,
  required List<R> range,
}) {
  _range = List.from(range);
  if (domain != null) {
    this.domain = domain;
  }
}