Specification
Every field of a chart specification, and the limits the renderer enforces.
schema/chartlet.schema.json
is the complete contract and can be used for editor validation.
| Field | Required | Description |
|---|---|---|
schemaVersion |
yes | Always 1. |
type |
yes | bar or line. |
title |
yes | Visible title; also the accessible name of the chart. |
data |
one of | Single series: [{ "label": "…", "value": 1 }]. |
categories + series |
one of | Several series: unique category labels, and [{ "name": "…", "values": […] }]. |
orientation |
no | vertical (default) or horizontal; bar charts only. |
description |
no | Replaces the generated description. |
source |
no | Shown below the chart in the HTML output. |
categoryAxis.title |
no | Title of the category axis. |
valueAxis.title |
no | Title of the value axis. |
valueAxis.format |
no | number (default) or percent; 0.12 is shown as 12%. |
width, height |
no | Size in pixels: 320–2400 × 240–1600, default 800 × 450. |
showValues |
no | Value labels on bars and points, default true. |
zoomSteps |
no | Two to four { "label", "from", "to" } variants, selectable in the HTML output. |
Limits
Up to 100 categories and four series. Labels must be unique. Values must be zero or have a
magnitude between 1e-100 and 1e100.