ScaleSymlog<Y> constructor
ScaleSymlog<Y> ({})
Constructs a new continuous scale with the specified domain
, range
and
interpolate
, the constant
1, and clamp
ing 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);
}