QScatterSeries

The QScatterSeries class presents data in scatter charts. More

Inheritance diagram of PySide6.QtCharts.QScatterSeries

Synopsis

Functions

Detailed Description

The scatter data is displayed as a collection of points on the chart. For each point, two values are specified that determine its position on the horizontal axis and the vertical axis.

../../_images/examples_scatterchart.png

The following code snippet illustrates how to create a basic scatter chart:

QScatterSeries* series = new QScatterSeries();
series->append(0, 6);
series->append(2, 4);
...
chart->addSeries(series);

For more information, see ScatterChart Example and Scatter Interactions Example .

class PySide6.QtCharts.QScatterSeries([parent=None])
Parameters

parentPySide6.QtCore.QObject

Constructs a series object that is a child of parent.

PySide6.QtCharts.QScatterSeries.MarkerShape

This enum value describes the shape used when rendering marker items.

Constant

Description

QScatterSeries.MarkerShapeCircle

The marker is a circle. This is the default value.

QScatterSeries.MarkerShapeRectangle

The marker is a rectangle.

PySide6.QtCharts.QScatterSeries.borderColor()
Return type

PySide6.QtGui.QColor

See also

setBorderColor()

PySide6.QtCharts.QScatterSeries.borderColorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtCharts.QScatterSeries.markerShape()
Return type

MarkerShape

See also

setMarkerShape()

PySide6.QtCharts.QScatterSeries.markerShapeChanged(shape)
Parameters

shapeMarkerShape

PySide6.QtCharts.QScatterSeries.markerSize()
Return type

float

See also

setMarkerSize()

PySide6.QtCharts.QScatterSeries.markerSizeChanged(size)
Parameters

size – float

PySide6.QtCharts.QScatterSeries.setBorderColor(color)
Parameters

colorPySide6.QtGui.QColor

See also

borderColor()

PySide6.QtCharts.QScatterSeries.setMarkerShape(shape)
Parameters

shapeMarkerShape

See also

markerShape()

PySide6.QtCharts.QScatterSeries.setMarkerSize(size)
Parameters

size – float

See also

markerSize()