36 of 48 in the Clay & Ink pack

Line Chart: Stat & chart element for AI agents

Show a trend over time: a line draws on across a soft grid and the latest value is called out.

  • 1:1stage-fit
  • 16:9native
  • 9:16stage-fit
  • 4:5stage-fit

Watermarked preview. The Clay & Ink pack includes all 48 elements, clean and editable, in every size.

Paste this into Claude Code

Use the AgentFrames Clay & Ink pack. Add a `lineChart` beat to plan.json on a `w` canvas with slots `kicker`, `title`, `points`, `labels` and `unit` from my script. Then run validate → build → qa and show me qa/contact.jpg.

Variables

The slots your agent fills from your script, through plan.json.

SlotTypeWhat it holdsExample
kickerstringKicker: Plain text. Wrap the ONE accent word in *stars*.Weekly active users
titlestringTitle: Plain text. Wrap the ONE accent word in *stars*.Usage kept *climbing*
pointsjsonPoints: JSON; keep the same shape as the default.[12,15,14,19,23,22,29,36]
labelsjsonLabels: JSON; keep the same shape as the default.["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug"]
unitstringUnit: Plain text.k

What your agent can change

Surface

Show a trend over time: a line draws on across a soft grid and the latest value is called out. Set: data. Category: stat. Canvases: ok w, k, o. Typical 3.8s; settles at 2.7s.

Editable (fill through plan.json slots)

  • kicker (string) EXAMPLE DATA: replace or get client sign-off. Plain text. Wrap the ONE accent word in *stars*.
  • title (string) EXAMPLE DATA: replace or get client sign-off. Plain text. Wrap the ONE accent word in *stars*.
  • points (json) EXAMPLE DATA: replace or get client sign-off. JSON; keep the same shape as the default.
  • labels (json) EXAMPLE DATA: replace or get client sign-off. JSON; keep the same shape as the default.
  • unit (string). Plain text.

Protected

Do not change the motion, easing, timing, the palette roles (colours come from frame.md → tokens.css), fonts, or the element's internal layout. Keep copy close to the default length (±30%) so it fits.

Safe editing

Set values in the beat's slots in plan.json, run tools/validate.mjs, rebuild, and check qa/contact.jpg. Never hand-edit the generated index.html or this element's code for a single video.

FAQ

What can my AI agent change in Line Chart?

Your agent fills the kicker, title, points, labels and unit slots through plan.json. Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Clay & Ink look.

Which aspect ratios does Line Chart support?

Line Chart is designed natively for 16:9 and stage-fits into 9:16, 4:5 and 1:1. A typical beat lasts 3.8s.

How do I get Line Chart?

Line Chart is included in the Clay & Ink pack, which is part of the AgentFrames All-access subscription along with 47 other templates in this pack and every other pack on the store. You get the full source, the editing contracts and the agent instructions.

This is 1 of 48

Get the full Clay & Ink pack

Line Chart comes as part of Clay & Ink: 48 elements, 6 starter videos and every size (16:9, 9:16, 4:5, 1:1), re-brandable to your colours in one file. Included in All-access with every other pack.

See the whole pack →

Pack showcase (16:9) · 60s · made entirely with this pack

More in Clay & Ink

See all 48 elements in Clay & Ink →