ValueAxis QML Type

Adds values to a chart's axes. 更多...

导入语句: import QtCharts .
Since: Qt Quick Ultralite 1.1
继承:

AbstractAxis

特性

详细描述

The ValueAxis type can be set up to show an axis line with tick marks, grid lines, and shades. The values on the axis are drawn at the positions of tick marks.

The ValueAxis type is based on QtCharts .ValueAxis. The following members are not supported yet:

  • minorTickCount
  • tickAnchor, tickInterval, tickType
  • all signals and methods

Other differences:

特性文档编制

labelFormat : string

The format string to use for the tick labels.

The following conversion format specifiers are supported: d, i, f, e .

The floating-point specifiers support a precision.

范例: "%d hours" , "$%.2f"


max : real

The maximum value on the axis.

When setting this property, the minimum value is adjusted if necessary, to ensure that the range remains valid.

另请参阅 min .


min : real

The minimum value on the axis.

When setting this property, the maximum value is adjusted if necessary, to ensure that the range remains valid.

另请参阅 max .


tickCount : int

The number of tick marks on the axis. This indicates how many grid lines are drawn on the chart. The default value is 5, and the number cannot be less than 2.