base property

num get base
inherited

The scale's base.

final x = ScaleLog(
  domain: [1, 1024],
  range: [0, 960],
  interpolate: interpolateNumber,
)..base = 2;

Defaults to 10. Note that due to the nature of a logarithmic transform, the base does not affect the encoding of the scale; it only affects which ticks are chosen.

Implementation

num get base => _base;
set base (num base)
inherited

Implementation

set base(num base) {
  _base = base;
  _rescale();
}