Eduardo Calvo

Radial Time Chart

Component

About

A 24-hour clock per weekday that shows when activity happens, with rings, dots and bands variants and the busiest hour called out. From Wingtics, theme tokens only.

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

Code

How Radial Time Chart is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import Component, { type RadialTimeCell } from "@/components/ui/radial-time-chart";

// A working-week shape: morning and early-afternoon peaks, quiet nights and weekends.
const DATA: RadialTimeCell[] = Array.from({ length: 7 * 24 }, (_, i) => {
  const day = Math.floor(i / 24);
  const hour = i % 24;
  const weekend = day >= 5 ? 0.45 : 1;
  const morning = Math.exp(-((hour - 10) ** 2) / 6);
  const afternoon = 0.8 * Math.exp(-((hour - 15) ** 2) / 8);
  const evening = 0.35 * Math.exp(-((hour - 21) ** 2) / 5);
  const value = Math.round(
    400 * weekend * (morning + afternoon + evening) + 12 + ((day * 7 + hour) % 5)
  );
  return { day, hour, value };
});

export default function DemoOne() {
  return (
    <div className="flex min-h-[600px] w-full items-center justify-center bg-background p-6">
      <div className="flex w-full max-w-4xl flex-col items-center gap-6 rounded-3xl border bg-card p-8 text-card-foreground shadow-sm sm:flex-row sm:gap-10">
        <div className="max-w-xs space-y-2">
          <h2 className="font-semibold text-xl tracking-tight">
            When people visit
          </h2>
          <p className="text-muted-foreground text-sm">
            A 24-hour clock per weekday. Monday is the inner ring, Sunday the
            outer one.
          </p>
        </div>
        <Component data={DATA} size={440} variant="rings" />
      </div>
    </div>
  );
}

More by Eduardo Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    301
  • Pixel Flow Field

    Pixel Flow Field

    222
  • Siri Orb

    Siri Orb

    204
  • AI Task List

    AI Task List

    203
  • Gravity Stars

    Gravity Stars

    186
  • Cursor Follow

    Cursor Follow

    164
  • Coverflow Carousel

    Coverflow Carousel

    161
  • Agent Avatar

    Agent Avatar

    161