A versatile chart for visualizing continuous quantitative data trends over time or categories, supporting custom curves, annotations, multi-series tracking, and interactive bounds.
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 simple line chart showing a single quantitative data series over time with natural smoothing curves.
Props used: data_key, stroke, stroke_width, type_, dot, is_animation_active on line; data_key, axis_line, tick_size, tick_line, tick, interval on x_axis.
Showing total visitors for the last 6 months
Uses linear point-to-point interpolation paths rather than a smoothed natural curve.
Props used: type_="linear" on line.
Showing total visitors for the last 6 months
Adds standard baseline numeric annotations directly above each individual data node.
Props used: label_list inside line component container; position, offset, fill, font_size on label_list.
Showing total visitors for the last 6 months
Plots multiple independent data tracks simultaneously on a single shared grid timeline.
Props used: Multiple line components; data_key, stroke configurations mapping unique values.
Showing total visitors for the last 6 months
Combines data tracking nodes with custom semantic text bindings extracted dynamically directly out of individual metadata collections.
Props used: label_list rendering a specific secondary data_key attribute from data rows.
Showing total visitors for the last 6 months
Cleans up layout clutter by hiding dots entirely to emphasize clean structural trends.
Props used: dot=False on line.
Showing total visitors for the last 6 months
Demonstrates time-series layout optimization combining multi-day boundaries with dense categorical intervals.
Props used: min_tick_gap, interval="preserveStartEnd" on x_axis.
Showing total visitors for the last 3 months
Integrates multiple line series data layouts with a custom styled responsive inline flex-row footer legend.
Props used: Pure python *[] list comprehensions alongside semantic tracking containers mapping series identifications.
Showing total visitors for the last 6 months
Desktop
Mobile
The core layout container coordinate mapping viewport for drawing linear graphs.
rx.recharts.line_chart(
rx.recharts.line(
data_key="desktop",
),
data=data,
width="100%",
height=250,
)
Defines an individual linear path stroke segment mapped onto a dataset.
rx.recharts.line(
data_key="desktop",
stroke="var(--chart-1)",
stroke_width=2,
type_="natural",
dot=False,
is_animation_active=False,
)
Appends context descriptive floating tags immediately following line graph nodes.
rx.recharts.label_list(
data_key="desktop",
position="top",
offset=20,
fill="var(--foreground)",
font_size=12,
)
Builds horizontal grid tracking indicators.
rx.recharts.x_axis(
data_key="month",
axis_line=False,
tick={"fill": "var(--foreground)", "fontSize": 10},
)
Builds vertical tracking grids and value thresholds.
rx.recharts.y_axis(
type_="number",
hide=True,
)
Provides clean backdrop grid intersections.
rx.recharts.cartesian_grid(
horizontal=True,
vertical=False,
)
Hover actions triggering beautiful popover layout summaries.
chart_tooltip()