Skip to content

DumbbellChart

Before/after pairs on a shared category axis.

import QWinUI3.Extras · src/extras/QWinUI3/Extras/DumbbellChart.qml

Category: Charts & gauges · Library: v2.80

← Component index

Gallery: DumbbellChartsrc/gallery/pages/DumbbellChartPage.qml

Extends Control.

Example

DumbbellChart {
    pairs: [
        { label: qsTr("East"), from: 42, to: 58 },
        { label: qsTr("West"), from: 31, to: 29 }
    ]
}

Notes

Experimental. Prefer BarChart.series grouped columns for more than two states.

API

Properties

Name Type Description
pairs var
title string
emptyText string
fromName string
toName string
fromColor color
toColor color
interactive bool
isInteractive alias
hoverIndex int
isEmpty bool

Signals

No custom signals (use inherited signals from the base type).

Methods

No custom methods (use inherited methods from the base type).

Inherited from Control

Also available (base type / Qt Quick Controls):

  • padding
  • font
  • background / contentItem

Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.