ScaleSymlog<Y> constructor

ScaleSymlog<Y>({
  1. List<num> domain = const [0, 1],
  2. required List<Y> range,
  3. required Interpolate<Y> interpolate,
})

Constructs a new continuous scale with the specified domain, range and interpolate, the constant 1, and clamping disabled.

final x = ScaleSymlog(
  domain: [0, 100],
  range: [0, 960],
  interpolate: interpolateNumer
);

If domain is not specified, it defaults to [0, 1].

ScaleLinear(
  range: ["red", "blue"],
  interpolate: interpolateRgb,
); // default domain of [0, 1]

Implementation

ScaleSymlog(
    {super.domain = const [0, 1],
    required super.range,
    required super.interpolate}) {
  initSymlogish();
  numberize(identity, identity);
}