Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Dumbbell - Before / After Two-Point Comparison

Signature

sp.dumbbell(title, labels, start, end, *, variant="basic", series_name_start="Start", series_name_end="End", **kwargs) -> Chart

Description

sp.dumbbell() is the unified entry point for the dumbbell-chart family. Each row plots two values - typically a before and an after - linked by a connector, making it the chart of choice for change, gap or comparison-over-time analyses (salary equity, turnaround KPIs, A/B uplifts, etc.). The variant keyword switches the visual treatment without touching the data.

Parameters

ParameterUsed by variants
series_namesall

Returns

Chart - object with .html property and .show() method.


Signature

sp.dumbbell(title, labels, start, end, *, variant="basic", series_name_start="Start", series_name_end="End", **kwargs) -> Chart

Description

sp.dumbbell() est le point d entree unique pour la famille dumbbell. Chaque ligne montre deux valeurs - typiquement avant/apres - reliees par un connecteur, ce qui en fait le choix naturel pour visualiser un changement, un ecart ou une evolution (equite salariale, KPIs de redressement, uplifts A/B, etc.). Le mot-cle variant change le style visuel sans toucher aux donnees.

Parametres

ParametreTypeDefautDescription
titlestrrequisTitre du graphique
labelslist[str]requisLibelles de ligne
startlist[float]requisValeurs de depart
endlist[float]requisValeurs d arrivee
variantstr"basic"Style visuel (voir tableau)
series_name_startstr"Start"Label legende serie depart
series_name_endstr"End"Label legende serie arrivee
palettelist[int]NonePalette personnalisee: [c_start, c_end, ...]
sort_orderstr"none""none", "asc" or "desc"
widthint1000Largeur (px)
heightint500Hauteur (px)

Retour

Chart - objet avec propriete .html et methode .show().