Axis QML Type
Displays an Axis. More...
Import Statement: | import QuickGraphLib |
Inherits: |
Properties
- dataTransform : alias
- decimalPoints : int
- direction : alias
- label : alias
- labelColor : alias
- labelFont : alias
- labelItem : alias
- preferredRendererType : alias
- showTickLabels : bool
- spacing : double
- strokeColor : alias
- strokeWidth : alias
- tickDelegate : Component
- tickLabelColor : color
- tickLabelFont : font
- tickLength : alias
- ticks : alias
Detailed Description
Antialiasing
To turn on high-quality antialiasing, set preferredRendererType to Shape.CurveRenderer
. This generally results in much better looking graphs, but can also result in rendering problems as the curve renderer is new. It may also require more GPU performance, so switching this back to Shape.GeometryRenderer
may help on low-power systems. See Shape::rendererType for more details.
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:
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).
preferredRendererType : alias |
The preferred renderer type for rendering the spine and ticks.
See also Shape::preferredRendererType.
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.