frame-data-chart-nyt
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese【模板: NYT 风数据图表帧】
【意图】把一段数据 (CSV / JSON / 一句结论) 做成《纽约时报》专栏感的单帧/动画图表, 适合视频片段或推特卡。Inspired by hyperframes data-chart。
【画布】1920×1080, 暖白底 或墨黑底 二选一; 文字色和背景相反。
#f7f5ee#0e0e0e【布局】
- 顶部 kicker (11px uppercase letterspace 0.14em, 颜色 = accent 红 或 mint
#a91d1d): 数据来源 + 类目, 如 "GLOBAL · WEEKLY ACTIVE USERS · 2018–2026"。#5fb38a - 大字标题 (Cheltenham / Playfair / Source Serif Pro, 5.6vw, italic 副标可选): 一句结论。结论必须从用户数据中提炼, 不是描述图。
- 图表区 (占画布 55-65%):
- 折线: 1-2 条线, 主线 ink 实心 2.5px, 次线 dashed 1.5px; 数据点用 6px 实心圆; 关键点旁标注 黑色 mono 小字。
2024 · 412M - 柱状: 全部 ink 单色或加 1 道 accent 高亮柱; 柱顶大数字; 柱底类目斜体 (Cheltenham italic)。
- 范围带 (range band): 浅灰填充 包络 + 中线 ink。
#e6e2d2
- 折线: 1-2 条线, 主线 ink 实心 2.5px, 次线 dashed 1.5px; 数据点用 6px 实心圆; 关键点旁标注
- 底部 source + footnote (10px mono, opacity 0.6): "Source: 用户数据 · Chart by html-anything"。
- 错峰揭示动画: 标题 fade-in (0s), kicker (200ms), 折线 stroke-dashoffset 1.2s ease-out (400ms), 数据标签依次 100ms 间隔。可被 关闭。
prefers-reduced-motion
【设计细节】
- 绝不: 使用 chart.js / d3 库 (除非 jsdelivr CDN 引入); 推荐手写 SVG, 不超过 80 行 inline。
- 字体: 标题 或
Source Serif Pro(无则用Cheltenham); bodyPlayfair Display或IBM Plex Sans; 数据标签Inter。IBM Plex Mono - 1 个主色 (ink) + 1 个 accent (NYT red / 编辑 mint
#a91d1d/ 暖橙#5fb38a三选一)。#d97757 - Y 轴刻度仅 hairline + 3-4 个 tick, 标签在轴外侧 mono 字。
- 严禁 grid 全屏铺线、阴影、3D 立体柱; 严禁 emoji。
- 必须用用户提供的数据。如果输入是文本结论, 自动估算合理坐标 (但要标注 "schematic"); 如果是 CSV/JSON, 直接绘制。
- 单文件 HTML; 数据点旁注释格式: 。
<text class="annot">2024 · 412M</text>
【Template: NYT-style Data Chart Frame】
【Purpose】Turn a piece of data (CSV / JSON / a conclusion sentence) into a single-frame/animated chart with the column style of The New York Times, suitable for video clips or Twitter cards. Inspired by hyperframes data-chart.
【Canvas】1920×1080, choose between warm white background or dark black background ; text color contrasts with the background.
#f7f5ee#0e0e0e【Layout】
- Top kicker (11px uppercase, letterspace 0.14em, color = accent red or mint
#a91d1d): Data source + category, e.g., "GLOBAL · WEEKLY ACTIVE USERS · 2018–2026".#5fb38a - Large headline (Cheltenham / Playfair / Source Serif Pro, 5.6vw, italic subtitle optional): A conclusion sentence. The conclusion must be extracted from the user's data, not a description of the chart.
- Chart area (occupies 55-65% of the canvas):
- Line chart: 1-2 lines, main line solid ink 2.5px, secondary line dashed 1.5px; data points are 6px solid circles; small black mono text like is labeled next to key points.
2024 · 412M - Bar chart: All bars in solid ink or with 1 accent highlighted bar; large numbers on top of bars; italic category labels at the bottom of bars (Cheltenham italic).
- Range band: Light gray fill envelope + midline ink.
#e6e2d2
- Line chart: 1-2 lines, main line solid ink 2.5px, secondary line dashed 1.5px; data points are 6px solid circles; small black mono text like
- Bottom source + footnote (10px mono, opacity 0.6): "Source: User Data · Chart by html-anything".
- Staggered reveal animation: Headline fade-in (0s), kicker (200ms), line chart stroke-dashoffset 1.2s ease-out (400ms), data labels appear sequentially with 100ms intervals. Can be disabled by .
prefers-reduced-motion
【Design Details】
- Never: Use chart.js / d3 libraries (unless imported via jsdelivr CDN); recommend handwritten SVG, no more than 80 lines of inline code.
- Fonts: Headline or
Source Serif Pro(useCheltenhamif unavailable); bodyPlayfair DisplayorIBM Plex Sans; data labelsInter.IBM Plex Mono - 1 main color (ink) + 1 accent color (choose from NYT red / editorial mint
#a91d1d/ warm orange#5fb38a).#d97757 - Y-axis ticks only have hairline + 3-4 ticks, labels are mono text outside the axis.
- Strictly prohibit full-screen grid lines, shadows, 3D solid bars; strictly prohibit emojis.
- Must use the data provided by the user. If the input is a text conclusion, automatically estimate reasonable coordinates (but label "schematic"); if it's CSV/JSON, draw directly.
- Single-file HTML; annotation format next to data points: .
<text class="annot">2024 · 412M</text>