# Trend Line with Crosshair: Stat & chart element for AI agents

> Trend with a crosshair: axes and two lines draw (everyone in grey, the key series in the accent), a crosshair lands on the point that matters and an accent callout names it

Canonical page: https://agentframes.ai/elements/margin/line-chart/
Markdown: https://agentframes.ai/elements/margin/line-chart.md

## Overview

- Name: Trend Line with Crosshair (`lineChart`), an element: one HyperFrames block per size
- Part of: the [Margin](https://agentframes.ai/packs/margin.md) pack (23 of 48). Available only through the All-access subscription.
- Category: Stat & chart
- Purpose: Trend with a crosshair: axes and two lines draw (everyone in grey, the key series in the accent), a crosshair lands on the point that matters and an accent callout names it
- Pack: [Margin](https://agentframes.ai/packs/margin.md), included in All-access (from $14/month billed annually ($168/year), or $19 monthly)
- Subscribe: POST https://agentframes.ai/api/checkout/subscribe with interval=month or interval=year (optional currency=USD|GBP|EUR|AUD|CAD; 303 redirect to Stripe checkout; a human pays there). Then download any pack with the subscriber key: https://agentframes.ai/account.md
- Aspects: 16:9 (native), 9:16 (native), 4:5 (native), 1:1 (native)
- Canvases: works on sheet (off-white page) (`a`), sheet 2 (`g`), frame (warm grey) (`f`); avoid none
- Typical duration: 6s
- Speaker-safe: no
- Preview video (watermarked): https://agentframes.ai/media/margin/line-chart.mp4
- Poster: https://agentframes.ai/media/margin/line-chart.jpg
- Licence: [AgentFrames Licence](https://agentframes.ai/licence.md)

## Paste this into Claude Code

```text
Use the AgentFrames Margin pack. Add a `lineChart` beat to plan.json on a `a` canvas with slots `cues`, `eyebrow`, `title`, `xLabels`, `baseline`, `trend`, `at`, `callout`, `keyLabel` and `baseLabel` from my script. Then run validate → build → qa and show me qa/contact.jpg.
```

## Variables

| Variable | Type | Label | Description | Default |
|---|---|---|---|---|
| `cues` | string | Cues | JSON array of seconds from the start of this scene, one per item: when the speaker says each item (take them from the transcript). [] spreads the items evenly through the first half of the scene. | [] |
| `eyebrow` | string | Eyebrow | Plain text. | early-career hiring, indexed |
| `title` | string | Title | Plain text. | The gap *opened* quietly |
| `xLabels` | string | X Labels | JSON string; see constraints.json. | ["2022","2023","2024","2025","2026"] |
| `baseline` | string | Baseline | JSON string; see constraints.json. | [100,101,99,96,94] |
| `trend` | string | Trend | JSON string; see constraints.json. | [100,98,92,85,81] |
| `at` | number | At | Plain text. | 4 |
| `callout` | string | Callout | Plain text. | 13 points below |
| `keyLabel` | string | Key Label | Plain text. | most exposed |
| `baseLabel` | string | Base Label | Plain text. | everyone |

## What your agent can change

Trend with a crosshair: axes and two lines draw (everyone in grey, the key series in the accent), a crosshair lands on the point that matters and an accent callout names it

Native 1920x1080, eight seconds at 30fps. Use the matching native aspect variant; do not stretch a finished scene.

### Author and mount

The HTML is editable HyperFrames source. Change its native variable declarations or mount it with a unique host id, data-composition-id="af-margin-line-chart-16x9", data-composition-src="compositions/af-margin-line-chart-16x9.html" and data-variable-values. Copy every manifest file to its target and include the af-margin-runtime dependency. The shipped projects already install this closure; private ZIP delivery supplies no hosted add endpoint.

### Content

- ground (enum):  Default "canvas"
- cues (string): JSON array of seconds from the start of this scene, one per item: when the speaker says each item (take them from the transcript). [] spreads the items evenly through the first half of the scene. Default "[]"
- eyebrow (string): Plain text. Default "early-career hiring, indexed"
- title (string): Plain text. Default "The gap *opened* quietly"
- xLabels (string): JSON string; see constraints.json. Default "[\"2022\",\"2023\",\"2024\",\"2025\",\"2026\"]"
- baseline (string): JSON string; see constraints.json. Default "[100,101,99,96,94]"
- trend (string): JSON string; see constraints.json. Default "[100,98,92,85,81]"
- at (number): Plain text. Default 4
- callout (string): Plain text. Default "13 points below"
- keyLabel (string): Plain text. Default "most exposed"
- baseLabel (string): Plain text. Default "everyone"

Arrays and objects are JSON strings at the native boundary. constraints.json describes their decoded shape and numeric/text limits; failures report marginError on the root and an actionable console message. n is zero-based and must index the supplied slides or covers. Export a settled frame at 2.4s for stills; change n and repeat for a carousel deck/highlight set. Thumbnail layout accepts face, versus and list.

### Creator and palette

creator, handle, channel, tagline, colourway (sage/clay/night), accent (empty or six-digit hex), monogram (1-3 characters), logo, avatar, subscribers, ctaFollow, ctaLink, ctaCode are instance-local. Blank automatic name/by/sign/button/etc slots derive from the current kit rather than preserving the fictional demo creator. Image paths can be local project assets, https URLs or inline data; ship new local images in the manifest. Bundled photos are generated fictional example media.

### Geometry and timing

Full native canvas is the default. stageX, stageY, stageWidth, stageHeight place the design in an authored speaker zone, within the canvas; stageKind=full/gfx/dock selects its native composition logic and stageSpeaker describes the speaker side. transparent clears the outer canvas for overlays. delay offsets the entrance; sceneDuration supplies the visible beat length (0.1-8s), and delay must be shorter. Motion is paced for reading on a talking-head video and automatically tightens to finish inside a short sceneDuration; the design draws out over its final 0.4s. Where the design has a cues input, set it from the transcript so each item lands as it is spoken. The block owns a paused eight-second timeline; clip a shorter beat at its parent mount. Extend HTML duration, manifest duration and timeline hold together for longer scenes.

The runtime helper creates local tokens and drawing state for each host. It preserves GSAP frame quantization and deterministic hooks; no plan.json, global OC brand or proprietary build tool is required. See the pack licence, HyperFrames NOTICE and local font licences.

## FAQ

### What can my AI agent change in Trend Line with Crosshair?

Your agent fills the `cues`, `eyebrow`, `title`, `xLabels`, `baseline`, `trend`, `at`, `callout`, `keyLabel` and `baseLabel` slots through the block's data-variable-values (or the starter project's variables). Motion, timing, palette, fonts and the internal layout are protected, so the result keeps the Margin look.

### Which aspect ratios does Trend Line with Crosshair support?

Trend Line with Crosshair is designed natively for 16:9, 9:16, 4:5 and 1:1. A typical beat lasts 6s.

### How do I get Trend Line with Crosshair?

Trend Line with Crosshair is included in the Margin 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.

## More in Margin

- [Quiet Bar Chart](https://agentframes.ai/elements/margin/bar-chart.md): Bar chart: the baseline draws, grey bars grow on cues with serif values counting, the key bar is the accent and a callout chip lands over it
- [Before / After Cards](https://agentframes.ai/elements/margin/before-after.md): Before / after: the before card focuses in alone, the after card joins (reflow), an arrow draws between them and the before card greys out under a diagonal strike
- [Big Serif Stat](https://agentframes.ai/elements/margin/big-stat.md): Big stat: a huge serif number counts up to its value with the suffix in the accent, a serif line explains it, a delta chip joins and a SOURCE footnote lands last
- [Quick Checklist](https://agentframes.ai/elements/margin/checklist.md): Checklist: a white card with a serif title holds icon rows; each gets its done-dot on its cue, then the one that matters most fills in the accent

## Community

Coming soon.
