ProductBrand
Join us
Foundations
  • Introduction
  • Colors
  • Typography
  • Icons
  • Illustrations
  • Logos
  • Shadows
Components
  • Accordion
  • Alert Dialog
  • Avatar
  • Badge
  • Button
  • Calendar
  • Card
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Context Menu
  • Date Picker
  • Dialog
  • Drawer
  • Dropdown Menu
  • Fluid Avatar
  • Hover Scroll Text
  • Input
  • Kbd
  • Popover
  • Progress Bar
  • Radio Group
  • Scroll Area
  • Select
  • Selectors
  • Separator
  • Separator Dot
  • Shimmer Text
  • Skeleton
  • Slider
  • Switch
  • Tabs
  • Textarea
  • Toast
  • Tooltip
Compositions
  • Empty State
  • File Attachment
  • Floating Bar
  • Input Banner
  • Markdown Editor
  • Media Controls
  • Product Feature Banner
  • Panels
  • Sidebar
  • Reasoning Trace
  • Pagination
  • Data Table
  • Breadcrumb
  • Thread Outline
Inline
  • Overview
  • Stat Tile
  • Metric Row
  • Comparison Table
  • Chart Card
  • Trend Tile
  • Cite
  • Custom
  • Agent skill

Chart Card

A titled card that frames the design-system chart container. Pass a ChartConfig and a single recharts chart as children - ChartCard supplies the header, spacing, and the themed container so the chart looks native to Rogo in both themes.

Examples

A framed chart in chat
Show revenue vs. expenses by quarter.

Revenue outpaced expenses in every quarter this year:

Quarterly performance
Revenue vs. expenses ($M)

Props

PropTypeDescription
titleReactNodeCard title.
subtitleReactNodeOptional muted subtitle.
actionReactNodeOptional top-right slot (range toggle, badge).
configChartConfigSeries config passed to the chart container.
childrenrecharts chartA single chart element (BarChart, LineChart, …).
chartClassNamestringClass applied to the chart container (e.g. height).
tsx
<ChartCard title="Quarterly performance" subtitle="Revenue vs. expenses ($M)" config={config}>
  <BarChart data={data}>
    <CartesianGrid vertical={false} />
    <XAxis dataKey="quarter" tickLine={false} axisLine={false} />
    <ChartTooltip content={<ChartTooltipContent />} />
    <Bar dataKey="revenue" fill="var(--color-revenue)" radius={2} />
  </BarChart>
</ChartCard>

Agent context

Use ChartCard for a framed chart. Pass a ChartConfig and a single recharts chart as children. Paint every series with rgb(var(--chart-N)); a lone series uses --chart-1 (green). The default tooltip is pre-styled - use it as-is.

PreviousComparison Table
NextTrend Tile
Made in NYC© 2026 Rogo Technologies Inc.

Design at Rogo

We’re redesigning an entire industry. Come design it with us.

See open roles

Design at Rogo

  • How we workThe mission of design at Rogo, and the open roles
  • About RogoThe company and the product