nice method

  1. @override
SymlogScale nice([
  1. int count = 10
])
override

Returns nicely rounded domain values.

Implementation

@override
SymlogScale nice([int count = 10]) {
  final step = tickStep(_domain.first, _domain.last, count);
  if (step > 0) {
    _domain[0] = (_domain[0] / step).floor() * step;
    _domain[_domain.length - 1] = (_domain.last / step).ceil() * step;
  }
  return this;
}