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.

Variants

Parameters

Returns

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


Variant "basic"Aliases basic / default / classic / dotReturns Chart

Classic two-dot dumbbell with a gray connecting bar; the workhorse of before/after comparisons.

Preview
Variant "arrow"Aliases arrow / directional / delta_arrow / flowReturns Chart

Arrowhead points from start to end so direction of change is immediate.

Preview
Variant "delta"Aliases delta / change / diff / signedReturns Chart

Bar between dots is colored by sign (green up, red down) to encode direction and magnitude.

Preview
Variant "barbell"Aliases barbell / thick / weighted / editorialReturns Chart

Square weighted endpoints on a thick gray axis - editorial barbell look for slides.

Preview
Variant "glow"Aliases glow / halo / neon / softReturns Chart

Soft halo around endpoints with thin connector for a luminous, modern feel.

Preview
Variant "dotted"Aliases dotted / dashed / minimal / thinReturns Chart

Dashed connector with hollow ring markers - lightweight and airy.

Preview
Variant "ranked"Aliases ranked / ranking / ordered / numberedReturns Chart

Adds a numeric rank in front of every label - perfect for top-N comparisons.

Preview

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.

Variantes

Paramètres

Retour

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


Variant "basic"Aliases basic / default / classic / dotReturns Chart

Dumbbell classique a deux points et barre grise - la base des comparaisons avant/apres.

Preview
Variant "arrow"Aliases arrow / directional / delta_arrow / flowReturns Chart

Une fleche pointe du depart vers l arrivee, la direction du changement est immediate.

Preview
Variant "delta"Aliases delta / change / diff / signedReturns Chart

La barre entre les points prend la couleur du signe (vert hausse, rouge baisse).

Preview
Variant "barbell"Aliases barbell / thick / weighted / editorialReturns Chart

Halteres carres sur un axe epais - look editorial pour presentations.

Preview
Variant "glow"Aliases glow / halo / neon / softReturns Chart

Halo doux autour des extremites avec connecteur fin - style lumineux et moderne.

Preview
Variant "dotted"Aliases dotted / dashed / minimal / thinReturns Chart

Connecteur en pointilles et marqueurs en anneaux - leger et aere.

Preview
Variant "ranked"Aliases ranked / ranking / ordered / numberedReturns Chart

Ajoute un rang numerique devant chaque label - ideal pour comparer un top-N.

Preview