OrdinalAxis class

Inheritance

Constructors

OrdinalAxis({TickDrawStrategy<String>? tickDrawStrategy, TickProvider<String>? tickProvider, TickFormatter<String>? tickFormatter})

Properties

autoViewport bool
Configures whether the viewport should be reset back to default values when the domain is reset.
getter/setter pairinherited
axisOrientation ↔ AxisOrientation?
AxisOrientation for this axis.
getter/setter pairinherited
componentBounds Rectangle<int>?
Bounding box for drawing this component.
no setterinherited
context ChartContext?
getter/setter pairinherited
drawAxisLine bool
no setterinherited
forceDrawAxisLine bool?
If the axis line should always be drawn.
getter/setter pairinherited
graphicsFactory GraphicsFactory?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
hasTickCollision bool
If true, a collision has occurred between ticks on this axis.
getter/setter pairinherited
hasValidBarChartRangeBandConfig bool
For bars to be renderer properly the RangeBandConfig must be set and type must not be RangeBandType.none.
no setterinherited
isSeriesRenderer bool
Whether or not this component is a series renderer that draws series data.
no setterinherited
isVertical bool
The axis is rendered vertically.
no setterinherited
layoutConfig → LayoutViewConfig
Layout params for this component.
no setterinherited
layoutPaintOrder int
Order for chart layout painting.
getter/setter pairinherited
lockAxis bool
If true, do not allow axis to be modified.
getter/setter pairinherited
mutableScale → MutableScale<String>?
no setterinherited
range → ScaleOutputExtent?
Output range for this axis.
no setterinherited
rangeBand double
Rangeband for this axis.
no setterinherited
reverseOutputRange bool
If the output range should be reversed.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale ↔ MutableScale<String>?
Scale of this axis.
getter/setter pairinherited
stepSize double
Step size for this axis.
no setterinherited
tickDrawStrategy ↔ TickDrawStrategy<String>?
TickDrawStrategy for this axis.
getter/setter pairinherited
tickFormatter TickFormatter<String>?
TickFormatter for this axis.
getter/setter pairinherited
tickProvider ↔ TickProvider<String>?
TickProvider for this axis.
getter/setter pairinherited
viewportScalingFactor double
Returns the current viewport scale.
no setterinherited
viewportTranslatePx double
Returns the current pixel viewport offset
no setterinherited

Methods

addDomainValue(String domain) → void
inherited
compareDomainValueToViewport(String domain) int
Compare domain to the viewport.
inherited
getDomain(double location) String
inherited
getLocation(String? domain) double?
Get location for the domain.
inherited
layout(Rectangle<int> componentBounds, Rectangle<int> drawAreaBounds) → void
Layout this component.
override
measure(int maxWidth, int maxHeight) → ViewMeasuredSizes
Measure and return the size of this component.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(ChartCanvas canvas, double animationPercent) → void
Draw this component on the canvas.
inherited
resetDefaultConfiguration() → void
inherited
resetDomains() → void
inherited
setOutputRange(int start, int end) → void
inherited
setRangeBandConfig(RangeBandConfig rangeBandConfig) → void
inherited
setScaleViewport(OrdinalViewport viewport) → void
setViewportSettings(double viewportScale, double viewportTranslatePx, {int? drawAreaWidth, int? drawAreaHeight}) → void
Configures the zoom and translate.
inherited
toString() String
A string representation of this object.
inherited
updateTicks() → void
Request update ticks from tick provider and update the painted ticks.
inherited

Operators

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