Skip to content

DumbbellChart

Before/after pairs on a shared category axis.

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

Category: Charts & gauges · Library: v3.56

← Component index

Gallery: DumbbellChart — src/gallery/pages/DumbbellChartPage.qml

Python: same QML type after qwinui3.setup_engine() — Python API.

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

Signature Description
requestRedraw() —

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.