ham7a311

Hour Dial Stats

Dashboards

About

A 24-hour radial dial chart that shows footfall per hour as bars radiating from a clock face, with a draggable/keyboard-controlled hand that reads out the value for any hour.

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

Code

How Hour Dial Stats is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import HourDialStats from "@/components/ui/hour-dial-stats";

const DAYS = {
  Weekdays: [
    6, 0, 0, 0, 0, 0, 0, 18, 34, 41, 30, 26, 38, 44, 31, 24, 28, 40, 62, 78, 84,
    70, 46, 22,
  ],
  Weekend: [
    24, 8, 0, 0, 0, 0, 0, 6, 14, 30, 46, 58, 52, 40, 36, 44, 60, 82, 96, 104,
    98, 86, 64, 40,
  ],
};

export default function Demo() {
  return (
    <div className="flex min-h-full w-full items-center justify-center px-4 py-12 bg-[#0c0b0a] text-[#efe8dc]">
      <div className="grid w-full max-w-4xl items-center gap-8 md:grid-cols-[1fr_1.15fr]">
        <div>
          <p className="font-mono text-[11px] uppercase tracking-[0.16em] text-[#f0a36a]">
            Qahwa House · Muttrah corniche
          </p>
          <h2 className="mt-3 text-2xl font-semibold tracking-tight sm:text-3xl">
            When the café fills up
          </h2>
          <p className="mt-3 max-w-sm text-sm leading-relaxed text-[#9c968c]">
            Guests through the door each hour, averaged over September. The
            evening rush starts when the heat breaks after sunset.
          </p>
        </div>
        <HourDialStats
          theme="night"
          days={DAYS}
          hour={19}
          sunrise={5.9}
          sunset={17.75}
          title="Guests by hour"
        />
      </div>
    </div>
  );
}

More by ham7a311

View all
  • Route Globe

    Route Globe

    21
  • Glass Tiles

    Glass Tiles

    15
  • Wave Mesh

    Wave Mesh

    12
  • Uptime Ribbon

    Uptime Ribbon

    10
  • Wind Map

    Wind Map

    9
  • Glass Carousel

    Glass Carousel

    9
  • Streak Field Stats

    Streak Field Stats

    7
  • Time Window

    Time Window

    7

More in Dashboards

View all
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.4K
  • Sidebar

    Sidebar

    234
  • SaaS Template

    SaaS Template

    2.4K
  • Chat template

    Chat template

    598
  • Stats Bento

    Stats Bento

    1.1K
  • Financial Bento Grid

    Financial Bento Grid

    71
  • Statistics Card 2

    Statistics Card 2

    264
  • Course Design Cards

    Course Design Cards

    1.1K