QChart¶
Inherited by: QPolarChart
New in version 5.7.
Synopsis¶
Functions¶
def
addAxis
(axis, alignment)def
addSeries
(series)def
animationDuration
()def
animationEasingCurve
()def
animationOptions
()def
axes
([orientation=Qt.Horizontal|Qt.Vertical[, series=None]])def
axisX
([series=None])def
axisY
([series=None])def
backgroundBrush
()def
backgroundPen
()def
backgroundRoundness
()def
chartType
()def
createDefaultAxes
()def
isBackgroundVisible
()def
isDropShadowEnabled
()def
isPlotAreaBackgroundVisible
()def
isZoomed
()def
legend
()def
locale
()def
localizeNumbers
()def
mapToPosition
(value[, series=None])def
mapToValue
(position[, series=None])def
margins
()def
plotArea
()def
plotAreaBackgroundBrush
()def
plotAreaBackgroundPen
()def
removeAllSeries
()def
removeAxis
(axis)def
removeSeries
(series)def
scroll
(dx, dy)def
series
()def
setAnimationDuration
(msecs)def
setAnimationEasingCurve
(curve)def
setAnimationOptions
(options)def
setAxisX
(axis[, series=None])def
setAxisY
(axis[, series=None])def
setBackgroundBrush
(brush)def
setBackgroundPen
(pen)def
setBackgroundRoundness
(diameter)def
setBackgroundVisible
([visible=true])def
setDropShadowEnabled
([enabled=true])def
setLocale
(locale)def
setLocalizeNumbers
(localize)def
setMargins
(margins)def
setPlotArea
(rect)def
setPlotAreaBackgroundBrush
(brush)def
setPlotAreaBackgroundPen
(pen)def
setPlotAreaBackgroundVisible
([visible=true])def
setTheme
(theme)def
setTitle
(title)def
setTitleBrush
(brush)def
setTitleFont
(font)def
theme
()def
title
()def
titleBrush
()def
titleFont
()def
zoom
(factor)def
zoomIn
()def
zoomIn
(rect)def
zoomOut
()def
zoomReset
()
Signals¶
def
plotAreaChanged
(plotArea)
Detailed Description¶
-
class
PySide2.QtCharts.
QChart
([parent=None[, wFlags=Qt.WindowFlags()]])¶ PySide2.QtCharts.QChart(type, parent, wFlags)
- Parameters
type –
ChartType
parent –
PySide2.QtWidgets.QGraphicsItem
wFlags –
WindowFlags
-
PySide2.QtCharts.QChart.
ChartType
¶
-
PySide2.QtCharts.QChart.
ChartTheme
¶
-
PySide2.QtCharts.QChart.
AnimationOption
¶
-
PySide2.QtCharts.QChart.
addAxis
(axis, alignment)¶ - Parameters
alignment –
Alignment
-
PySide2.QtCharts.QChart.
addSeries
(series)¶ - Parameters
series –
PySide2.QtCharts.QAbstractSeries
-
PySide2.QtCharts.QChart.
animationDuration
()¶ - Return type
int
-
PySide2.QtCharts.QChart.
animationEasingCurve
()¶ - Return type
-
PySide2.QtCharts.QChart.
animationOptions
()¶ - Return type
AnimationOptions
-
PySide2.QtCharts.QChart.
axes
([orientation=Qt.Horizontal|Qt.Vertical[, series=None]])¶ - Parameters
orientation –
Orientations
series –
PySide2.QtCharts.QAbstractSeries
- Return type
-
PySide2.QtCharts.QChart.
axisX
([series=None])¶ - Parameters
series –
PySide2.QtCharts.QAbstractSeries
- Return type
Note
This function is deprecated.
-
PySide2.QtCharts.QChart.
axisY
([series=None])¶ - Parameters
series –
PySide2.QtCharts.QAbstractSeries
- Return type
Note
This function is deprecated.
-
PySide2.QtCharts.QChart.
backgroundBrush
()¶ - Return type
-
PySide2.QtCharts.QChart.
backgroundPen
()¶ - Return type
-
PySide2.QtCharts.QChart.
backgroundRoundness
()¶ - Return type
float
-
PySide2.QtCharts.QChart.
createDefaultAxes
()¶
-
PySide2.QtCharts.QChart.
isBackgroundVisible
()¶ - Return type
bool
-
PySide2.QtCharts.QChart.
isDropShadowEnabled
()¶ - Return type
bool
-
PySide2.QtCharts.QChart.
isPlotAreaBackgroundVisible
()¶ - Return type
bool
-
PySide2.QtCharts.QChart.
isZoomed
()¶ - Return type
bool
-
PySide2.QtCharts.QChart.
legend
()¶ - Return type
-
PySide2.QtCharts.QChart.
locale
()¶ - Return type
-
PySide2.QtCharts.QChart.
localizeNumbers
()¶ - Return type
bool
-
PySide2.QtCharts.QChart.
mapToPosition
(value[, series=None])¶ - Parameters
value –
PySide2.QtCore.QPointF
series –
PySide2.QtCharts.QAbstractSeries
- Return type
-
PySide2.QtCharts.QChart.
mapToValue
(position[, series=None])¶ - Parameters
position –
PySide2.QtCore.QPointF
series –
PySide2.QtCharts.QAbstractSeries
- Return type
-
PySide2.QtCharts.QChart.
margins
()¶ - Return type
-
PySide2.QtCharts.QChart.
plotArea
()¶ - Return type
-
PySide2.QtCharts.QChart.
plotAreaBackgroundBrush
()¶ - Return type
-
PySide2.QtCharts.QChart.
plotAreaBackgroundPen
()¶ - Return type
-
PySide2.QtCharts.QChart.
plotAreaChanged
(plotArea)¶ - Parameters
plotArea –
PySide2.QtCore.QRectF
-
PySide2.QtCharts.QChart.
removeAllSeries
()¶
-
PySide2.QtCharts.QChart.
removeAxis
(axis)¶ - Parameters
-
PySide2.QtCharts.QChart.
removeSeries
(series)¶ - Parameters
series –
PySide2.QtCharts.QAbstractSeries
-
PySide2.QtCharts.QChart.
scroll
(dx, dy)¶ - Parameters
dx – float
dy – float
-
PySide2.QtCharts.QChart.
series
()¶ - Return type
-
PySide2.QtCharts.QChart.
setAnimationDuration
(msecs)¶ - Parameters
msecs – int
-
PySide2.QtCharts.QChart.
setAnimationEasingCurve
(curve)¶ - Parameters
curve –
PySide2.QtCore.QEasingCurve
-
PySide2.QtCharts.QChart.
setAnimationOptions
(options)¶ - Parameters
options –
AnimationOptions
-
PySide2.QtCharts.QChart.
setAxisX
(axis[, series=None])¶ - Parameters
series –
PySide2.QtCharts.QAbstractSeries
Note
This function is deprecated.
-
PySide2.QtCharts.QChart.
setAxisY
(axis[, series=None])¶ - Parameters
series –
PySide2.QtCharts.QAbstractSeries
Note
This function is deprecated.
-
PySide2.QtCharts.QChart.
setBackgroundBrush
(brush)¶ - Parameters
brush –
PySide2.QtGui.QBrush
-
PySide2.QtCharts.QChart.
setBackgroundPen
(pen)¶ - Parameters
pen –
PySide2.QtGui.QPen
-
PySide2.QtCharts.QChart.
setBackgroundRoundness
(diameter)¶ - Parameters
diameter – float
-
PySide2.QtCharts.QChart.
setBackgroundVisible
([visible=true])¶ - Parameters
visible – bool
-
PySide2.QtCharts.QChart.
setDropShadowEnabled
([enabled=true])¶ - Parameters
enabled – bool
-
PySide2.QtCharts.QChart.
setLocale
(locale)¶ - Parameters
locale –
PySide2.QtCore.QLocale
-
PySide2.QtCharts.QChart.
setLocalizeNumbers
(localize)¶ - Parameters
localize – bool
-
PySide2.QtCharts.QChart.
setMargins
(margins)¶ - Parameters
margins –
PySide2.QtCore.QMargins
-
PySide2.QtCharts.QChart.
setPlotArea
(rect)¶ - Parameters
rect –
PySide2.QtCore.QRectF
-
PySide2.QtCharts.QChart.
setPlotAreaBackgroundBrush
(brush)¶ - Parameters
brush –
PySide2.QtGui.QBrush
-
PySide2.QtCharts.QChart.
setPlotAreaBackgroundPen
(pen)¶ - Parameters
pen –
PySide2.QtGui.QPen
-
PySide2.QtCharts.QChart.
setPlotAreaBackgroundVisible
([visible=true])¶ - Parameters
visible – bool
-
PySide2.QtCharts.QChart.
setTheme
(theme)¶ - Parameters
theme –
ChartTheme
-
PySide2.QtCharts.QChart.
setTitle
(title)¶ - Parameters
title – str
-
PySide2.QtCharts.QChart.
setTitleBrush
(brush)¶ - Parameters
brush –
PySide2.QtGui.QBrush
-
PySide2.QtCharts.QChart.
setTitleFont
(font)¶ - Parameters
font –
PySide2.QtGui.QFont
-
PySide2.QtCharts.QChart.
theme
()¶ - Return type
-
PySide2.QtCharts.QChart.
title
()¶ - Return type
str
-
PySide2.QtCharts.QChart.
titleBrush
()¶ - Return type
-
PySide2.QtCharts.QChart.
titleFont
()¶ - Return type
-
PySide2.QtCharts.QChart.
zoom
(factor)¶ - Parameters
factor – float
-
PySide2.QtCharts.QChart.
zoomIn
()¶
-
PySide2.QtCharts.QChart.
zoomIn
(rect) - Parameters
rect –
PySide2.QtCore.QRectF
-
PySide2.QtCharts.QChart.
zoomOut
()¶
-
PySide2.QtCharts.QChart.
zoomReset
()¶
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.