Skip to content
DocsChartsKey timelineLast updated Nov 2, 2026

Key timeline

API keys, their use and when they expire. Sample data: seven keys from Sep 16 to Nov 14, rotation on Sat 24, prod-runtime at 1.2M calls in 30 days.

API keys: calls and expiriesCalls per day over the last 30 days for 7 API keys; 3 keys expire in the next 30 days, and the rotation is set 8 days from today (rotate sat 24).prod-runtimerefunds-legacycrm-synceval-runnerci-deploybilling-exportdash-readonlyROTATE SAT 24TODAY→1.2M0→42K3K260→900→12KSEP 16OCT 1OCT 31NOV 14CALLS PER DAYNEW NETWORKEXPIRES SOONROTATION WINDOW
API keys: calls and expiries
KeyCallsExpiresFlag
prod-runtime1.2MJAN 12
refunds-legacy0In 17 daysNo calls
crm-sync42KFEB 3Call from a new network
eval-runner3KIn 12 days
ci-deploy260In 14 days
billing-export900MAR 30
dash-readonly12KAPR 18
API keys: calls and expiriesCalls per day over the last 30 days for 7 API keys; 3 keys expire in the next 30 days, and the rotation is set 8 days from today (rotate sat 24).prod-runtimerefunds-legacycrm-synceval-runnerci-deploybilling-exportdash-readonlyROTATE SAT 24TODAY→1.2M0→42K3K260→900→12KSEP 16NOV 14CALLS PER DAYNEW NETWORKEXPIRES SOONROTATION WINDOW
API keys: calls and expiries
KeyCallsExpiresFlag
prod-runtime1.2MJAN 12
refunds-legacy0In 17 daysNo calls
crm-sync42KFEB 3Call from a new network
eval-runner3KIn 12 days
ci-deploy260In 14 days
billing-export900MAR 30
dash-readonly12KAPR 18

Installation

  1. 1

    Set up the registry once

    Your token in .env and @chartory in components.json. Skip this when another chart is already installed.

    Installation guide
  2. 2

    Add the chart

    One command adds the Key timeline component to your project.

    npx shadcn add @chartory/key-timeline
  3. 3

    Use it

    Pass your rows. The props are the Figma properties.

    usage.tsx
    import { KeyTimeline }  from "@/components/chartory/key-timeline"<KeyTimeline  data={apiKeys}  size="m"  legend/>

Props

<KeyTimeline>

Every prop but data is a Figma property with the same name and values.

PropTypeDefault
data: The chart's data. The tables below list every field.KeyTimelineDataRequired
size: The size class. Each one is laid out again from the data."xs" | "s" | "m" | "l""m"
legend: Shows the legend row under the plot.booleantrue
color: The data colour of the primary marks (data/primary)."cat-1" | "cat-2" | "cat-3" | "cat-4""cat-1"

KeyTimelineData

The data prop: one object for the whole chart.

PropTypeDefault
days: The number of days.numberRequired
today: Where today is on the axis.numberRequired
keys: One entry per key: see KeyTimelineLane.KeyTimelineLane[]Required
rotate: The rotation window: first day, last day and label.KeyTimelineRotateRequired
xl: The x axis labels: [position, label] pairs.[number, string][]Required

KeyTimelineLane

One object per entry in keys.

PropTypeDefault
label: The name shown on the chart.stringRequired
calls: The calls per day.number[]Required
total: The total as shown.stringRequired
exp?: Expiry day (0..days) or a later date as text.number—
expText?: The expiry as shown.string—
tone?: The tone of the mark (a colour token)."warn" | "bad"—
silent?: Silent since this day.number—
newNet?: The day of the call from a new network.number—

KeyTimelineRotate

The rotate object.

PropTypeDefault
d0: The first day.numberRequired
d1: The last day.numberRequired
text: The label as shown.stringRequired

The data as a JSON Schema: schemas/key-timeline.json

Key timeline: a React and Figma chart in four sizes

What does a key timeline show?

A key timeline gives each API key a lane with its calls per day, its expiry and planned rotations, and flags keys used from a new network. Use it for key rotation, secrets reviews and access audits.

Chartory ships it as a Figma component and a React component with the same name. The code installs from the shadcn registry with one command and lands in your project as a file you own.

What is the Key timeline component?

It is one <KeyTimeline> component. Its props are the Figma properties with the same names and values, and the props table above lists them. The data is keys with use per day, expiry and events.

Sizes XS, S, M and L re-lay the chart out from the data instead of scaling it, so labels stay readable at every size.

When should I use it?

  • Is it keys over time? Yes means the key timeline fits.
  • Do expiry dates matter? Yes means the key timeline fits.
  • Is it keys, not sessions? Yes means the key timeline fits.

When does another type fit better?

  • What one key can reach. Use Reach tree instead.
  • Plain usage. Use Horizontal bars instead.
  • Signed-in devices. Use Session lanes instead.

Key timeline questions

Installing, data, Figma and plans.

  • Yes. It installs through the shadcn registry with the shadcn CLI, and the file lands in your project.

Stay in the loop

New charts, by email.

Get an email when new chart types and releases ship.

Unsubscribe any time.