Skip to content
Data & ChartsPro

Composed Chart

Combines bars and a trend line in a single chart.

Usage

Revenue and cost

$365k

12.8%margin up

RevenueCost

Installation

bash
npm install @wunderui/react

Then import what you need:

tsx
import { ComposedChart } from "@wunderui/react"

Examples

Bars and line

Bars for cost and a line for revenue on one axis.

Without grid

The same chart without grid lines (showGrid={false}).

In context

How the component is used inside real screens — the same compositions as the Usage section of the Figma page.

Revenue

An area chart under the headline number and its trend.

Revenue

$85k

12.4%last 6 months

Revenue vs cost

Grouped bars with legend chips; hovering a month dims the others.

Revenue vs cost

Grouped by month

RevenueCost

Trend

A curved line that draws itself in, with the value it ends on.

Trend

85

+43 since Jan

Mixed

Bars for cost and a line for revenue in one card.

Mixed

Bars and line

CostRevenue

Traffic sources

A donut with its legend; hovering a slice or a legend row puts its share in the middle.

Traffic sources

Share of sessions

Sessions48,230
  • Direct42%
  • Referral28%
  • Social18%
  • Other12%

Team profile

Two teams on one radar, with legend chips.

Team profile

Two teams compared

Team ATeam B

Completion

Radial shares of one goal.

Completion

Radial share

Audience

The radial gauge in the same card.

Audience

Share of sessions

  • Audience46%
  • Earnings24%
  • Visitors7%