ScaleRadial class final Linear scales
Radial scales are a variant of linear scales where the range is internally squared so that an input value corresponds linearly to the squared output value.
These scales are useful when you want the input value to correspond to the
area of a graphical mark and the mark is specified by radius, as in a radial
bar chart. Radial scales do not support ScaleLinear.interpolate
.
Constructors
-
ScaleRadial.new({List<
num> domain = const [0, 1], List<num> range = const [0, 1]}) -
Constructs a new radial scale with the specified
domain
andrange
.
Properties
- clamp ↔ bool
-
getter/setter pair
-
domain
↔ List<
num> -
The scale's domain that specifies the input values.
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
range
↔ List<
num> -
The scale's range that specifies the output values.
getter/setter pairoverride
- round ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unknown ↔ num?
-
getter/setter pair
Methods
-
call(
num? x) → num? -
Given a value from the domain, returns the corresponding value from the
range.
override
-
copy(
) → Scale< num, num> -
Returns an exact copy of this scale.
override
-
invert(
dynamic y) → dynamic -
nice(
[num count = 10]) → void -
Extends the domain so that it starts and ends on nice round values.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rangeRound(
List< num> range) → void -
tickFormat(
[num count = 10, String? specifier]) → String Function(num) -
Returns a
number format
function suitable for displaying a tick value, automatically computing the
appropriate precision based on the fixed interval between tick values.
inherited
-
ticks(
[num count = 10]) → List< num> -
Returns approximately count representative values from the scale’s
domain.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited