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, highlight_index=-1, **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, focused and grouped editorial layouts (the Office variant reproduces the season-rating panel pattern).

Parameters

ParameterUsed by variants
color_hexhighlight
gridlinesbasic, cleveland, highlight, office
heightcircular
highlight_indexhighlight
paletteoffice
show_valuesbasic, cleveland, diverging
titlecircular
widthcircular
y_labelbasic, diverging, highlight, office

Returns

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


Signature

sp.lollipop(title, labels, values, *, variant="basic", color_groups=None, highlight_index=-1, **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, focalises et editoriaux groupes (la variante Office reproduit le motif des saisons IMDb de The Office).

Parametres

ParametreTypeDefautDescription
titlestrrequisTitre du graphique
labelslist[str]requisLibelles categoriels (un par baton)
valueslist[float]requisValeur par libelle
variantstr"basic"Style visuel (voir tableau)
color_groupslist[str]NoneGroupe par item - active le groupage Office
highlight_indexint-1Index a mettre en avant (Highlight); -1 = auto-max
color_hexint0x6366F1Couleur par defaut
palettelist[int]NonePalette personnalisee
show_valuesboolFalseAfficher la valeur a cote de chaque point
gridlinesboolFalseActiver la grille de fond
sort_orderstr"none""none" / "asc" / "desc" / "alpha"
widthint900Largeur (px)
heightint480Hauteur (px)

Retour

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