PySide6.QtCharts.QChart

class QChart

PySide6.QtCharts.QChart 的继承图

继承自: QPolarChart

概要

属性

方法

信号

注意

本文档可能包含从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:
property localeᅟ: QLocale
Access functions:
property localizeNumbersᅟ: bool
Access functions:
property marginsᅟ: QMargins
Access functions:
property plotAreaᅟ: QRectF
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:
__init__(type, parent, wFlags)
Parameters:
animationDuration()
Return type:

整数

属性 animationDurationᅟ 的获取器。

animationEasingCurve()
Return type:

QEasingCurve

属性 animationEasingCurveᅟ 的获取器。

animationOptions()
Return type:

AnimationOption的组合

属性 animationOptionsᅟ 的获取器。

backgroundBrush()
Return type:

QBrush

backgroundPen()
Return type:

QPen

backgroundRoundness()
Return type:

浮点数

属性 backgroundRoundnessᅟ 的获取器。

chartType()
Return type:

ChartType

属性 chartTypeᅟ 的获取器。

createDefaultAxes()
isBackgroundVisible()
Return type:

布尔

属性 backgroundVisibleᅟ 的获取器。

isDropShadowEnabled()
Return type:

布尔

属性 dropShadowEnabledᅟ 的获取器。

isPlotAreaBackgroundVisible()
Return type:

布尔

属性 plotAreaBackgroundVisibleᅟ 的获取器。

isZoomed()
Return type:

布尔

legend()
Return type:

QLegend

locale()
Return type:

QLocale

属性 localeᅟ 的获取器。

localizeNumbers()
Return type:

布尔

属性 localizeNumbersᅟ 的获取器。

mapToPosition(value)
Parameters:

QPointF

Return type:

QPointF

mapToValue(position)
Parameters:

位置QPointF

Return type:

QPointF

margins()
Return type:

QMargins

属性 marginsᅟ 的获取器。

plotArea()
Return type:

QRectF

属性 plotAreaᅟ 的获取器。

plotAreaBackgroundBrush()
Return type:

QBrush

plotAreaBackgroundPen()
Return type:

QPen

plotAreaChanged(plotArea)
Parameters:

plotAreaQRectF

属性 plotAreaᅟ 的通知信号。

removeAllSeries()
scroll(dx, dy)
Parameters:
  • dx – 浮点数

  • dy – 浮点数

setAnimationDuration(msecs)
Parameters:

msecs – 整数

属性 animationDurationᅟ 的设置器。

setAnimationEasingCurve(curve)
Parameters:

曲线QEasingCurve

属性 animationEasingCurveᅟ 的设置器。

setAnimationOptions(options)
Parameters:

optionsAnimationOption 的组合

属性 animationOptionsᅟ 的设置器。

setBackgroundBrush(brush)
Parameters:

画笔QBrush

setBackgroundPen(pen)
Parameters:

QPen

setBackgroundRoundness(diameter)
Parameters:

直径 – float

属性 backgroundRoundnessᅟ 的设置器。

setBackgroundVisible([visible=true])
Parameters:

visible – 布尔值

属性 backgroundVisibleᅟ 的设置器。

setDropShadowEnabled([enabled=true])
Parameters:

enabled – 布尔值

属性 dropShadowEnabledᅟ 的设置器。

setLocale(locale)
Parameters:

localeQLocale

属性 localeᅟ 的设置器。

setLocalizeNumbers(localize)
Parameters:

localize – 布尔值

属性 localizeNumbersᅟ 的设置器。

setMargins(margins)
Parameters:

边距QMargins

属性 marginsᅟ 的设置器。

setPlotArea(rect)
Parameters:

矩形QRectF

属性 plotAreaᅟ 的设置器。

setPlotAreaBackgroundBrush(brush)
Parameters:

画笔QBrush

setPlotAreaBackgroundPen(pen)
Parameters:

QPen

setPlotAreaBackgroundVisible([visible=true])
Parameters:

visible – 布尔值

属性 plotAreaBackgroundVisibleᅟ 的设置器。

setTheme(theme)
Parameters:

主题ChartTheme

属性 themeᅟ 的设置器。

setTitle(title)
Parameters:

标题 – str

属性 titleᅟ 的设置器。

setTitleBrush(brush)
Parameters:

画笔QBrush

setTitleFont(font)
Parameters:

字体QFont

theme()
Return type:

ChartTheme

属性 themeᅟ 的获取器。

title()
Return type:

字符串

属性 titleᅟ 的获取器。

titleBrush()
Return type:

QBrush

titleFont()
Return type:

QFont

zoom(factor)
Parameters:

factor – 浮点数

zoomIn()
zoomIn(rect)
Parameters:

矩形QRectF

zoomOut()
zoomReset()