Stacked Bar

Horizontal 100 percent stacked bar splitting a total into colored segments with a wrapping legend of labels and percentages.

Traffic by device9,420 sessions
  • Mobile58%
  • Desktop32%
  • Tablet8%
  • Other2%

Requires shadcn/ui initialized. Run npx shadcn@latest init if you haven't.

Import & use
import { Dashboard23 } from "@/components/beste/piece/dashboard23";

<Dashboard23
  title="Traffic by device"
  total="9,420 sessions"
  segments={[
    {
      "label": "Mobile",
      "value": 58
    },
    {
      "label": "Desktop",
      "value": 32
    },
    {
      "label": "Tablet",
      "value": 8
    },
    {
      "label": "Other",
      "value": 2
    }
  ]}
/>

More Dashboard pieces

View all Dashboard
Top sources
1Direct
4,820
2Google
3,610
3Twitter
1,890
4Referral
980

Top List

dashboard5

Ranked list where each row's background bar fills proportionally to its value, with index and count on either end.

Signups382
+12%
Revenue$18.4K
+6%
MAU9.8K
+3%

Sparkline Row

dashboard30

Stacked rows combining a label, value, inline tone-colored sparkline, and emerald delta on the right.

Events this week2,840
Mon
Tue
Wed
Thu
Fri
Sat
Sun

Weekly Bars

dashboard8

Seven vertical bars for a rolling week with muted fills for past days and a tone-saturated bar for today's total.

4.6
1,284 reviews
5
980
4
208
3
62
2
24
1
10

Rating Breakdown

dashboard19

Average rating with a star, total review count, and five rows showing per-star counts with an amber proportional bar.

Revenue$48.2K
  • Subscriptions
    52%
  • One-time
    28%
  • Add-ons
    14%
  • Refunds
    6%

Donut Breakdown

dashboard9

Revenue split card with an SVG donut on the left showing weighted slices and a percentage legend on the right.

Visit
12,400
Sign-up
3,42072%
Active
1,98042%
Paid
62069%

Funnel

dashboard6

Conversion funnel stages where each row's bar narrows against the top stage and a rose drop-off percentage marks churn.