Skip to main content
The chart template renders interactive charts using Chart.js configuration.
Not the same as the Chart component in @std/dynamic. The top-level chart template and the Chart component used inside an @std/dynamic tree are rendered by two different components with different prop shapes — components/templates/ChartRenderer.tsx for the top-level template, and the entry in lib/json-render/catalog.ts for @std/dynamic. If you’re composing a dashboard, use the shape documented in Dynamic Template. A payload that renders correctly in one context will not work in the other.

Content Schema

string
required
Chart type: bar, line, pie, doughnut, radar, polarArea, scatter, bubble
object
required
Chart.js data configuration with labels and datasets
object
Chart.js options for customization (scales, plugins, etc.)

Supported Chart Types

Example: Bar Chart

Example: Line Chart with Multiple Datasets

Example: Pie Chart

Use Cases

  • Analytics dashboards: Traffic, revenue, user metrics
  • Reports: Visual data summaries
  • Comparisons: Before/after, year-over-year
  • Distributions: Market share, survey results