Chart Components in Python

Chart Components in Python

Components are lightweight Python specifications passed to a chart container. They describe data geometry, coordinate systems, annotations, and browser chrome; they do not render independently.

The child order controls mark layering. Chrome components of the same kind use the last declaration as their effective configuration.

Component guideWhat it controls
MarksData geometry, channels, layering, and shared mark behavior
AxesScales, domains, ticks, labels, and named axes
LegendsNamed-series keys and framework replacements
TooltipsHover fields, titles, formatting, and replacements
ColorbarsInferred continuous scales, orientation, ticks, slots, and custom replacements
Modebars and interaction controlsPan, zoom, selection, export controls, and linked viewports
AnnotationsRules, bands, text, markers, arrows, thresholds, and callouts
Triangle MeshExplicit per-triangle geometry, value or constant color, and stroke
Facets and LayersSmall multiples, shared axes, and layered mark composition

These pages explain how to use the components. Exact signatures and defaults live in Marks and components reference.

Built with Reflex