PySide6.QtGraphs.QAbstractSeries¶
- class QAbstractSeries¶
- The - QAbstractSeriesclass is a base class for all Qt Graphs for 2D series.- Details- Usually, the series type specific inherited classes are used instead of the base class. - Inherited by: - QXYSeries,- QSplineSeries,- QScatterSeries,- QLineSeries,- QPieSeries,- QBarSeries,- QAreaSeries- Synopsis¶- Properties¶- axisXᅟ- X-axis of this series
- axisYᅟ- Y-axis of this series
- hoverableᅟ- Controls if the series is hoverable
- hoveredᅟ- Check whether a series is hovered on
- legendDataᅟ- Contains information needed to create a legend marker for a data set in a graph
- nameᅟ- Of the series
- opacityᅟ- Of the series
- selectableᅟ- Controls if the series is selectable
- typeᅟ- Of the series
- valuesMultiplierᅟ- Controls the series values effective visible value
- visibleᅟ- Visibility of the series
- zValueᅟ- Controls the order in which the series is drawn
 - Methods¶- def - axisX()
- def - axisY()
- def - hasLoaded()
- def - hide()
- def - isHoverable()
- def - isHovered()
- def - isSelectable()
- def - isVisible()
- def - legendData()
- def - name()
- def - opacity()
- def - setAxisX()
- def - setAxisY()
- def - setHoverable()
- def - setHovered()
- def - setName()
- def - setOpacity()
- def - setSelectable()
- def - setVisible()
- def - setZValue()
- def - show()
- def - zValue()
 - Virtual methods¶- def - type()
 - Signals¶- def - axisXChanged()
- def - axisYChanged()
- def - hover()
- def - hoverEnter()
- def - hoverExit()
- def - hoveredChanged()
- def - nameChanged()
- def - opacityChanged()
- def - update()
- def - visibleChanged()
- def - zValueChanged()
 - 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 - class SeriesType¶
- This enum describes the type of the series. - Constant - Description - QAbstractSeries.SeriesType.SeriesType.Line - A line graph. - QAbstractSeries.SeriesType.SeriesType.Bar - A bar graph. - QAbstractSeries.SeriesType.SeriesType.Scatter - A scatter graph. - QAbstractSeries.SeriesType.SeriesType.Pie - A pie graph. - QAbstractSeries.SeriesType.SeriesType.Spline - A spline graph. - QAbstractSeries.SeriesType.SeriesType.Area - An area graph. 
 - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property axisXᅟ: QAbstractAxis¶
 - This property holds X-axis of this series.. - The x-axis used for this series. Creates a separate axis from the one defined in GraphsView showing the user multiple axis per graph. - Access functions:
- Signal - axisXChanged()
 
 - property axisYᅟ: QAbstractAxis¶
 - This property holds Y-axis of this series.. - The y-axis used for this series. Creates a separate axis from the one defined in GraphsView showing the user multiple axis per graph. - Access functions:
- Signal - axisYChanged()
 
 - property hoverableᅟ: bool¶
 - This property holds Controls if the series is hoverable.. - Controls if the series can be hovered with mouse/touch. By default, - hoverableis set to- false.- Access functions:
 - property hoveredᅟ: bool¶
 - This property holds Check whether a series is hovered on.. - Can be used to check whether mouse/touch is currently hovering on a series. - See also - hovered- Access functions:
- Signal - hoveredChanged()
 
 - property legendDataᅟ: list of QLegendData¶
 - This property Contains information needed to create a legend marker for a data set in a graph.. - See also - Access functions:
- Signal - legendDataChanged()
 
 - 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 selectableᅟ: bool¶
 - This property holds Controls if the series is selectable.. - Controls if the series can be selected with mouse/touch. By default, - selectableis set to- false.- Access functions:
 - property typeᅟ: QAbstractSeries.SeriesType¶
 - This property holds The type of the series.. - Access functions:
 - property valuesMultiplierᅟ: float¶
 - This property holds Controls the series values effective visible value.. - This variable can be used for animating the series values so they scale from 0 to actual value size. By default, the valuesMultiplier is 1.0. The valid values range from 0.0 (height 0) to 1.0 (full value). - Access functions:
 - property visibleᅟ: bool¶
 - This property holds Visibility of the series.. - The visibility used for this series. By default, - visibleis set to- true.- Access functions:
 - property zValueᅟ: int¶
 - This property holds Controls the order in which the series is drawn. - The series list of GraphsView is sorted by the zValue property. Since each series type is rendered at once, the order mostly works as an internal order of each series type. The highest zValue of each series type determines the order of rendering among series types. The default value is 0. - Access functions:
- Signal - zValueChanged()
 
 - axisX()¶
- Return type:
 - See also 
 - Getter of property - axisXᅟ.- axisXChanged(newAxis)¶
- Parameters:
- newAxis – - QAbstractAxis
 
 - Notification signal of property - axisXᅟ.- axisY()¶
- Return type:
 - See also 
 - Getter of property - axisYᅟ.- axisYChanged(newAxis)¶
- Parameters:
- newAxis – - QAbstractAxis
 
 - Notification signal of property - axisYᅟ.- hasLoaded()¶
- Return type:
- bool 
 
 - hide()¶
 - Sets the visibility of the series to - false.- See also - This signal is emitted when the series hovering changes. The name of the series is in - seriesName, the mouse/touch position in- position, and the series value in- value.- Note - This signal is only emitted when - hoverableis set to true.- Note - For Pie graph, the value represents (angle of position, start angle of hovering slice) - hoverEnter(seriesName, position, value)¶
 - This signal is emitted when the series hovering starts. The name of the series is in - seriesName, the mouse/touch position in- position, and the series value in- value.- Note - This signal is only emitted when - hoverableis set to true.- Note - For Pie graph, the value represents (angle of position, start angle of hovering slice) - This signal is emitted when the series hovering ends. The name of the series is in - seriesName, and the mouse/touch position in- position.- Note - This signal is only emitted when - hoverableis set to true.- hoverableChanged()¶
 - Notification signal of property - hoverableᅟ.- hoveredChanged(hovered)¶
- Parameters:
- hovered – bool 
 
 - Notification signal of property - hoveredᅟ.- isHoverable()¶
- Return type:
- bool 
 
 - Getter of property - hoverableᅟ.- isHovered()¶
- Return type:
- bool 
 
 - Getter of property - hoveredᅟ.- isSelectable()¶
- Return type:
- bool 
 
 - Getter of property - selectableᅟ.- isVisible()¶
- Return type:
- bool 
 
 - Getter of property - visibleᅟ.- legendData()¶
- Return type:
- .list of QLegendData 
 
 - Getter of property - legendDataᅟ.- legendDataChanged()¶
 - Notification signal of property - legendDataᅟ.- 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ᅟ.- selectableChanged()¶
 - Notification signal of property - selectableᅟ.- setAxisX(newAxisX)¶
- Parameters:
- newAxisX – - QAbstractAxis
 - See also 
 - Setter of property - axisXᅟ.- setAxisY(newAxisY)¶
- Parameters:
- newAxisY – - QAbstractAxis
 - See also 
 - Setter of property - axisYᅟ.- setHoverable(newHoverable)¶
- Parameters:
- newHoverable – bool 
 - See also 
 - Setter of property - hoverableᅟ.- setHovered(enabled)¶
- Parameters:
- enabled – bool 
 
 - Setter of property - nameᅟ.- Setter of property - opacityᅟ.- setSelectable(selectable)¶
- Parameters:
- selectable – bool 
 - See also 
 - Setter of property - selectableᅟ.- setValuesMultiplier(valuesMultiplier)¶
- Parameters:
- valuesMultiplier – float 
 - See also 
 - Setter of property - valuesMultiplierᅟ.- setVisible([visible=true])¶
- Parameters:
- visible – bool 
 - See also 
 - Setter of property - visibleᅟ.- Setter of property - zValueᅟ.- show()¶
 - Sets the visibility of the series to - true.- See also - abstract type()¶
- Return type:
 
 - Getter of property - typeᅟ.- update()¶
 - valuesMultiplier()¶
- Return type:
- float 
 - See also 
 - Getter of property - valuesMultiplierᅟ.- valuesMultiplierChanged()¶
 - Notification signal of property - valuesMultiplierᅟ.- visibleChanged()¶
 - Notification signal of property - visibleᅟ.- zValue()¶
- Return type:
- int 
 - See also 
 - Getter of property - zValueᅟ.- zValueChanged(z)¶
- Parameters:
- z – int 
 
 - Notification signal of property - zValueᅟ.