BarSet QML Type

Represents one set of bars in a bar chart. More...

Import Statement: import QtQuick.Charts .
Since: Qt Quick Ultralite 1.1


Detailed Description

A bar set contains one data value for each category. The first value of a set is assumed to belong to the first category, the second one to the second category, and so on. If the set has fewer values than the no. of categories, the missing values are assumed to be located at the end of the set.

The BarSet type is based on QtCharts.BarSet. The following members are not supported yet:

  • values (see below)
  • count
  • label, labelFont, labelColor
  • brushFilename
  • borderColor, borderWidth
  • all signals and methods

Although the values property is not supported, you can add values to the BarSet using the BarSetValue type:

ChartView {
    BarSeries {
        BarSet {
            BarSetValue { value: 7 }
            BarSetValue { value: 2 }
            BarSetValue { value: 6 }

See also AbstractBarSeries and BarSeries.

Property Documentation

color : color

The fill color of the bar set.

Available under certain Qt licenses.
Find out more.