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.
Classic two-dot dumbbell with a gray connecting bar; the workhorse of before/after comparisons.
Arrowhead points from start to end so direction of change is immediate.
Bar between dots is colored by sign (green up, red down) to encode direction and magnitude.
Square weighted endpoints on a thick gray axis - editorial barbell look for slides.
Soft halo around endpoints with thin connector for a luminous, modern feel.
Dashed connector with hollow ring markers - lightweight and airy.
Adds a numeric rank in front of every label - perfect for top-N comparisons.
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().
Dumbbell classique a deux points et barre grise - la base des comparaisons avant/apres.
Une fleche pointe du depart vers l arrivee, la direction du changement est immediate.
La barre entre les points prend la couleur du signe (vert hausse, rouge baisse).
Halteres carres sur un axe epais - look editorial pour presentations.
Halo doux autour des extremites avec connecteur fin - style lumineux et moderne.
Connecteur en pointilles et marqueurs en anneaux - leger et aere.
Ajoute un rang numerique devant chaque label - ideal pour comparer un top-N.