SvgAxis class

SvgAxis helps draw chart axes based on a given scale.

Constructors

SvgAxis({String orientation: ORIENTATION_BOTTOM, num innerTickSize: 6, num outerTickSize: 6, num tickPadding: 3, List tickValues, FormatFunction tickFormat, Scale<Comparable, dynamic> scale })

Properties

innerTickSize num
Size of all inner ticks
final
orientation String
Orientation of the axis. Defaults to ORIENTATION_BOTTOM.
final
outerTickSize num
Size of the outer two ticks
final
scale Scale<Comparable, dynamic>
Scale used on this axis
final
tickFormat FormatFunction
read-only
tickPadding num
Padding on the ticks
final
tickValues Iterable
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

create(Element element, SelectionScope scope, { SvgAxisTicks axisTicksBuilder, bool isRTL: false }) → void
Create an axis on element.
draw(Selection g, { SvgAxisTicks axisTicksBuilder, bool isRTL: false }) → void
Draw an axis on each non-null element in selection
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited