PySide6.QtCharts.QChart¶
- class QChart¶
-
继承自:
QPolarChart概要¶
属性¶
方法¶
def
__init__()def
backgroundPen()def
chartType()def
isZoomed()def
legend()def
locale()def
mapToPosition()def
mapToValue()def
margins()def
plotArea()def
scroll()def
setLocale()def
setMargins()def
setPlotArea()def
setTheme()def
setTitle()def
setTitleBrush()def
setTitleFont()def
theme()def
title()def
titleBrush()def
titleFont()def
zoom()def
zoomIn()def
zoomOut()def
zoomReset()
信号¶
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
- class ChartType¶
- class ChartTheme¶
- class AnimationOption¶
注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。- property animationDurationᅟ: int¶
- Access functions:
- property animationEasingCurveᅟ: QEasingCurve¶
- Access functions:
- property animationOptionsᅟ: Combination of QChart.AnimationOption¶
- Access functions:
- property backgroundRoundnessᅟ: float¶
- Access functions:
- property backgroundVisibleᅟ: bool¶
- Access functions:
- property chartTypeᅟ: QChart.图表类型¶
- Access functions:
- property dropShadowEnabledᅟ: bool¶
- Access functions:
- Access functions:
- property localizeNumbersᅟ: bool¶
- Access functions:
- Access functions:
- Access functions:
- property plotAreaBackgroundVisibleᅟ: bool¶
- Access functions:
- property themeᅟ: QChart.ChartTheme¶
- Access functions:
- property titleᅟ: str¶
- Access functions:
- __init__([parent=None[, wFlags=Qt.WindowFlags()]])¶
- Parameters:
parent –
QGraphicsItemwFlags –
WindowType的组合
- __init__(type, parent, wFlags)
- Parameters:
type –
ChartTypeparent –
QGraphicsItemwFlags –
WindowType的组合
- animationDuration()¶
- Return type:
整数
属性
animationDurationᅟ的获取器。- animationEasingCurve()¶
- Return type:
属性
animationEasingCurveᅟ的获取器。- animationOptions()¶
- Return type:
属性
animationOptionsᅟ的获取器。- backgroundRoundness()¶
- Return type:
浮点数
属性
backgroundRoundnessᅟ的获取器。属性
chartTypeᅟ的获取器。- createDefaultAxes()¶
- isBackgroundVisible()¶
- Return type:
布尔
属性
backgroundVisibleᅟ的获取器。- isDropShadowEnabled()¶
- Return type:
布尔
属性
dropShadowEnabledᅟ的获取器。- isPlotAreaBackgroundVisible()¶
- Return type:
布尔
属性
plotAreaBackgroundVisibleᅟ的获取器。- isZoomed()¶
- Return type:
布尔
属性
localeᅟ的获取器。- localizeNumbers()¶
- Return type:
布尔
属性
localizeNumbersᅟ的获取器。属性
marginsᅟ的获取器。属性
plotAreaᅟ的获取器。属性
plotAreaᅟ的通知信号。- removeAllSeries()¶
- scroll(dx, dy)¶
- Parameters:
dx – 浮点数
dy – 浮点数
- setAnimationDuration(msecs)¶
- Parameters:
msecs – 整数
属性
animationDurationᅟ的设置器。- setAnimationEasingCurve(curve)¶
- Parameters:
曲线 –
QEasingCurve
属性
animationEasingCurveᅟ的设置器。- setAnimationOptions(options)¶
- Parameters:
options –
AnimationOption的组合
属性
animationOptionsᅟ的设置器。- setBackgroundRoundness(diameter)¶
- Parameters:
直径 – float
属性
backgroundRoundnessᅟ的设置器。- setBackgroundVisible([visible=true])¶
- Parameters:
visible – 布尔值
属性
backgroundVisibleᅟ的设置器。- setDropShadowEnabled([enabled=true])¶
- Parameters:
enabled – 布尔值
属性
dropShadowEnabledᅟ的设置器。属性
localeᅟ的设置器。- setLocalizeNumbers(localize)¶
- Parameters:
localize – 布尔值
属性
localizeNumbersᅟ的设置器。属性
marginsᅟ的设置器。属性
plotAreaᅟ的设置器。- setPlotAreaBackgroundVisible([visible=true])¶
- Parameters:
visible – 布尔值
属性
plotAreaBackgroundVisibleᅟ的设置器。- setTheme(theme)¶
- Parameters:
主题 –
ChartTheme
属性
themeᅟ的设置器。- setTitle(title)¶
- Parameters:
标题 – str
属性
titleᅟ的设置器。- theme()¶
- Return type:
属性
themeᅟ的获取器。- title()¶
- Return type:
字符串
属性
titleᅟ的获取器。- zoom(factor)¶
- Parameters:
factor – 浮点数
- zoomIn()¶
- zoomIn(rect)
- Parameters:
矩形 –
QRectF
- zoomOut()¶
- zoomReset()¶