LogScale class

A logarithmic scale for data that spans multiple orders of magnitude.

Logarithmic scales are useful for visualizing data with exponential growth.

Inheritance

Constructors

LogScale({required (double, double) domain, required (double, double) range, double base = 10, bool clamp = false})

Properties

base double
The logarithm base (default: 10).
final
clamp bool
Whether to clamp output values to the range.
final
domain → (double, double)
The input domain (data space) as (min, max).
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isInverted bool
Whether this scale is inverted (range end < range start).
no setterinherited
range → (double, double)
The output range (screen space) as (start, end).
no setteroverride
rangeExtent double
The length of the range.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWithDomain(double min, double max) Scale<double>
Creates a copy of this scale with a new domain.
override
copyWithRange(double start, double end) Scale<double>
Creates a copy of this scale with a new range.
override
invert(double value) double
Inverse mapping from range value to domain value.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(double value) double
Maps a domain value to a range value.
override
tickFormatter({int? precision}) String Function(double)
Returns a tick formatter function for this scale.
override
ticks({int? count}) List<double>
Returns nicely-rounded tick values for this scale.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited