Index: packages/charted/lib/core/scales/log_scale.dart |
diff --git a/packages/charted/lib/core/scales/log_scale.dart b/packages/charted/lib/core/scales/log_scale.dart |
index 20fc3a4fc29d212eeb7db417fe5e6e079ae255ad..ae9d5b049530fe7e1a44a11b158a2c913a62f2c0 100644 |
--- a/packages/charted/lib/core/scales/log_scale.dart |
+++ b/packages/charted/lib/core/scales/log_scale.dart |
@@ -21,9 +21,7 @@ class LogScale implements Scale { |
static const defaultBase = 10; |
static const defaultDomain = const [1, 10]; |
static final negativeNumbersRoundFunctionsPair = |
- new RoundingFunctions( |
- (x) => -((-x).floor()), |
- (x) => -((-x).ceil())); |
+ new RoundingFunctions((x) => -((-x).floor()), (x) => -((-x).ceil())); |
final LinearScale _linear; |
@@ -43,8 +41,9 @@ class LogScale implements Scale { |
_nice = source._nice, |
_ticksCount = source._ticksCount; |
- num _log(x) => (_positive ? |
- math.log(x < 0 ? 0 : x) : -math.log(x > 0 ? 0 : -x)) / math.log(base); |
+ num _log(x) => |
+ (_positive ? math.log(x < 0 ? 0 : x) : -math.log(x > 0 ? 0 : -x)) / |
+ math.log(base); |
num _pow(x) => _positive ? math.pow(base, x) : -math.pow(base, -x); |