Axis QML Type

Displays an Axis. More...

Import Statement: import QuickGraphLib
Inherits:

Item

Properties

Detailed Description

See also Basic sin graph (without prefabs) and Graph with all four axes.

Property Documentation

dataTransform : alias

Must be assigned the data transform of the graph area this axis is paired to.

See also GraphArea::dataTransform.


decimalPoints : int

Number of decimal points the ticks should show.

See also TickLabel::decimalPoints.


direction : alias

The side of the graph the Axis is on. It can take one of the following values:

ConstantDescription
Axis.Direction.LeftAxis to the left of the GraphArea
Axis.Direction.RightAxis to the right of the GraphArea
Axis.Direction.TopAxis above of the GraphArea
Axis.Direction.BottomAxis below of the GraphArea

label : alias

The label text for this axis. Alias of labelItem.text.


labelColor : alias

The color of the label. Alias of labelItem.color.


labelFont : alias

The font of the label. Alias of labelItem.font.


labelItem : alias

The axis label (a Text).


showTickLabels : bool

Whether to show a label for each tick.


spacing : double

Spacing between the axis label and the tick labels.


strokeColor : alias

Color of the axis spine and ticks.


strokeWidth : alias

Width of the axis spine and ticks.


tickDelegate : Component

The component used for rendering tick labels. If overridden, the color, decimalPoints, direction, and font properties of the component should be set explicitly. To get proper positioning, it is recommended that TickLabel or a subclass is used.


tickLabelColor : color

The color of the tick labels.


tickLabelFont : font

The font of the tick labels.


tickLength : alias

The length of each tick.


ticks : alias

The position of each tick. This should be a list of doubles in data coordinates.

See also Helpers::range, Helpers::linspace, Grid::xTicks, and Grid::yTicks.