domain property
The scale's domain that specifies the input values.
Implementation
@override
get domain => [_x0, _x1, _x2];
Implementation
@override
set domain(domain) {
_x0 = domain[0];
_x1 = domain[1];
_x2 = domain[2];
_t0 = _transform(_x0);
_t1 = _transform(_x1);
_t2 = _transform(_x2);
_k10 = _t0 == _t1 ? 0 : 0.5 / (_t1 - _t0);
_k21 = _t1 == _t2 ? 0 : 0.5 / (_t2 - _t1);
_s = _t1 < _t0 ? -1 : 1;
}