- Qt 6.11
- Qt Graphs
- QML Types
- QtGraphs
- CustomSeries
- Qt Graphs | Commercial or GPLv3

# CustomSeries QML Type

The CustomSeries type allows presenting customized graph types. More...

Import Statement: | `import QtGraphs`
Since: | Qt 6.11
In C++: | QCustomSeries

- List of all members, including inherited members

## Properties

- delegate : Component

## Methods

- append()
- append(var data)
- clear()
- insert(int index)
- insert(int index, var data)
- mapX(real x)
- mapY(real y)
- remove(int index)

## Detailed Description

## Property Documentation

### delegate : Component

The delegate is used to insert elements to QML corresponding to provided custom data. Data is defined in the the CustomSeries itself and given to the delegated elements through the "data" property.

     delegate: Rectangle {
             property var data
             Rectangle {
                 color: "tan"
                 border.color: "black"
                 border.width: 4
                 y: series.mapY(data.index + 1) - height / 2 + 1
                 x: series.mapX(data.median) - width / 2
                 height: 32
                 width: Math.abs(series.mapX(data.upperQuartile) - series.mapX(data.lowerQuartile))
             }
         }
     }

## Method Documentation

### append()

Appends an empty data item to the series.

### append(var data)

Appends a data item defined by data to the series.

### clear()

Clear all data items.

### insert(int index)

Appends an empty data item to the series at position index.

### insert(int index, var data)

Appends a data item defined by data to the series at position index.

### mapX(real x)

Returns x axis-space coordinate converted into render-space.

### mapY(real y)

Returns y axis-space coordinate converted into render-space.

### remove(int index)

Remove a data item at position index.