- class QAbstractSeries¶
The
QAbstractSeries
class is a base class for all Qt Graphs for 2D series. More…Inherited by:
QXYSeries
,QScatterSeries
,QLineSeries
,QSplineSeries
,QPieSeries
,QAreaSeries
,QCandlestickSeries
,QBoxPlotSeries
,QAbstractBarSeries
,QBarSeries
,QStackedBarSeries
,QPercentBarSeries
,QHorizontalStackedBarSeries
,QHorizontalPercentBarSeries
,QHorizontalBarSeries
Synopsis¶
Properties¶
Methods¶
def
chart()
def
hide()
def
isVisible()
def
name()
def
opacity()
def
setName()
def
setOpacity()
def
setUseOpenGL()
def
setVisible()
def
show()
def
useOpenGL()
Signals¶
def
nameChanged()
def
opacityChanged()
def
visibleChanged()
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¶
Usually, the series type specific inherited classes are used instead of the base class.
- class SeriesType¶
This enum describes the type of the series.
Constant
Description
QAbstractSeries.SeriesType.Line
A line graph.
QAbstractSeries.SeriesType.Bar
A bar graph.
QAbstractSeries.SeriesType.Scatter
A scatter graph.
QAbstractSeries.SeriesType.Pie
A pie graph.
QAbstractSeries.SeriesType.Spline
A spline graph.
QAbstractSeries.SeriesType.Area
An area graph.
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property nameᅟ: str¶
This property holds The name of the series..
The name is displayed in the legend for the series and it supports HTML formatting.
- Access functions:
Signal
nameChanged()
- property opacityᅟ: float¶
This property holds The opacity of the series..
By default, the opacity is 1.0. The valid values range from 0.0 (transparent) to 1.0 (opaque).
- Access functions:
- property typeᅟ: QAbstractSeries.SeriesType¶
This property holds The type of the series..
Access functions:
- property useOpenGLᅟ: bool¶
- Access functions:
- property visibleᅟ: bool¶
This property holds Visibility of the series..
The visibility used for this series. By default,
visible
is set totrue
.- Access functions:
- hide()¶
Sets the visibility of the series to
false
.See also
- isVisible()¶
- Return type:
bool
Getter of property
visibleᅟ
.Getter of property
nameᅟ
.- nameChanged()¶
Notification signal of property
nameᅟ
.- opacity()¶
- Return type:
float
See also
Getter of property
opacityᅟ
.- opacityChanged()¶
Notification signal of property
opacityᅟ
.Setter of property
nameᅟ
.Setter of property
opacityᅟ
.- setUseOpenGL([enable=true])¶
- Parameters:
enable – bool
Setter of property
useOpenGLᅟ
.- setVisible([visible=true])¶
- Parameters:
visible – bool
See also
Setter of property
visibleᅟ
.- show()¶
Sets the visibility of the series to
true
.See also
- useOpenGL()¶
- Return type:
bool
Getter of property
useOpenGLᅟ
.- useOpenGLChanged()¶
Notification signal of property
useOpenGLᅟ
.- visibleChanged()¶
Notification signal of property
visibleᅟ
.