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

Gauge - Single-Value Arc Indicator

Signature

sp.gauge(title, *, value, min_val=0.0, max_val=100.0, label="", variant="basic", comparison=0.0, **kwargs) -> Chart

Description

sp.gauge() is the unified entry point for the gauge family. A gauge maps a single scalar to a colored arc with optional thresholds - perfect for status / health / utilization KPIs. The variant keyword switches the geometry (half, three-quarter, full ring), the embellishments (needle, ticks, glow) and the layering (single arc vs. concentric arcs for value-vs-target).

Variants

Parameters

Returns

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


Variant "basic"Aliases basic / default / half / classicReturns Chart

Half-circle gauge with needle and color thresholds - the speedometer everyone knows.

Preview
Variant "radial"Aliases radial / donut / ring / fullReturns Chart

Full-circle donut progress arc - elegant ring KPI for dashboards.

Preview
Variant "arc270"Aliases arc270 / three_quarter / arc / wideReturns Chart

270-degree arc - more arc length for finer reading than a half-circle.

Preview
Variant "sleek"Aliases sleek / minimal / clean / flatReturns Chart

No needle, no ticks - oversized value text on a clean colored arc.

Preview
Variant "tick"Aliases tick / tickmarks / scaled / rulerReturns Chart

Half-arc with ruler tick marks every 5% and major labels every 25%.

Preview
Variant "segmented"Aliases segmented / battery / signal / chunkedReturns Chart

Battery / signal-bar style with discrete chunks lighting up by threshold.

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

Neon glow effect on the active arc - dramatic dark dashboard look.

Preview
Variant "concentric"Aliases concentric / rings / target / dualReturns Chart

Two concentric arcs: outer = current, inner = comparison or target.

Preview

Signature

sp.gauge(title, *, value, min_val=0.0, max_val=100.0, label="", variant="basic", comparison=0.0, **kwargs) -> Chart

Description

sp.gauge() est le point d entree unique pour la famille jauge. Une jauge associe un scalaire unique a un arc colore avec des seuils optionnels - parfait pour des KPIs de statut / sante / utilisation. Le mot-cle variant change la geometrie (demi, trois-quart, anneau complet), les ornements (aiguille, ticks, glow) et la composition (arc simple ou arcs concentriques pour valeur-vs-cible).

Variantes

Paramètres

Retour

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


Variant "basic"Aliases basic / default / half / classicReturns Chart

Jauge demi-cercle avec aiguille et seuils colores - le compteur que tout le monde connait.

Preview
Variant "radial"Aliases radial / donut / ring / fullReturns Chart

Arc de progression circulaire complet - KPI elegant en anneau pour tableaux de bord.

Preview
Variant "arc270"Aliases arc270 / three_quarter / arc / wideReturns Chart

Arc de 270 degres - plus de longueur pour une lecture plus fine qu un demi-cercle.

Preview
Variant "sleek"Aliases sleek / minimal / clean / flatReturns Chart

Sans aiguille ni ticks - valeur en grand sur un arc colore epure.

Preview
Variant "tick"Aliases tick / tickmarks / scaled / rulerReturns Chart

Demi-arc avec graduations regle tous les 5% et labels majeurs tous les 25%.

Preview
Variant "segmented"Aliases segmented / battery / signal / chunkedReturns Chart

Style batterie / barre de reseau avec segments discrets s allumant par seuil.

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

Effet neon sur l arc actif - look dashboard sombre tres marquant.

Preview
Variant "concentric"Aliases concentric / rings / target / dualReturns Chart

Deux arcs concentriques : externe = courant, interne = comparaison ou cible.

Preview