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

Lollipop - Categorical Value Sticks

Signature

sp.lollipop(title, labels, values, *, variant="basic", color_groups=None, **kwargs) -> Chart

Description

sp.lollipop() is the unified entry point for the lollipop family. Each item becomes a thin stick capped by a dot - lighter ink than a bar chart for the same ranking, and the family includes circular, diverging and grouped editorial layouts (the Office variant reproduces the season-rating panel pattern). To spotlight a single point on any variant, chain the generic .highlight(index) method instead of picking a dedicated variant for it.

Variants

Parameters

Returns

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


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

Vertical sticks topped with dots - the canonical lollipop for ranked categorical values.

Preview
Variant "cleveland"Aliases cleveland / horizontal / h / rowReturns Chart

Horizontal Cleveland dot plot - long labels read naturally and dots align cleanly along value axis.

Preview
Variant "diverging"Aliases diverging / div / signed / deltaReturns Chart

Sticks pivot around the mean: green points sit above, red points below - perfect for deviation analysis.

Preview
Variant "circular"Aliases circular / polar / radial / roundReturns Chart

Polar layout where each category is an angular spoke - eye-catching for small alphabets and dashboard tiles.

Preview
Variant "office"Aliases office / grouped / season / panelReturns Chart

Group-aware lollipops with per-group mean line and color band - inspired by The Office IMDb season chart.

Preview
Variant "conditional_color"Aliases conditional_color / conditional / threshold_colorReturns Chart

Horizontal sticks pivoting on zero, colored by sign alone (orange ≥ 0, sky blue < 0) - the seaborn-gallery "lollipop with conditional color" recipe.

Preview
Variant "trend"Aliases trend / colormap / arrow / annotatedReturns Chart

Sticks colored by a continuous diverging colormap (magnitude from zero), a smoothed moving-average trend line, and an arrow annotation on the most extreme point - matching the "lollipop with colormap and arrow" gallery recipe.

Preview

Signature

sp.lollipop(title, labels, values, *, variant="basic", color_groups=None, **kwargs) -> Chart

Description

sp.lollipop() est le point d entree unique pour la famille lollipop. Chaque item devient un baton fin termine par un point - moins d encre qu un bar chart pour le meme classement, et la famille couvre des layouts circulaires, divergents et editoriaux groupes (la variante Office reproduit le motif des saisons IMDb de The Office). Pour mettre en avant un seul point sur n'importe quelle variante, chainez la methode generique .highlight(index) plutot que de choisir une variante dediee.

Variantes

Paramètres

Retour

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


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

Batons verticaux surmontes de points - le lollipop canonique pour valeurs categorielles classees.

Preview
Variant "cleveland"Aliases cleveland / horizontal / h / rowReturns Chart

Cleveland dot plot horizontal - les longs libelles se lisent naturellement, les points s alignent sur l axe des valeurs.

Preview
Variant "diverging"Aliases diverging / div / signed / deltaReturns Chart

Batons pivotent autour de la moyenne: vert au-dessus, rouge en-dessous - parfait pour les ecarts.

Preview
Variant "circular"Aliases circular / polar / radial / roundReturns Chart

Disposition polaire ou chaque categorie est un rayon - tres lisible pour petits jeux et dashboards.

Preview
Variant "office"Aliases office / grouped / season / panelReturns Chart

Lollipops groupes avec moyenne par groupe et bande de couleur - inspire du chart IMDb de The Office.

Preview
Variant "conditional_color"Aliases conditional_color / conditional / threshold_colorReturns Chart

Batons horizontaux pivotant sur zero, colores selon le seul signe (orange ≥ 0, bleu ciel < 0) - la recette "lollipop with conditional color" de la galerie seaborn.

Preview
Variant "trend"Aliases trend / colormap / arrow / annotatedReturns Chart

Batons colores par un degrade divergent continu (magnitude depuis zero), une courbe de tendance lissee, et une fleche d'annotation sur le point le plus extreme - la recette "lollipop with colormap and arrow".

Preview