- Qt 6.10
- Qt Graphs
- QML Types
- QtGraphs
- AbstractSeries
- Qt Graphs | Commercial or GPLv3

# AbstractSeries QML Type

Base type for all Qt Graph series types. More...

Import Statement: | `import QtGraphs`
Inherited By: | AreaSeries, BarSeries, PieSeries, and XYSeries

- List of all members, including inherited members
- AbstractSeries is part of Qt Graphs QML Types for 2D.

## Properties

- axisX : AbstractAxis `(since 6.10)`
- axisY : AbstractAxis `(since 6.10)`
- hoverable : bool
- hovered : bool
- legendData : list<LegendData>
- name : string
- opacity : real
- selectable : bool
- type : enumeration
- valuesMultiplier : real
- visible : bool
- zValue : int `(since 6.10)`

## Signals

- hoverableChanged()
- hoveredChanged()
- legendDataChanged()
- nameChanged()
- opacityChanged()
- selectableChanged()
- themeChanged()
- valuesMultiplierChanged()
- visibleChanged()

## Detailed Description

This type cannot be instantiated directly. Instead, one of the following derived types should be used to create a series: LineSeries, SplineSeries, BarSeries, or ScatterSeries.

## Property Documentation

axisX : AbstractAxis `[since 6.10]`

The x-axis used for this series. Creates a separate axis from the one defined in GraphsView showing the user multiple axis per graph.

This property was introduced in Qt 6.10.

See also axisY.

axisY : AbstractAxis `[since 6.10]`

The y-axis used for this series. Creates a separate axis from the one defined in GraphsView showing the user multiple axis per graph.

This property was introduced in Qt 6.10.

See also axisX.

hoverable : bool

Controls if the series can be hovered with mouse/touch. By default, hoverable is set to `false`.

hovered : bool

Can be used to check whether mouse/touch is currently hovering on a series.

See also QAbstractSeries::hovered.

legendData : list<LegendData>

Contains information needed to create a legend marker for a data set in a graph.

name : string

The name of the series. The name is displayed in the legend for the series and it supports HTML formatting.

opacity : real

The opacity of the series. By default, the opacity is 1.0. The valid values range from 0.0 (transparent) to 1.0 (opaque).

selectable : bool

Controls if the series can be selected with mouse/touch. By default, selectable is set to `false`.

type : enumeration

The type of the series.

Constant | Description
--- | ---
`AbstractSeries.SeriesType.Line` | A line graph.
`AbstractSeries.SeriesType.Bar` | A bar graph.
`AbstractSeries.SeriesType.Scatter` | A scatter graph.
`AbstractSeries.SeriesType.Pie` | A pie graph.
`AbstractSeries.SeriesType.Spline` | A spline graph.
`AbstractSeries.SeriesType.Area` | An area graph.

valuesMultiplier : real

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).

visible : bool

The visibility used for this series. By default, visible is set to `true`.

zValue : int `[since 6.10]`

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.

This property was introduced in Qt 6.10.

## Signal Documentation

hoverableChanged()

This signal is emitted when the series hoverable changes.

Note: The corresponding handler is `onHoverableChanged`.

hoveredChanged()

This signal is emitted when the series hovered changes.

Note: The corresponding handler is `onHoveredChanged`.

legendDataChanged()

This signal is emitted when legend data changes.

Note: The corresponding handler is `onLegendDataChanged`.

nameChanged()

This signal is emitted when the series name changes.

Note: The corresponding handler is `onNameChanged`.

opacityChanged()

This signal is emitted when the opacity of the series changes.

Note: The corresponding handler is `onOpacityChanged`.

selectableChanged()

This signal is emitted when the series selectable changes.

Note: The corresponding handler is `onSelectableChanged`.

themeChanged()

This signal is emitted when the series theme changes.

Note: The corresponding handler is `onThemeChanged`.

valuesMultiplierChanged()

This signal is emitted when the valuesMultiplier of the series changes.

Note: The corresponding handler is `onValuesMultiplierChanged`.

visibleChanged()

This signal is emitted when the series visibility changes.

Note: The corresponding handler is `onVisibleChanged`.