Dart Documentationorson_chartsNumberAxis3D

NumberAxis3D class

A numerical axis that can be used for any axis in an XYZPlot, and for the value axis in a CategoryPlot3D.

Extends

AbstractAxis3D > NumberAxis3D

Implements

ValueAxis3D

Constructors

new NumberAxis3D(String label) #

Creates a new axis with the specified label.

new NumberAxis3D.withRange(String label, Range range) #

Creates a new axis with the specified label and range.

Properties

bool get autoAdjustRange #

A flag that controls whether the axis range is updated automatically to match the range of data values.

void set autoAdjustRange(bool autoAdjust) #

Sets the flag that controls whether the axis range is updated automatically to match the range of data values, and sends an Axis3DChangeEvent to all registered listeners.

bool autoRangeIncludesZero #

bool autoRangeStickyZero #

Range defaultAutoRange #

String get label #

inherited from AbstractAxis3D

Returns the label for the axis.

void set label(String label) #

inherited from AbstractAxis3D

Sets the label for the axis.

Color get labelColor #

inherited from AbstractAxis3D

Returns the color used for the axis label. The default value is [DEFAULT_LABEL_COLOR].

void set labelColor(Color color) #

inherited from AbstractAxis3D

Sets the color for the axis label and sends an Axis3DChangeEvent to all registered listeners.

Font get labelFont #

inherited from AbstractAxis3D

Returns the font used for the axis label. The default value is [DEFAULT_LABEL_FONT].

void set labelFont(Font font) #

inherited from AbstractAxis3D

Sets the font used for the label and sends an Axis3DChangeEvent to all registered listeners.

Color get lineColor #

inherited from AbstractAxis3D

Returns the color used to draw the axis line. The default value is [DEFAULT_LINE_COLOR].

void set lineColor(Color color) #

inherited from AbstractAxis3D

Sets the color used to draw the axis line and sends an Axis3DChangeEvent to all registered listeners.

Stroke get lineStroke #

inherited from AbstractAxis3D

Returns the stroke used to draw the axis line. The default value is [DEFAULT_LINE_STROKE].

void set lineStroke(Stroke stroke) #

inherited from AbstractAxis3D

Sets the stroke used to draw the axis line and sends an Axis3DChangeEvent to all registered listeners.

num get lowerMargin #

inherited from AbstractAxis3D

Returns the lower margin for the axis. The default value is 0.05 (five percent).

void set lowerMargin(num margin) #

inherited from AbstractAxis3D

Sets the lower margin for the axis and sends an Axis3DChangeEvent to all registered listeners.

Range get range #

inherited from AbstractAxis3D

Returns the axis range.

void set range(Range range) #

Sets the range for the axis, sets the autoAdjustRange flag to false, and sends an Axis3DChangeEvent to all registered listeners.

Color get tickLabelColor #

inherited from AbstractAxis3D

Returns the color used for the tick labels.

void set tickLabelColor(Color color) #

inherited from AbstractAxis3D

Sets the color used for the tick labels and sends an Axis3DChangeEvent to all registered listeners.

num get tickLabelFactor #

Returns the tick label factor. The default value is 1.4.

void set tickLabelFactor(num factor) #

Sets the tick label factor and sends an Axis3DChangeEvent to all registered listeners.

Font get tickLabelFont #

inherited from AbstractAxis3D

Returns the font used to display the tick labels. The default value is [DEFAULT_TICK_LABEL_FONT].

void set tickLabelFont(Font font) #

inherited from AbstractAxis3D

Sets the font used to display the tick labels and sends an Axis3DChangeEvent to all registered listeners.

NumberFormat tickLabelFormatter #

num get tickLabelOffset #

inherited from AbstractAxis3D

Returns the offset between the end of the tick marks and the anchor point for the tick labels. The default value is 5.0.

void set tickLabelOffset(num offset) #

inherited from AbstractAxis3D

Sets the offset between the end of the tick marks and the anchor point for the tick labels, then sends an Axis3DChangeEvent to all registered listeners.

bool get tickLabelsVisible #

inherited from AbstractAxis3D

Returns the flag that controls whether or not the tick labels are displayed.

void set tickLabelsVisible(bool visible) #

inherited from AbstractAxis3D

Sets the flag that controls whether or not the tick labels are visible and sends an Axis3DChangeEvent to all registered listeners.

Color get tickMarkColor #

inherited from AbstractAxis3D

Returns the color used to draw tick marks.

void set tickMarkColor(Color color) #

inherited from AbstractAxis3D

Sets the color used to draw tick marks on the axis and sends an Axis3DChangeEvent to all registered listeners.

num get tickMarkLength #

inherited from AbstractAxis3D

Returns the length of the tick marks. The default value is 3.0.

void set tickMarkLength(num length) #

inherited from AbstractAxis3D

Sets the tick mark length and sends an Axis3DChangeEvent to all registered listeners.

Stroke get tickMarkStroke #

inherited from AbstractAxis3D

Returns the stroke used to draw tick marks.

void set tickMarkStroke(Stroke stroke) #

inherited from AbstractAxis3D

Sets the stroke used to draw tick marks on the axis and sends an Axis3DChangeEvent to all registered listeners.

TickSelector tickSelector #

num tickSize #

num get upperMargin #

inherited from AbstractAxis3D

Returns the upper margin for the axis. The default value is 0.05 (five percent).

void set upperMargin(num margin) #

inherited from AbstractAxis3D

Sets the upper margin for the axis and sends an Axis3DChangeEvent to all registered listeners.

bool get visible #

inherited from AbstractAxis3D

Returns true if the axis is to be displayed on the chart, and false otherwise.

void set visible(bool visible) #

inherited from AbstractAxis3D

Sets the flag that controls the visibility of the axis and sends an AxisChangeEvent to all registered listeners.

Methods

void addChangeListener(Axis3DChangeListener listener) #

inherited from AbstractAxis3D

Registers a listener to receive notification of changes to the axis.

Range adjustedDataRange(Range range) #

void configureAsValueAxis(CategoryPlot3D plot) #

Configures the axis for use as the value axis for the specified plot.

void configureAsXAxis(XYZPlot plot) #

Configures the axis for use as the x-axis with the specified plot.

docs inherited from ValueAxis3D

void configureAsYAxis(XYZPlot plot) #

Configures the axis for use as the y-axis with the specified plot.

docs inherited from ValueAxis3D

void configureAsZAxis(XYZPlot plot) #

Configures the axis for use as the z-axis with the specified plot.

docs inherited from ValueAxis3D

void draw(CanvasRenderingContext2D context, Point pt0, Point pt1, Point opposingPt, bool labels, List<TickData> tickData) #

Draws the axis on a canvas between the startPt and the endPt. If the labels flag is set, then the tickData is used to draw labels on the opposite side of the line from opposingPt.

docs inherited from Axis3D

void fireChangeEvent() #

inherited from AbstractAxis3D

List<TickData> generateTickData(num tickUnit) #

Generates a list of tick data records for the axis given the specified tickUnit.

docs inherited from ValueAxis3D

bool getAutoRangeIncludesZero() #

bool getAutoRangeStickyZero() #

Range getDefaultAutoRange() #

NumberFormat getTickLabelFormatter() #

TickSelector getTickSelector() #

num getTickSize() #

void receive(ChartElementVisitor visitor) #

inherited from AbstractAxis3D

Receives a visitor. This is part of a general mechanism for traversing all the elements that make up a chart structure.

docs inherited from ChartElement

void removeChangeListener(Axis3DChangeListener listener) #

inherited from AbstractAxis3D

Deregisters a listener so that it no longer receives notification of changes to the axis.

num selectTick(CanvasRenderingContext2D context, Point pt0, Point pt1, Point opposingPt) #

Selects an appropriate tick size given that the axis will be drawn between pt0 and pt1 on the specified canvas ( context). The opposingPt is point which is on the opposite side of the line to where the labels will be drawn. This is a convenient way to specify the label location given the underlying implementation.

docs inherited from ValueAxis3D

void setAutoRangeIncludeZero(bool include) #

void setAutoRangeStickyZero(bool sticky) #

void setDefaultAutoRange(Range range) #

void setRangeBounds(num min, num max) #

inherited from AbstractAxis3D

Sets the range bounds for the axis and sends an Axis3DChangeEvent to all registered listeners.

void setTickLabelFormatter(NumberFormat formatter) #

void setTickSelector(TickSelector selector) #

void setTickSize(num tickSize) #

num translateToWorld(num value, num length) #

Translates a data value into world coordinates assuming that the axis begins at the origin and has the specified length in world coordinates.