A comprehensive chart for visualizing categorized quantitative data, supporting vertical/horizontal layouts, stacking, custom legends, and dynamic state filtering.
Reflex wraps Recharts under the hood. This means you build your own charts using Recharts components and only bring in your theme tokens and custom components like chart_tooltip when and where you need it.
A multi-series vertical bar chart showing a comparison of discrete datasets side-by-side.
Props used: data_key, fill, radius, is_animation_active on bar; data_key, axis_line, tick_size, tick_line, tick on x_axis.
Showing total visitors for the last 6 months
A horizontal bar chart layout ideal for ranking categories or displaying long text labels.
Props used: layout="vertical" on bar_chart; type_="number", hide=True on x_axis; type_="category", data_key on y_axis.
Showing total visitors for the last 6 months
A stacked vertical bar chart with built-in legend rendering for multi-series comparisons.
Props used: stack_id, radius on bar; legend component container.
Showing total visitors for the last 6 months
Displays numeric or text labels directly above individual bars using inline tracking.
Props used: label_list inside bar component container; position, offset, fill, font_size on label_list.
Showing total visitors for the last 6 months
Demonstrates dynamic data streaming and filtering utilizing interactive dropdown components and client-side application state variables.
Props used: ClientStateVar, dynamic data_key binding on bar.
Showing total visitors for the last 6 months
Highlights an individual bar node using distinct stroke attributes based on interactive selections or active data filtering flags.
Props used: stroke, stroke_width mapped dynamically on bar.
Showing total visitors for the last 6 months
Applies explicit unique color configurations per bar instance directly parsed from properties mapped inside individual data structures.
Props used: fill bound directly to a data dictionary key rather than a static string.
Showing total visitors for the last 6 months
Renders multiple custom-colored tracking datasets concurrently and integrates a custom grid-aligned multi-device responsive footer legend.
Props used: Triple bar tracks with corresponding bg-chart-* tracking utilities.
Showing total visitors for the last 6 months
Desktop
Mobile
Tablet
The main wrapper container handling grid alignment coordinate mappings and responsive bounds for bar graphs.
rx.recharts.bar_chart(
rx.recharts.bar(
data_key="desktop",
),
data=data,
width="100%",
height=250,
)
Defines individual geometric rect bars mapped to a specific series.
rx.recharts.bar(
data_key="desktop",
fill="var(--chart-1)",
radius=4,
is_animation_active=False,
)
Enables inline annotations rendered automatically beside or within bar nodes.
rx.recharts.label_list(
data_key="desktop",
position="top",
offset=10,
fill="var(--foreground)",
font_size=12,
)
Renders horizontal baseline metadata and category text lines.
rx.recharts.x_axis(
data_key="month",
axis_line=False,
tick={"fill": "var(--foreground)", "fontSize": 10},
)
Renders vertical tracking axes and baseline ranges.
rx.recharts.y_axis(
data_key="month",
type_="category",
axis_line=False,
)
Adds coordinate guiding alignment lines to the chart viewport background.
rx.recharts.cartesian_grid(
horizontal=True,
vertical=False,
)
Adds standard series identifying tracking boxes automatically.
rx.recharts.legend()
Injects rich interactive popup elements during element hovering events.
chart_tooltip()