ChartLimits class
How far a scale may be panned and zoomed.
Subclass and override bounds for limits that depend on app state (for example the part of a domain a loader is allowed to reach).
Constructors
- ChartLimits({double? min, double? max, double? minSpan, double? maxSpan})
-
Explicit limits. Null sides are unbounded.
const
- ChartLimits.data({double padding = 0, double? minSpan, double? maxSpan})
-
The window may not leave the data extent, grown by
padding(a fraction of the extent) on both sides.const
Properties
- dataPadding → double?
-
When non-null, bounds follow the data extent with this padding fraction.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- max → double?
-
Upper bound of the pannable domain, in data units.
final
- maxSpan → double?
-
Largest window width the user can zoom to, in scale-space units.
final
- min → double?
-
Lower bound of the pannable domain, in data units.
final
- minSpan → double?
-
Smallest window width the user can zoom to, in scale-space units.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bounds(
ChartRangeContext context) → (double?, double?) - The pannable domain in data units; null sides are unbounded.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override