noahgdev

Bar List

Dashboards

About

A ranked list with proportional bars, for top pages, referrers, or countries. Rows sort by value, can render as links or buttons, show an optional icon, and can show each row's share of the total next to its value.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Bar List to your project and fits it to your theme.

Code

How Bar List is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { BarList } from "@/components/ui/dashboardcn-bar-list"

const pages = [
  { name: "/", value: 48_210, href: "#" },
  { name: "/pricing", value: 21_480, href: "#" },
  { name: "/docs", value: 18_930, href: "#" },
  { name: "/blog/launch-week", value: 9_120, href: "#" },
  { name: "/changelog", value: 4_305, href: "#" },
  { name: "/careers", value: 1_870, href: "#" },
]

export default function BarListDemo() {
  return (
    <div className="w-full max-w-lg">
      <div className="text-muted-foreground mb-2 flex justify-between text-xs">
        <span>Page</span>
        <span>Visitors</span>
      </div>
      <BarList data={pages} showPercentage />
    </div>
  )
}

More by noahgdev

View all
  • Donut Chart

    Donut Chart

    5
  • Funnel Chart

    Funnel Chart

    3
  • Heatmap Chart

    Heatmap Chart

    3
  • Sankey Chart

    Sankey Chart

    1
  • Segmented Meter

    Segmented Meter

    1
  • Revenue Ring Card

    Revenue Ring Card

  • Payment Summary Card

    Payment Summary Card

  • Commerce KPI Row

    Commerce KPI Row

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    751
  • Analytics Dashboard

    Analytics Dashboard

    81
  • Creator Dashboard

    Creator Dashboard

    216
  • Insights Dashboard

    Insights Dashboard

    44
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    446
  • serf dashboard

    serf dashboard

    144
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Halden — CRM Dashboard with Sales Pipeline

    Halden — CRM Dashboard with Sales Pipeline

    65