class QChart

Inheritance diagram of PySide6.QtCharts.QChart

Inherited by: QPolarChart

Synopsis

Properties

Methods

Signals

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

class ChartType
class ChartTheme
class AnimationOption

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

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.ChartType
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:

int

Getter of property animationDurationᅟ .

animationEasingCurve()
Return type:

QEasingCurve

Getter of property animationEasingCurveᅟ .

animationOptions()
Return type:

Combination of AnimationOption

Getter of property animationOptionsᅟ .

backgroundBrush()
Return type:

QBrush

backgroundPen()
Return type:

QPen

backgroundRoundness()
Return type:

float

Getter of property backgroundRoundnessᅟ .

chartType()
Return type:

ChartType

Getter of property chartTypeᅟ .

createDefaultAxes()
isBackgroundVisible()
Return type:

bool

Getter of property backgroundVisibleᅟ .

isDropShadowEnabled()
Return type:

bool

Getter of property dropShadowEnabledᅟ .

isPlotAreaBackgroundVisible()
Return type:

bool

Getter of property plotAreaBackgroundVisibleᅟ .

isZoomed()
Return type:

bool

legend()
Return type:

QLegend

locale()
Return type:

QLocale

Getter of property localeᅟ .

localizeNumbers()
Return type:

bool

Getter of property localizeNumbersᅟ .

mapToPosition(value)
Parameters:

valueQPointF

Return type:

QPointF

mapToValue(position)
Parameters:

positionQPointF

Return type:

QPointF

margins()
Return type:

QMargins

Getter of property marginsᅟ .

plotArea()
Return type:

QRectF

Getter of property plotAreaᅟ .

plotAreaBackgroundBrush()
Return type:

QBrush

plotAreaBackgroundPen()
Return type:

QPen

plotAreaChanged(plotArea)
Parameters:

plotAreaQRectF

Notification signal of property plotAreaᅟ .

removeAllSeries()
scroll(dx, dy)
Parameters:
  • dx – float

  • dy – float

setAnimationDuration(msecs)
Parameters:

msecs – int

Setter of property animationDurationᅟ .

setAnimationEasingCurve(curve)
Parameters:

curveQEasingCurve

Setter of property animationEasingCurveᅟ .

setAnimationOptions(options)
Parameters:

options – Combination of AnimationOption

Setter of property animationOptionsᅟ .

setBackgroundBrush(brush)
Parameters:

brushQBrush

setBackgroundPen(pen)
Parameters:

penQPen

setBackgroundRoundness(diameter)
Parameters:

diameter – float

Setter of property backgroundRoundnessᅟ .

setBackgroundVisible([visible=true])
Parameters:

visible – bool

Setter of property backgroundVisibleᅟ .

setDropShadowEnabled([enabled=true])
Parameters:

enabled – bool

Setter of property dropShadowEnabledᅟ .

setLocale(locale)
Parameters:

localeQLocale

Setter of property localeᅟ .

setLocalizeNumbers(localize)
Parameters:

localize – bool

Setter of property localizeNumbersᅟ .

setMargins(margins)
Parameters:

marginsQMargins

Setter of property marginsᅟ .

setPlotArea(rect)
Parameters:

rectQRectF

Setter of property plotAreaᅟ .

setPlotAreaBackgroundBrush(brush)
Parameters:

brushQBrush

setPlotAreaBackgroundPen(pen)
Parameters:

penQPen

setPlotAreaBackgroundVisible([visible=true])
Parameters:

visible – bool

Setter of property plotAreaBackgroundVisibleᅟ .

setTheme(theme)
Parameters:

themeChartTheme

Setter of property themeᅟ .

setTitle(title)
Parameters:

title – str

Setter of property titleᅟ .

setTitleBrush(brush)
Parameters:

brushQBrush

setTitleFont(font)
Parameters:

fontQFont

theme()
Return type:

ChartTheme

Getter of property themeᅟ .

title()
Return type:

str

Getter of property titleᅟ .

titleBrush()
Return type:

QBrush

titleFont()
Return type:

QFont

zoom(factor)
Parameters:

factor – float

zoomIn()
zoomIn(rect)
Parameters:

rectQRectF

zoomOut()
zoomReset()