Adds a logarithmic scale to a chart's axis. 更多...
| import 語句: | import QtCharts 2.15 |
| 實例化: | QLogValueAxis |
| 繼承: |
A logarithmic scale is a nonlinear scale that is based on orders of magnitude, so that each tick mark on the axis is the previous tick mark multiplied by a value.
注意: If a LogValueAxis type is attached to a series with one or more points with negative or zero values on the associated dimension, the series will not be plotted at all. This is particularly relevant when XYModelMappers are used, since empty cells in models typically contain zero values.
|
base : real |
The base of the logarithm.
The value has to be greater than 0 and cannot equal 1.
|
labelFormat : real |
The label format of the axis.
格式字符串支持的以下轉換說明符、長度修飾符和標誌的提供通過
printf()
在標準 C++ 庫:d、i、o、x、X、f、F、e、E、g、G、c。
若
ChartView.localizeNumbers
is
true
,支持的說明符限於:d、e、E、f、g、G 和 i。另外,僅支持精度修飾符。其餘格式來自默認
QLocale
對於應用程序。
另請參閱 QString::asprintf() .
|
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. The value has to be greater than 0.
|
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. The value has to be greater than 0.
|
minorTickCount : int |
The number of minor tick marks on the axis. This indicates how many grid lines are drawn between major ticks on the chart. Labels are not drawn for minor ticks. The default value is 0. Set the value to -1 and the number of grid lines between major ticks will be calculated automatically.
|
tickCount : int |
The number of tick marks on the axis. This indicates how many grid lines are drawn on the chart. This value is read-only.
|
minorTickCountChanged ( int minorTickCount ) |
This signal is emitted when the number of minor tick marks on the axis, specified by minorTickCount ,改變。
注意:
相應處理程序是
onMinorTickCountChanged
.
|
tickCountChanged ( int tickCount ) |
This signal is emitted when the number of tick marks on the axis, specified by tickCount ,改變。
注意:
相應處理程序是
onTickCountChanged
.