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.
Vertical sticks topped with dots - the canonical lollipop for ranked categorical values.
Horizontal Cleveland dot plot - long labels read naturally and dots align cleanly along value axis.
Sticks pivot around the mean: green points sit above, red points below - perfect for deviation analysis.
Polar layout where each category is an angular spoke - eye-catching for small alphabets and dashboard tiles.
Group-aware lollipops with per-group mean line and color band - inspired by The Office IMDb season chart.
Horizontal sticks pivoting on zero, colored by sign alone (orange ≥ 0, sky blue < 0) - the seaborn-gallery "lollipop with conditional color" recipe.
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.
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().
Batons verticaux surmontes de points - le lollipop canonique pour valeurs categorielles classees.
Cleveland dot plot horizontal - les longs libelles se lisent naturellement, les points s alignent sur l axe des valeurs.
Batons pivotent autour de la moyenne: vert au-dessus, rouge en-dessous - parfait pour les ecarts.
Disposition polaire ou chaque categorie est un rayon - tres lisible pour petits jeux et dashboards.
Lollipops groupes avec moyenne par groupe et bande de couleur - inspire du chart IMDb de The Office.
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.
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".