@opendata-ai/openchart-core 9.0.0-rc.2 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,6 +37,105 @@
37
37
  },
38
38
  "ChartSpec": {
39
39
  "anyOf": [
40
+ {
41
+ "allOf": [
42
+ {
43
+ "$ref": "#/definitions/ChartSpecBase"
44
+ },
45
+ {
46
+ "type": "object",
47
+ "required": [
48
+ "data",
49
+ "encoding",
50
+ "mark"
51
+ ],
52
+ "properties": {
53
+ "mark": {
54
+ "anyOf": [
55
+ {
56
+ "type": "string",
57
+ "const": "errorbar"
58
+ },
59
+ {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "properties": {
63
+ "ticks": {
64
+ "type": "boolean",
65
+ "description": "Draw decorative end caps on an explicit interval; default false."
66
+ },
67
+ "type": {
68
+ "type": "string",
69
+ "const": "errorbar"
70
+ },
71
+ "size": {
72
+ "type": "number",
73
+ "description": "Bar/column marks: fixed bar thickness in pixels. When set, bars are this height (horizontal) or width (vertical), centered within the band.\n\nPoint marks: the dot RADIUS in pixels (default 5, typical 2-12). This is NOT Vega-Lite's point `size`, which is an area in px^2 -- a VL size of 110 corresponds to `size: 6` here (r = sqrt(area / pi)). Validation rejects values above 50 with the conversion."
74
+ },
75
+ "filled": {
76
+ "type": "boolean",
77
+ "description": "Whether the mark is filled (vs stroked only)."
78
+ },
79
+ "opacity": {
80
+ "type": "number",
81
+ "description": "Default opacity (0-1)."
82
+ },
83
+ "fillOpacity": {
84
+ "type": "number",
85
+ "description": "Fill opacity (0-1), independent of stroke (Vega-Lite aligned).\n\nOn a binned bar with more than one color group this defaults to 0.55 so overlapping distributions stay readable; set it explicitly to override. On an area, setting it switches the fill from the default gradient to a flat translucent series color — gradients and overlapping fills don't mix."
86
+ },
87
+ "fill": {
88
+ "anyOf": [
89
+ {
90
+ "type": "string"
91
+ },
92
+ {
93
+ "$ref": "#/definitions/GradientDef"
94
+ }
95
+ ],
96
+ "description": "Default fill color or gradient."
97
+ },
98
+ "stroke": {
99
+ "type": "string",
100
+ "description": "Default stroke color."
101
+ },
102
+ "strokeWidth": {
103
+ "type": "number",
104
+ "description": "Default stroke width."
105
+ },
106
+ "tooltip": {
107
+ "type": [
108
+ "boolean",
109
+ "null"
110
+ ],
111
+ "description": "Tooltip behavior. null disables tooltips."
112
+ },
113
+ "clip": {
114
+ "type": "boolean",
115
+ "description": "Clip marks to the chart area."
116
+ },
117
+ "fillPattern": {
118
+ "type": "string",
119
+ "enum": [
120
+ "auto",
121
+ "none"
122
+ ],
123
+ "description": "Pattern-fill reinforcement for filled marks (bar, area, arc).\n\n- `'auto'`: assign a per-series SVG pattern (diagonal hatch, dots, crosshatch, vertical lines) layered over each series color so series remain distinguishable without color vision. Marks too small to show a legible pattern keep their solid fill.\n- `'none'` (default): solid fills only."
124
+ }
125
+ },
126
+ "required": [
127
+ "type"
128
+ ]
129
+ }
130
+ ]
131
+ },
132
+ "encoding": {
133
+ "$ref": "#/definitions/ErrorbarEncoding%3CDataRow%3E"
134
+ }
135
+ }
136
+ }
137
+ ]
138
+ },
40
139
  {
41
140
  "allOf": [
42
141
  {
@@ -2239,9 +2338,13 @@
2239
2338
  "additionalProperties": false,
2240
2339
  "description": "Radial gradient definition. Coordinates are in [0,1] normalized space relative to the mark's bounding box."
2241
2340
  },
2242
- "ArcEncoding<DataRow>": {
2341
+ "ErrorbarEncoding<DataRow>": {
2243
2342
  "type": "object",
2244
2343
  "properties": {
2344
+ "description": {
2345
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
2346
+ "description": "Accessible mark description; static output exposes it as a native title."
2347
+ },
2245
2348
  "x": {
2246
2349
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
2247
2350
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -2257,6 +2360,9 @@
2257
2360
  },
2258
2361
  {
2259
2362
  "$ref": "#/definitions/ConditionalValueDef%3CDataRow%3E"
2363
+ },
2364
+ {
2365
+ "$ref": "#/definitions/ValueDef"
2260
2366
  }
2261
2367
  ],
2262
2368
  "description": "Color channel. Required for arc marks (determines pie/donut slice coloring). Optional for all other marks -- used for series differentiation on multi-series charts, or heatmap intensity. Accepts a conditional definition to apply colors based on data predicates, or a bare `{ value }` constant (VL aligned; expanded to the mark-level fill/stroke)."
@@ -2333,7 +2439,7 @@
2333
2439
  },
2334
2440
  "theta": {
2335
2441
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
2336
- "description": "Canonical value channel for arc marks (quantitative — the slice value)."
2442
+ "description": "Angular position (slice value) for arc marks (pie/donut), the canonical value channel in v8. Waffle and parliament marks accept it too (the same part-to-whole value channel). The compiler populates internal `y` from `theta`; authored `y` aliases are rejected. Not used by any other mark type."
2337
2443
  },
2338
2444
  "facet": {
2339
2445
  "$ref": "#/definitions/FacetChannel%3CDataRow%3E",
@@ -2349,11 +2455,59 @@
2349
2455
  }
2350
2456
  },
2351
2457
  "required": [
2352
- "theta",
2353
- "color"
2458
+ "x",
2459
+ "y"
2354
2460
  ],
2355
2461
  "additionalProperties": false,
2356
- "description": "Encoding for arc marks (pie/donut charts).\n- `theta`: required (quantitative — the canonical slice value channel)\n- `color`: required (nominal/ordinal — the category)"
2462
+ "description": "Explicit interval bounds; runtime validation requires exactly one of x2/y2."
2463
+ },
2464
+ "DescriptionEncoding<DataRow>": {
2465
+ "anyOf": [
2466
+ {
2467
+ "type": "object",
2468
+ "additionalProperties": false,
2469
+ "properties": {
2470
+ "type": {
2471
+ "$ref": "#/definitions/FieldType",
2472
+ "description": "How to interpret the field values.\n- quantitative: continuous numbers (scale: linear)\n- temporal: dates/times (scale: time)\n- nominal: unordered categories (scale: ordinal)\n- ordinal: ordered categories (scale: ordinal)"
2473
+ },
2474
+ "format": {
2475
+ "type": "string",
2476
+ "description": "Format string for values (Vega-Lite aligned). For quantitative fields: d3-format string (e.g. \",.0f\", \"$,.2f\"), or semantic keyword `'percent'` / `'currency'`. For temporal fields: d3-time-format string (e.g. \"%Y\", \"%b %d\"). Used in tooltips; `axis.format` takes precedence for axis tick labels."
2477
+ },
2478
+ "field": {
2479
+ "type": "string",
2480
+ "description": "Data field name (column in the data array).\n\nWhen using `ChartSpec<TData>` with a typed data array, this is constrained to the actual column names of `TData`. Typos fail at compile time and IDEs autocomplete your column names."
2481
+ }
2482
+ },
2483
+ "required": [
2484
+ "field"
2485
+ ]
2486
+ },
2487
+ {
2488
+ "type": "object",
2489
+ "properties": {
2490
+ "value": {
2491
+ "type": "string"
2492
+ }
2493
+ },
2494
+ "required": [
2495
+ "value"
2496
+ ],
2497
+ "additionalProperties": false
2498
+ }
2499
+ ],
2500
+ "description": "Authored mark text, kept verbatim for strings and formatted for numeric fields."
2501
+ },
2502
+ "FieldType": {
2503
+ "type": "string",
2504
+ "enum": [
2505
+ "quantitative",
2506
+ "temporal",
2507
+ "nominal",
2508
+ "ordinal"
2509
+ ],
2510
+ "description": "Data field type, following Vega-Lite conventions."
2357
2511
  },
2358
2512
  "EncodingChannel<DataRow>": {
2359
2513
  "type": "object",
@@ -2366,6 +2520,34 @@
2366
2520
  "$ref": "#/definitions/FieldType",
2367
2521
  "description": "How to interpret the field values.\n- quantitative: continuous numbers (scale: linear)\n- temporal: dates/times (scale: time)\n- nominal: unordered categories (scale: ordinal)\n- ordinal: ordered categories (scale: ordinal)"
2368
2522
  },
2523
+ "interval": {
2524
+ "anyOf": [
2525
+ {
2526
+ "type": "string",
2527
+ "const": "day"
2528
+ },
2529
+ {
2530
+ "type": "string",
2531
+ "const": "week"
2532
+ },
2533
+ {
2534
+ "type": "string",
2535
+ "const": "month"
2536
+ },
2537
+ {
2538
+ "type": "string",
2539
+ "const": "quarter"
2540
+ },
2541
+ {
2542
+ "type": "string",
2543
+ "const": "year"
2544
+ },
2545
+ {
2546
+ "type": "number"
2547
+ }
2548
+ ],
2549
+ "description": "Temporal bar position interval; numbers are milliseconds. Bar marks only."
2550
+ },
2369
2551
  "aggregate": {
2370
2552
  "$ref": "#/definitions/AggregateOp",
2371
2553
  "description": "Optional aggregate to apply before encoding."
@@ -2509,16 +2691,6 @@
2509
2691
  "additionalProperties": false,
2510
2692
  "description": "A single encoding channel mapping a data field to a visual property.\n\nFollows the Vega-Lite encoding model: field identifies the column, type determines how the engine interprets values, aggregate applies a transformation before encoding."
2511
2693
  },
2512
- "FieldType": {
2513
- "type": "string",
2514
- "enum": [
2515
- "quantitative",
2516
- "temporal",
2517
- "nominal",
2518
- "ordinal"
2519
- ],
2520
- "description": "Data field type, following Vega-Lite conventions."
2521
- },
2522
2694
  "AggregateOp": {
2523
2695
  "type": "string",
2524
2696
  "enum": [
@@ -3234,6 +3406,19 @@
3234
3406
  "additionalProperties": false,
3235
3407
  "description": "Facet channel definition: partitions data into small-multiple panels.\n\nUnlike positional channels, facet only needs a field, a categorical type, and optional layout hints (columns, sort). It does not carry scale/axis config because it produces a grid, not a visual encoding."
3236
3408
  },
3409
+ "FrameConfig": {
3410
+ "type": "object",
3411
+ "properties": {
3412
+ "left": {
3413
+ "type": "number"
3414
+ },
3415
+ "right": {
3416
+ "type": "number"
3417
+ }
3418
+ },
3419
+ "additionalProperties": false,
3420
+ "description": "Fixed horizontal figure gutters in CSS pixels."
3421
+ },
3237
3422
  "FieldMetadata": {
3238
3423
  "type": "object",
3239
3424
  "properties": {
@@ -3852,6 +4037,10 @@
3852
4037
  "type": "string",
3853
4038
  "description": "Alt text announced by screen readers for the chart as a whole. Replaces the auto-generated description. Also settable via the top-level `description` field (Vega-Lite convention); this field wins when both are present."
3854
4039
  },
4040
+ "table": {
4041
+ "type": "boolean",
4042
+ "description": "Render the hidden screen-reader data table. Defaults to true; navigation stays enabled."
4043
+ },
3855
4044
  "hidden": {
3856
4045
  "type": "boolean",
3857
4046
  "description": "Hide the chart from assistive technology entirely (`aria-hidden`). Use only when the chart is decorative or the surrounding content already conveys the same information. Also suppresses the hidden screen-reader data table and keyboard mark navigation."
@@ -4331,6 +4520,10 @@
4331
4520
  "LabelConfig": {
4332
4521
  "type": "object",
4333
4522
  "properties": {
4523
+ "content": {
4524
+ "$ref": "#/definitions/EndpointLabelContent",
4525
+ "description": "Compose category/series names and formatted values; default value only."
4526
+ },
4334
4527
  "placement": {
4335
4528
  "type": "string",
4336
4529
  "enum": [
@@ -4369,6 +4562,15 @@
4369
4562
  "additionalProperties": false,
4370
4563
  "description": "Label display configuration for chart data labels."
4371
4564
  },
4565
+ "EndpointLabelContent": {
4566
+ "type": "string",
4567
+ "enum": [
4568
+ "label",
4569
+ "value",
4570
+ "label value"
4571
+ ],
4572
+ "description": "Content composition for an endpoint-label entry: the series name, the formatted value, or both joined on one line. See {@link EndpointLabelsConfig.content } ."
4573
+ },
4372
4574
  "LabelDensity": {
4373
4575
  "type": "string",
4374
4576
  "enum": [
@@ -4477,15 +4679,6 @@
4477
4679
  "additionalProperties": false,
4478
4680
  "description": "Configuration for the endpoint labels column rendered at the chart's right edge for multi-series line/area charts. Each entry pairs the series name with its last formatted value, optionally anchored to the line by an open-circle marker.\n\nThe column and traditional legend are independent identification surfaces. For multi-series line/area charts:\n\n| `legend.show` | `endpointLabels` | Traditional legend | Endpoint column | |--|--|--|--| | unset | unset | hidden | shown | | true | unset | shown | shown | | unset | false | shown | hidden | | false | false | hidden (accessibility warning) | hidden | | true | false | shown | hidden | | false | true | hidden | shown | | true | true | shown | shown |\n\nSingle-series charts: column is hidden by default (nothing to identify).\n\nThe implementation is in `packages/engine/src/legend/suppression.ts` — `resolveSuppression` is the single source of truth. The table above is a user-facing mirror; if the two ever diverge, the engine wins. Tests in `legend/__tests__/suppression.test.ts` enforce every cell."
4479
4681
  },
4480
- "EndpointLabelContent": {
4481
- "type": "string",
4482
- "enum": [
4483
- "label",
4484
- "value",
4485
- "label value"
4486
- ],
4487
- "description": "Content composition for an endpoint-label entry: the series name, the formatted value, or both joined on one line. See {@link EndpointLabelsConfig.content } ."
4488
- },
4489
4682
  "ResponsiveConfig": {
4490
4683
  "type": "object",
4491
4684
  "properties": {
@@ -4529,14 +4722,14 @@
4529
4722
  "categorical": {
4530
4723
  "type": "array",
4531
4724
  "items": {
4532
- "type": "string"
4725
+ "$ref": "#/definitions/TokenValue"
4533
4726
  },
4534
- "description": "Categorical stroke palette for nominal data (array of CSS color strings)."
4727
+ "description": "Categorical stroke palette: CSS colors or explicit light/dark pairs."
4535
4728
  },
4536
4729
  "categoricalFill": {
4537
4730
  "type": "array",
4538
4731
  "items": {
4539
- "type": "string"
4732
+ "$ref": "#/definitions/TokenValue"
4540
4733
  },
4541
4734
  "description": "Categorical palette for area-filling marks (bar, area, arc, waffle, calendar, rect). Defaults to `categorical` when only that is set."
4542
4735
  },
@@ -5645,9 +5838,13 @@
5645
5838
  ],
5646
5839
  "description": "Resolution strategy for shared resources across layers. 'shared' (default): union domains, single axis/legend. 'independent': each layer gets its own scale/axis/legend."
5647
5840
  },
5648
- "LineEncoding<DataRow>": {
5841
+ "ArcEncoding<DataRow>": {
5649
5842
  "type": "object",
5650
5843
  "properties": {
5844
+ "description": {
5845
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
5846
+ "description": "Accessible mark description; static output exposes it as a native title."
5847
+ },
5651
5848
  "x": {
5652
5849
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
5653
5850
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -5663,9 +5860,6 @@
5663
5860
  },
5664
5861
  {
5665
5862
  "$ref": "#/definitions/ConditionalValueDef%3CDataRow%3E"
5666
- },
5667
- {
5668
- "$ref": "#/definitions/ValueDef"
5669
5863
  }
5670
5864
  ],
5671
5865
  "description": "Color channel. Required for arc marks (determines pie/donut slice coloring). Optional for all other marks -- used for series differentiation on multi-series charts, or heatmap intensity. Accepts a conditional definition to apply colors based on data predicates, or a bare `{ value }` constant (VL aligned; expanded to the mark-level fill/stroke)."
@@ -5742,7 +5936,7 @@
5742
5936
  },
5743
5937
  "theta": {
5744
5938
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
5745
- "description": "Angular position (slice value) for arc marks (pie/donut), the canonical value channel in v8. Waffle and parliament marks accept it too (the same part-to-whole value channel). The compiler populates internal `y` from `theta`; authored `y` aliases are rejected. Not used by any other mark type."
5939
+ "description": "Canonical value channel for arc marks (quantitative — the slice value)."
5746
5940
  },
5747
5941
  "facet": {
5748
5942
  "$ref": "#/definitions/FacetChannel%3CDataRow%3E",
@@ -5758,15 +5952,19 @@
5758
5952
  }
5759
5953
  },
5760
5954
  "required": [
5761
- "x",
5762
- "y"
5955
+ "theta",
5956
+ "color"
5763
5957
  ],
5764
5958
  "additionalProperties": false,
5765
- "description": "Encoding for line marks.\n- `x`: required (temporal or ordinal — the time/category axis)\n- `y`: required (quantitative — the value axis)"
5959
+ "description": "Encoding for arc marks (pie/donut charts).\n- `theta`: required (quantitative — the canonical slice value channel)\n- `color`: required (nominal/ordinal — the category)"
5766
5960
  },
5767
- "BarEncoding<DataRow>": {
5961
+ "LineEncoding<DataRow>": {
5768
5962
  "type": "object",
5769
5963
  "properties": {
5964
+ "description": {
5965
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
5966
+ "description": "Accessible mark description; static output exposes it as a native title."
5967
+ },
5770
5968
  "x": {
5771
5969
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
5772
5970
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -5881,11 +6079,15 @@
5881
6079
  "y"
5882
6080
  ],
5883
6081
  "additionalProperties": false,
5884
- "description": "Encoding for bar marks (vertical columns and horizontal bars).\n- `x`: required\n- `y`: required"
6082
+ "description": "Encoding for line marks.\n- `x`: required (temporal or ordinal — the time/category axis)\n- `y`: required (quantitative — the value axis)"
5885
6083
  },
5886
- "AreaEncoding<DataRow>": {
6084
+ "BarEncoding<DataRow>": {
5887
6085
  "type": "object",
5888
6086
  "properties": {
6087
+ "description": {
6088
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
6089
+ "description": "Accessible mark description; static output exposes it as a native title."
6090
+ },
5889
6091
  "x": {
5890
6092
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
5891
6093
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -6000,26 +6202,149 @@
6000
6202
  "y"
6001
6203
  ],
6002
6204
  "additionalProperties": false,
6003
- "description": "Encoding for area marks.\n- `x`: required (temporal or ordinal)\n- `y`: required (quantitative)"
6205
+ "description": "Encoding for bar marks (vertical columns and horizontal bars).\n- `x`: required\n- `y`: required"
6004
6206
  },
6005
- "TrendlineConfig": {
6207
+ "AreaEncoding<DataRow>": {
6006
6208
  "type": "object",
6007
6209
  "properties": {
6008
- "layer": {
6009
- "type": "string",
6010
- "enum": [
6011
- "above",
6012
- "below"
6013
- ],
6014
- "description": "Stacking order relative to the point marks. `'below'` (default) draws the line behind the dots; `'above'` draws it on top so it stays visible over a dense cloud."
6210
+ "description": {
6211
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
6212
+ "description": "Accessible mark description; static output exposes it as a native title."
6015
6213
  },
6016
- "stroke": {
6017
- "type": "string",
6018
- "description": "Stroke color. Defaults to the theme's high-contrast text color so the line reads on both light and dark grounds. Set an explicit CSS color to override."
6214
+ "x": {
6215
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6216
+ "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
6019
6217
  },
6020
- "strokeWidth": {
6021
- "type": "number",
6022
- "description": "Stroke width in pixels. Defaults to 1.5. Over a dense cloud with `layer: 'above'`, a heavier line (e.g. 2.5) stays legible where the thin default disappears into the dots."
6218
+ "y": {
6219
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6220
+ "description": "Vertical position channel. Required for: bar, line, area, point, tick, rect, arc, lollipop. For arc marks, this is the value field (slice size). For all others it's the y-axis position."
6221
+ },
6222
+ "color": {
6223
+ "anyOf": [
6224
+ {
6225
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E"
6226
+ },
6227
+ {
6228
+ "$ref": "#/definitions/ConditionalValueDef%3CDataRow%3E"
6229
+ },
6230
+ {
6231
+ "$ref": "#/definitions/ValueDef"
6232
+ }
6233
+ ],
6234
+ "description": "Color channel. Required for arc marks (determines pie/donut slice coloring). Optional for all other marks -- used for series differentiation on multi-series charts, or heatmap intensity. Accepts a conditional definition to apply colors based on data predicates, or a bare `{ value }` constant (VL aligned; expanded to the mark-level fill/stroke)."
6235
+ },
6236
+ "size": {
6237
+ "anyOf": [
6238
+ {
6239
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E"
6240
+ },
6241
+ {
6242
+ "$ref": "#/definitions/ConditionalValueDef%3CDataRow%3E"
6243
+ },
6244
+ {
6245
+ "$ref": "#/definitions/ValueDef"
6246
+ }
6247
+ ],
6248
+ "description": "Size channel. Used by point/bubble charts to scale dots by a quantitative field, area-proportionally (sqrt curve). The units are dot RADII in px: `scale.range` defaults to [3, 30] for scatter, and a bare `{ value }` constant expands to `mark.size`, also a radius. This differs from Vega-Lite, where point size is an area in px^2 -- VL-scale values (60-900) are rejected by validation with the conversion. Accepts a conditional definition to vary size based on data predicates."
6249
+ },
6250
+ "detail": {
6251
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6252
+ "description": "Detail channel. Groups data into multiple series without mapping to a visual property. Useful when you want separate lines per category but don't need the color to differ."
6253
+ },
6254
+ "key": {
6255
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6256
+ "description": "Identity channel for data-update transitions. Maps a field whose value uniquely identifies each datum across updates. Mirrors Vega-Lite's key channel. Not visually encoded. Optional: charts derive sensible default keys."
6257
+ },
6258
+ "x2": {
6259
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6260
+ "description": "Secondary x position. Used with `x` to define a horizontal span (rect marks, error bars). Both `x` and `x2` must be quantitative."
6261
+ },
6262
+ "y2": {
6263
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6264
+ "description": "Secondary y position. Used with `y` to define a vertical span (rect marks, error bands). Both `y` and `y2` must be quantitative."
6265
+ },
6266
+ "opacity": {
6267
+ "anyOf": [
6268
+ {
6269
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E"
6270
+ },
6271
+ {
6272
+ "$ref": "#/definitions/ConditionalValueDef%3CDataRow%3E"
6273
+ },
6274
+ {
6275
+ "$ref": "#/definitions/ValueDef"
6276
+ }
6277
+ ],
6278
+ "description": "Data-driven opacity (0-1 range). Accepts a conditional definition to vary opacity based on data predicates (e.g., highlight selected points), or a bare `{ value }` constant (VL aligned; expanded to `mark.opacity`)."
6279
+ },
6280
+ "strokeDash": {
6281
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6282
+ "description": "Stroke dash pattern encoding. Maps a nominal/ordinal field to different dash patterns on line and rule marks. Useful when color alone doesn't distinguish series well."
6283
+ },
6284
+ "angle": {
6285
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6286
+ "description": "Rotation angle encoding for point marks. Maps a quantitative field to 0-360 degrees."
6287
+ },
6288
+ "text": {
6289
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6290
+ "description": "Text content for `text` marks. Required when mark is `'text'`. Not meaningful for other mark types."
6291
+ },
6292
+ "tooltip": {
6293
+ "anyOf": [
6294
+ {
6295
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E"
6296
+ },
6297
+ {
6298
+ "type": "array",
6299
+ "items": {
6300
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E"
6301
+ }
6302
+ }
6303
+ ],
6304
+ "description": "Tooltip field(s). Shown on hover. Can be a single channel or an array for multi-field tooltips. Independent of the x/y/color encoding."
6305
+ },
6306
+ "theta": {
6307
+ "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6308
+ "description": "Angular position (slice value) for arc marks (pie/donut), the canonical value channel in v8. Waffle and parliament marks accept it too (the same part-to-whole value channel). The compiler populates internal `y` from `theta`; authored `y` aliases are rejected. Not used by any other mark type."
6309
+ },
6310
+ "facet": {
6311
+ "$ref": "#/definitions/FacetChannel%3CDataRow%3E",
6312
+ "description": "Facet channel: partitions data into a grid of small-multiple panels. Each unique value of the facet field produces one panel. Panels share scales by default; use `resolve: { scale: { y: 'independent' } }` for per-panel axes."
6313
+ },
6314
+ "row": {
6315
+ "$ref": "#/definitions/FacetChannel%3CDataRow%3E",
6316
+ "description": "Row facet channel: partitions data into vertically-stacked panels. Each unique value of the row field produces one panel, arranged in a single column. Shares the x-axis scale by default; y-axis is independent. Mutually exclusive with `facet` and `column`."
6317
+ },
6318
+ "column": {
6319
+ "$ref": "#/definitions/FacetChannel%3CDataRow%3E",
6320
+ "description": "Column facet channel: partitions data into side-by-side panels. Each unique value of the column field produces one panel, arranged in a single row. Shares the y-axis scale by default; x-axis is independent. Mutually exclusive with `facet` and `row`."
6321
+ }
6322
+ },
6323
+ "required": [
6324
+ "x",
6325
+ "y"
6326
+ ],
6327
+ "additionalProperties": false,
6328
+ "description": "Encoding for area marks.\n- `x`: required (temporal or ordinal)\n- `y`: required (quantitative)"
6329
+ },
6330
+ "TrendlineConfig": {
6331
+ "type": "object",
6332
+ "properties": {
6333
+ "layer": {
6334
+ "type": "string",
6335
+ "enum": [
6336
+ "above",
6337
+ "below"
6338
+ ],
6339
+ "description": "Stacking order relative to the point marks. `'below'` (default) draws the line behind the dots; `'above'` draws it on top so it stays visible over a dense cloud."
6340
+ },
6341
+ "stroke": {
6342
+ "type": "string",
6343
+ "description": "Stroke color. Defaults to the theme's high-contrast text color so the line reads on both light and dark grounds. Set an explicit CSS color to override."
6344
+ },
6345
+ "strokeWidth": {
6346
+ "type": "number",
6347
+ "description": "Stroke width in pixels. Defaults to 1.5. Over a dense cloud with `layer: 'above'`, a heavier line (e.g. 2.5) stays legible where the thin default disappears into the dots."
6023
6348
  }
6024
6349
  },
6025
6350
  "additionalProperties": false,
@@ -6028,6 +6353,10 @@
6028
6353
  "PointEncoding<DataRow>": {
6029
6354
  "type": "object",
6030
6355
  "properties": {
6356
+ "description": {
6357
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
6358
+ "description": "Accessible mark description; static output exposes it as a native title."
6359
+ },
6031
6360
  "x": {
6032
6361
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6033
6362
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -6147,6 +6476,10 @@
6147
6476
  "CircleEncoding<DataRow>": {
6148
6477
  "type": "object",
6149
6478
  "properties": {
6479
+ "description": {
6480
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
6481
+ "description": "Accessible mark description; static output exposes it as a native title."
6482
+ },
6150
6483
  "x": {
6151
6484
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6152
6485
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -6266,6 +6599,10 @@
6266
6599
  "LollipopEncoding<DataRow>": {
6267
6600
  "type": "object",
6268
6601
  "properties": {
6602
+ "description": {
6603
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
6604
+ "description": "Accessible mark description; static output exposes it as a native title."
6605
+ },
6269
6606
  "x": {
6270
6607
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6271
6608
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -6385,6 +6722,10 @@
6385
6722
  "BeeswarmEncoding<DataRow>": {
6386
6723
  "type": "object",
6387
6724
  "properties": {
6725
+ "description": {
6726
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
6727
+ "description": "Accessible mark description; static output exposes it as a native title."
6728
+ },
6388
6729
  "x": {
6389
6730
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6390
6731
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -6500,6 +6841,10 @@
6500
6841
  "RangeEncoding<DataRow>": {
6501
6842
  "type": "object",
6502
6843
  "properties": {
6844
+ "description": {
6845
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
6846
+ "description": "Accessible mark description; static output exposes it as a native title."
6847
+ },
6503
6848
  "x": {
6504
6849
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6505
6850
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -6613,12 +6958,15 @@
6613
6958
  "x",
6614
6959
  "y"
6615
6960
  ],
6616
- "additionalProperties": false,
6617
- "description": "Encoding for range marks (dumbbell / arrow / range-bar plots).\n- Horizontal (the common editorial form): `y` nominal/ordinal category, `x` quantitative start, `x2` quantitative end.\n- Vertical: `x` nominal/ordinal category, `y` quantitative start, `y2` quantitative end."
6961
+ "additionalProperties": false
6618
6962
  },
6619
6963
  "WaffleEncoding<DataRow>": {
6620
6964
  "type": "object",
6621
6965
  "properties": {
6966
+ "description": {
6967
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
6968
+ "description": "Accessible mark description; static output exposes it as a native title."
6969
+ },
6622
6970
  "x": {
6623
6971
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6624
6972
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -6734,6 +7082,10 @@
6734
7082
  "TextEncoding<DataRow>": {
6735
7083
  "type": "object",
6736
7084
  "properties": {
7085
+ "description": {
7086
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
7087
+ "description": "Accessible mark description; static output exposes it as a native title."
7088
+ },
6737
7089
  "x": {
6738
7090
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6739
7091
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -6852,6 +7204,10 @@
6852
7204
  "TickEncoding<DataRow>": {
6853
7205
  "type": "object",
6854
7206
  "properties": {
7207
+ "description": {
7208
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
7209
+ "description": "Accessible mark description; static output exposes it as a native title."
7210
+ },
6855
7211
  "x": {
6856
7212
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6857
7213
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -6971,6 +7327,10 @@
6971
7327
  "RectEncoding<DataRow>": {
6972
7328
  "type": "object",
6973
7329
  "properties": {
7330
+ "description": {
7331
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
7332
+ "description": "Accessible mark description; static output exposes it as a native title."
7333
+ },
6974
7334
  "x": {
6975
7335
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
6976
7336
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -7090,6 +7450,10 @@
7090
7450
  "Encoding<DataRow>": {
7091
7451
  "type": "object",
7092
7452
  "properties": {
7453
+ "description": {
7454
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
7455
+ "description": "Accessible mark description; static output exposes it as a native title."
7456
+ },
7093
7457
  "x": {
7094
7458
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
7095
7459
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -7199,12 +7563,15 @@
7199
7563
  "description": "Column facet channel: partitions data into side-by-side panels. Each unique value of the column field produces one panel, arranged in a single row. Shares the y-axis scale by default; x-axis is independent. Mutually exclusive with `facet` and `row`."
7200
7564
  }
7201
7565
  },
7202
- "additionalProperties": false,
7203
- "description": "Encoding object mapping visual channels to data fields. Which channels are required depends on the mark type — see the per-mark encoding interfaces (ArcEncoding, LineEncoding, etc.) and MARK_ENCODING_RULES in encoding.ts for the full requirements table."
7566
+ "additionalProperties": false
7204
7567
  },
7205
7568
  "CalendarEncoding<DataRow>": {
7206
7569
  "type": "object",
7207
7570
  "properties": {
7571
+ "description": {
7572
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
7573
+ "description": "Accessible mark description; static output exposes it as a native title."
7574
+ },
7208
7575
  "x": {
7209
7576
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
7210
7577
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -7314,6 +7681,10 @@
7314
7681
  "ParliamentEncoding<DataRow>": {
7315
7682
  "type": "object",
7316
7683
  "properties": {
7684
+ "description": {
7685
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
7686
+ "description": "Accessible mark description; static output exposes it as a native title."
7687
+ },
7317
7688
  "x": {
7318
7689
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
7319
7690
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -7429,6 +7800,10 @@
7429
7800
  "HistogramEncoding<DataRow>": {
7430
7801
  "type": "object",
7431
7802
  "properties": {
7803
+ "description": {
7804
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
7805
+ "description": "Accessible mark description; static output exposes it as a native title."
7806
+ },
7432
7807
  "x": {
7433
7808
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
7434
7809
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -7547,6 +7922,10 @@
7547
7922
  "DensityEncoding<DataRow>": {
7548
7923
  "type": "object",
7549
7924
  "properties": {
7925
+ "description": {
7926
+ "$ref": "#/definitions/DescriptionEncoding%3CDataRow%3E",
7927
+ "description": "Accessible mark description; static output exposes it as a native title."
7928
+ },
7550
7929
  "x": {
7551
7930
  "$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
7552
7931
  "description": "Horizontal position channel. Required for: bar, line, area, point, tick, rect, lollipop. Maps a field to the x-axis. Use `type: 'temporal'` for dates, `'nominal'` for categories, `'quantitative'` for numbers."
@@ -7665,6 +8044,18 @@
7665
8044
  "LayerSpec": {
7666
8045
  "type": "object",
7667
8046
  "properties": {
8047
+ "display": {
8048
+ "$ref": "#/definitions/Display",
8049
+ "description": "Display defaults shared by every leaf."
8050
+ },
8051
+ "a11y": {
8052
+ "$ref": "#/definitions/A11yConfig",
8053
+ "description": "Figure accessibility; hidden cells omit the image role."
8054
+ },
8055
+ "frame": {
8056
+ "$ref": "#/definitions/FrameConfig",
8057
+ "description": "Fixed horizontal plot gutters shared by the figure."
8058
+ },
7668
8059
  "layer": {
7669
8060
  "type": "array",
7670
8061
  "items": {
@@ -7719,96 +8110,390 @@
7719
8110
  "required": [
7720
8111
  "text"
7721
8112
  ],
7722
- "additionalProperties": false
7723
- }
7724
- ],
7725
- "description": "Top-level title sugar (VL aligned). Expanded into `chrome.title`; `chrome.title` wins."
7726
- },
7727
- "subtitle": {
7728
- "type": "string",
7729
- "description": "Top-level subtitle sugar. Expanded into `chrome.subtitle`; `chrome.subtitle` wins."
7730
- },
7731
- "width": {
7732
- "type": "number",
7733
- "description": "Fixed render width in pixels (VL aligned). Overrides the container-derived width."
7734
- },
7735
- "height": {
7736
- "type": "number",
7737
- "description": "Fixed render height in pixels (VL aligned). Overrides the container-derived height."
7738
- },
7739
- "$schema": {
7740
- "type": "string",
7741
- "description": "Accepted for Vega-Lite compatibility and ignored (with a compile warning)."
7742
- },
7743
- "annotations": {
7744
- "type": "array",
7745
- "items": {
7746
- "$ref": "#/definitions/Annotation"
7747
- },
7748
- "description": "Annotations for the layered chart. When present, these are the annotations rendered and available for editing. When absent, falls back to the first leaf layer's annotations. Annotations on second and later leaf layers are not rendered.\n\nFor edit persistence: the `data-annotation-index` stamped on each rendered annotation maps to this array (or the first leaf's if this is unset). Place annotations here for reliable index-based edit matching."
7749
- },
7750
- "labels": {
7751
- "$ref": "#/definitions/LabelSpec",
7752
- "description": "Label display configuration. `false` disables all labels, `true` uses defaults."
7753
- },
7754
- "legend": {
7755
- "$ref": "#/definitions/LegendConfig",
7756
- "description": "Legend display configuration."
7757
- },
7758
- "responsive": {
7759
- "anyOf": [
7760
- {
7761
- "type": "boolean"
8113
+ "additionalProperties": false
8114
+ }
8115
+ ],
8116
+ "description": "Top-level title sugar (VL aligned). Expanded into `chrome.title`; `chrome.title` wins."
8117
+ },
8118
+ "subtitle": {
8119
+ "type": "string",
8120
+ "description": "Top-level subtitle sugar. Expanded into `chrome.subtitle`; `chrome.subtitle` wins."
8121
+ },
8122
+ "width": {
8123
+ "type": "number",
8124
+ "description": "Fixed render width in pixels (VL aligned). Overrides the container-derived width."
8125
+ },
8126
+ "height": {
8127
+ "type": "number",
8128
+ "description": "Fixed render height in pixels (VL aligned). Overrides the container-derived height."
8129
+ },
8130
+ "$schema": {
8131
+ "type": "string",
8132
+ "description": "Accepted for Vega-Lite compatibility and ignored (with a compile warning)."
8133
+ },
8134
+ "annotations": {
8135
+ "type": "array",
8136
+ "items": {
8137
+ "$ref": "#/definitions/Annotation"
8138
+ },
8139
+ "description": "Annotations for the layered chart. When present, these are the annotations rendered and available for editing. When absent, falls back to the first leaf layer's annotations. Annotations on second and later leaf layers are not rendered.\n\nFor edit persistence: the `data-annotation-index` stamped on each rendered annotation maps to this array (or the first leaf's if this is unset). Place annotations here for reliable index-based edit matching."
8140
+ },
8141
+ "labels": {
8142
+ "$ref": "#/definitions/LabelSpec",
8143
+ "description": "Label display configuration. `false` disables all labels, `true` uses defaults."
8144
+ },
8145
+ "legend": {
8146
+ "$ref": "#/definitions/LegendConfig",
8147
+ "description": "Legend display configuration."
8148
+ },
8149
+ "responsive": {
8150
+ "anyOf": [
8151
+ {
8152
+ "type": "boolean"
8153
+ },
8154
+ {
8155
+ "$ref": "#/definitions/ResponsiveConfig"
8156
+ }
8157
+ ],
8158
+ "description": "Responsive behavior for the composed chart, with the same meaning as `ChartSpec.responsive`: `true`/`false` enables/disables container-width adaptation, and a `ResponsiveConfig` object gives fine-grained control (e.g. `{ compactAnnotationLimit: null }`). When omitted, the first leaf layer's `responsive` applies."
8159
+ },
8160
+ "theme": {
8161
+ "$ref": "#/definitions/ThemeConfig",
8162
+ "description": "Theme configuration overrides."
8163
+ },
8164
+ "watermark": {
8165
+ "type": "boolean",
8166
+ "description": "Whether to show the OpenData watermark. Defaults to true."
8167
+ },
8168
+ "resolve": {
8169
+ "$ref": "#/definitions/ResolveConfig",
8170
+ "description": "Resolution strategy for shared scales/axes/legends."
8171
+ },
8172
+ "hiddenSeries": {
8173
+ "type": "array",
8174
+ "items": {
8175
+ "type": "string"
8176
+ },
8177
+ "description": "Series names to hide from rendering by default. This is the authored persistence target for legend visibility. Runtime legend toggles (legend-toggle edit events) layer on top of this via ephemeral runtime sets but never modify it."
8178
+ },
8179
+ "endpointLabels": {
8180
+ "anyOf": [
8181
+ {
8182
+ "type": "boolean"
8183
+ },
8184
+ {
8185
+ "$ref": "#/definitions/EndpointLabelsConfig"
8186
+ }
8187
+ ],
8188
+ "description": "Endpoint labels column, inherited by child layers that don't set their own."
8189
+ },
8190
+ "animation": {
8191
+ "$ref": "#/definitions/AnimationSpec",
8192
+ "description": "Animation configuration."
8193
+ }
8194
+ },
8195
+ "required": [
8196
+ "layer"
8197
+ ],
8198
+ "additionalProperties": false,
8199
+ "description": "Layer specification: composites multiple chart layers into a single view.\n\nEach element in `layer` is either a ChartSpec or another LayerSpec (nested). Shared data, encoding, and transforms at the LayerSpec level are inherited by children that don't define their own."
8200
+ },
8201
+ "ChartSpec<DataRow>": {
8202
+ "anyOf": [
8203
+ {
8204
+ "type": "object",
8205
+ "additionalProperties": false,
8206
+ "properties": {
8207
+ "mark": {
8208
+ "anyOf": [
8209
+ {
8210
+ "type": "string",
8211
+ "const": "errorbar"
8212
+ },
8213
+ {
8214
+ "type": "object",
8215
+ "additionalProperties": false,
8216
+ "properties": {
8217
+ "ticks": {
8218
+ "type": "boolean",
8219
+ "description": "Draw decorative end caps on an explicit interval; default false."
8220
+ },
8221
+ "type": {
8222
+ "type": "string",
8223
+ "const": "errorbar"
8224
+ },
8225
+ "size": {
8226
+ "type": "number",
8227
+ "description": "Bar/column marks: fixed bar thickness in pixels. When set, bars are this height (horizontal) or width (vertical), centered within the band.\n\nPoint marks: the dot RADIUS in pixels (default 5, typical 2-12). This is NOT Vega-Lite's point `size`, which is an area in px^2 -- a VL size of 110 corresponds to `size: 6` here (r = sqrt(area / pi)). Validation rejects values above 50 with the conversion."
8228
+ },
8229
+ "filled": {
8230
+ "type": "boolean",
8231
+ "description": "Whether the mark is filled (vs stroked only)."
8232
+ },
8233
+ "opacity": {
8234
+ "type": "number",
8235
+ "description": "Default opacity (0-1)."
8236
+ },
8237
+ "fillOpacity": {
8238
+ "type": "number",
8239
+ "description": "Fill opacity (0-1), independent of stroke (Vega-Lite aligned).\n\nOn a binned bar with more than one color group this defaults to 0.55 so overlapping distributions stay readable; set it explicitly to override. On an area, setting it switches the fill from the default gradient to a flat translucent series color — gradients and overlapping fills don't mix."
8240
+ },
8241
+ "fill": {
8242
+ "anyOf": [
8243
+ {
8244
+ "type": "string"
8245
+ },
8246
+ {
8247
+ "$ref": "#/definitions/GradientDef"
8248
+ }
8249
+ ],
8250
+ "description": "Default fill color or gradient."
8251
+ },
8252
+ "stroke": {
8253
+ "type": "string",
8254
+ "description": "Default stroke color."
8255
+ },
8256
+ "strokeWidth": {
8257
+ "type": "number",
8258
+ "description": "Default stroke width."
8259
+ },
8260
+ "tooltip": {
8261
+ "type": [
8262
+ "boolean",
8263
+ "null"
8264
+ ],
8265
+ "description": "Tooltip behavior. null disables tooltips."
8266
+ },
8267
+ "clip": {
8268
+ "type": "boolean",
8269
+ "description": "Clip marks to the chart area."
8270
+ },
8271
+ "fillPattern": {
8272
+ "type": "string",
8273
+ "enum": [
8274
+ "auto",
8275
+ "none"
8276
+ ],
8277
+ "description": "Pattern-fill reinforcement for filled marks (bar, area, arc).\n\n- `'auto'`: assign a per-series SVG pattern (diagonal hatch, dots, crosshatch, vertical lines) layered over each series color so series remain distinguishable without color vision. Marks too small to show a legible pattern keep their solid fill.\n- `'none'` (default): solid fills only."
8278
+ }
8279
+ },
8280
+ "required": [
8281
+ "type"
8282
+ ]
8283
+ }
8284
+ ]
8285
+ },
8286
+ "encoding": {
8287
+ "$ref": "#/definitions/ErrorbarEncoding%3CDataRow%3E"
8288
+ },
8289
+ "frame": {
8290
+ "$ref": "#/definitions/FrameConfig",
8291
+ "description": "Fixed horizontal plot gutters."
8292
+ },
8293
+ "fields": {
8294
+ "type": "object",
8295
+ "additionalProperties": {
8296
+ "$ref": "#/definitions/FieldMetadata"
8297
+ },
8298
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
8299
+ },
8300
+ "data": {
8301
+ "type": "array",
8302
+ "items": {
8303
+ "$ref": "#/definitions/DataRow"
8304
+ },
8305
+ "description": "Data array: each element is a row with field values. The Vega-Lite object form `{ values: [...] }` is also accepted at runtime and unwrapped during the pre-validation sugar expansion. `{ url }` is not supported (openchart does not fetch data)."
8306
+ },
8307
+ "transform": {
8308
+ "type": "array",
8309
+ "items": {
8310
+ "$ref": "#/definitions/Transform"
8311
+ },
8312
+ "description": "Data transforms applied in order before encoding (filter, bin, calculate, timeUnit)."
8313
+ },
8314
+ "chrome": {
8315
+ "$ref": "#/definitions/Chrome",
8316
+ "description": "Editorial chrome (title, subtitle, source, etc.)."
8317
+ },
8318
+ "chromeLayout": {
8319
+ "type": "string",
8320
+ "enum": [
8321
+ "subtract",
8322
+ "grow"
8323
+ ],
8324
+ "description": "How chrome height interacts with the container height budget.\n\n- omitted: only notes and the series summary grow the figure; title, subtitle, and source subtract from the height budget.\n- `'subtract'`: the container height is fixed and chrome text (title/subtitle/source) is subtracted from it, shrinking the plot. This is the historical behavior.\n- `'grow'`: the container height is treated as the *plot* budget, and the rendered SVG grows taller by the measured chrome height. The plot keeps its full budget (minus axis/padding overhead) regardless of how many lines the title wraps to.\n\nFacets and layers report engine-owned growth once."
8325
+ },
8326
+ "title": {
8327
+ "anyOf": [
8328
+ {
8329
+ "type": "string"
8330
+ },
8331
+ {
8332
+ "type": "object",
8333
+ "properties": {
8334
+ "text": {
8335
+ "type": "string"
8336
+ },
8337
+ "subtitle": {
8338
+ "type": "string"
8339
+ }
8340
+ },
8341
+ "required": [
8342
+ "text"
8343
+ ],
8344
+ "additionalProperties": false
8345
+ }
8346
+ ],
8347
+ "description": "Top-level title sugar (Vega-Lite aligned). Expanded into `chrome.title` (and `chrome.subtitle` for the object form). `chrome.title` wins when both are set."
8348
+ },
8349
+ "subtitle": {
8350
+ "type": "string",
8351
+ "description": "Top-level subtitle sugar. Expanded into `chrome.subtitle`; `chrome.subtitle` wins."
8352
+ },
8353
+ "description": {
8354
+ "type": "string",
8355
+ "description": "Alt text for the rendered chart (Vega-Lite aligned). Sugar for `a11y.description`; `a11y.description` wins when both are set. When absent, alt text is auto-generated from the spec and data."
8356
+ },
8357
+ "a11y": {
8358
+ "$ref": "#/definitions/A11yConfig",
8359
+ "description": "Accessibility overrides. See {@link A11yConfig } ."
8360
+ },
8361
+ "width": {
8362
+ "type": "number",
8363
+ "description": "Fixed render width in pixels (Vega-Lite aligned). Overrides the container-derived width. When both `width` and `height` are set, `responsive: false` is implied unless `responsive` is set explicitly. Omit for the default container-driven sizing."
8364
+ },
8365
+ "height": {
8366
+ "type": "number",
8367
+ "description": "Fixed render height in pixels (Vega-Lite aligned). See `width`."
8368
+ },
8369
+ "$schema": {
8370
+ "type": "string",
8371
+ "description": "Accepted for Vega-Lite compatibility and ignored (with a compile warning)."
8372
+ },
8373
+ "metrics": {
8374
+ "type": "array",
8375
+ "items": {
8376
+ "$ref": "#/definitions/Metric"
8377
+ },
8378
+ "description": "KPI/metric cells rendered as a horizontal row between subtitle and chart area. Each cell shows a label/value pair with optional delta and secondary value. Hidden in sparkline mode and auto-stripped when the container is too narrow or short, or when value text would overflow its cell."
8379
+ },
8380
+ "annotations": {
8381
+ "type": "array",
8382
+ "items": {
8383
+ "$ref": "#/definitions/Annotation"
8384
+ },
8385
+ "description": "Data annotations (text callouts, highlighted ranges, reference lines)."
8386
+ },
8387
+ "labels": {
8388
+ "$ref": "#/definitions/LabelSpec",
8389
+ "description": "Label display configuration. `false` disables all labels, `true` uses defaults."
8390
+ },
8391
+ "legend": {
8392
+ "$ref": "#/definitions/LegendConfig",
8393
+ "description": "Legend display configuration (position override)."
8394
+ },
8395
+ "endpointLabels": {
8396
+ "anyOf": [
8397
+ {
8398
+ "type": "boolean"
8399
+ },
8400
+ {
8401
+ "$ref": "#/definitions/EndpointLabelsConfig"
8402
+ }
8403
+ ],
8404
+ "description": "Right-side endpoint labels column for multi-series line/area charts.\n\n- `true` or `EndpointLabelsConfig`: render the column.\n- `false`: hide the column.\n- omitted: auto-enable for multi-series line/area charts, hide otherwise.\n\nSee {@link EndpointLabelsConfig } for the full suppression truth table that relates this flag to `legend.show`."
8405
+ },
8406
+ "responsive": {
8407
+ "anyOf": [
8408
+ {
8409
+ "type": "boolean"
8410
+ },
8411
+ {
8412
+ "$ref": "#/definitions/ResponsiveConfig"
8413
+ }
8414
+ ],
8415
+ "description": "Responsive behavior. `true`/`false` enables/disables container-width adaptation. Pass a `ResponsiveConfig` object for fine-grained control (e.g. `{ autoThin: false }` to disable automatic annotation thinning)."
8416
+ },
8417
+ "theme": {
8418
+ "$ref": "#/definitions/ThemeConfig",
8419
+ "description": "Theme configuration overrides."
8420
+ },
8421
+ "watermark": {
8422
+ "type": "boolean",
8423
+ "description": "Whether to show the OpenData watermark. Defaults to true; auto-hides when the container is under 200px tall (the cramped height class) unless explicitly set."
8424
+ },
8425
+ "hiddenSeries": {
8426
+ "type": "array",
8427
+ "items": {
8428
+ "type": "string"
8429
+ },
8430
+ "description": "Series names to hide from rendering by default. This is the authored persistence target for legend visibility. Runtime legend toggles (legend-toggle edit events) layer on top of this via ephemeral runtime sets but never modify it."
8431
+ },
8432
+ "seriesStyles": {
8433
+ "type": "object",
8434
+ "additionalProperties": {
8435
+ "$ref": "#/definitions/SeriesStyle"
8436
+ },
8437
+ "description": "Per-series visual overrides, keyed by series name (the color field value)."
8438
+ },
8439
+ "overrides": {
8440
+ "type": "object",
8441
+ "properties": {
8442
+ "compact": {
8443
+ "$ref": "#/definitions/ChartSpecOverride"
8444
+ },
8445
+ "medium": {
8446
+ "$ref": "#/definitions/ChartSpecOverride"
8447
+ },
8448
+ "full": {
8449
+ "$ref": "#/definitions/ChartSpecOverride"
8450
+ }
8451
+ },
8452
+ "additionalProperties": false,
8453
+ "description": "Breakpoint-conditional overrides. Keys are breakpoint names. At compile time, if the container matches a breakpoint, its overrides are shallow-merged into the spec before layout computation."
8454
+ },
8455
+ "animation": {
8456
+ "$ref": "#/definitions/AnimationSpec",
8457
+ "description": "Animation configuration.\n- true: enable entrance animation with sensible defaults\n- false/omitted: no animation (current behavior)\n- AnimationConfig: full control via enter/update/exit phases"
8458
+ },
8459
+ "crosshair": {
8460
+ "type": "boolean",
8461
+ "description": "Show a vertical crosshair line that tracks the nearest data point on line and area charts. Only active when a voronoi overlay is present. Defaults to false. In sparkline display mode, defaults to false unless explicitly set."
8462
+ },
8463
+ "seriesSearch": {
8464
+ "anyOf": [
8465
+ {
8466
+ "type": "boolean"
8467
+ },
8468
+ {
8469
+ "$ref": "#/definitions/SeriesSearchConfig"
8470
+ }
8471
+ ],
8472
+ "description": "Searchable series highlight (\"find your country\"). Renders a compact search input above the chart with typeahead over the color channel's distinct values. Selecting a value adds it to the highlight set (multi-select chips, removable); clearing restores the authored `encoding.color.highlight` baseline. Requires a categorical color encoding. Mutually exclusive with edit mode (search wins)."
7762
8473
  },
7763
- {
7764
- "$ref": "#/definitions/ResponsiveConfig"
7765
- }
7766
- ],
7767
- "description": "Responsive behavior for the composed chart, with the same meaning as `ChartSpec.responsive`: `true`/`false` enables/disables container-width adaptation, and a `ResponsiveConfig` object gives fine-grained control (e.g. `{ compactAnnotationLimit: null }`). When omitted, the first leaf layer's `responsive` applies."
7768
- },
7769
- "theme": {
7770
- "$ref": "#/definitions/ThemeConfig",
7771
- "description": "Theme configuration overrides."
7772
- },
7773
- "watermark": {
7774
- "type": "boolean",
7775
- "description": "Whether to show the OpenData watermark. Defaults to true."
7776
- },
7777
- "resolve": {
7778
- "$ref": "#/definitions/ResolveConfig",
7779
- "description": "Resolution strategy for shared scales/axes/legends."
7780
- },
7781
- "hiddenSeries": {
7782
- "type": "array",
7783
- "items": {
7784
- "type": "string"
7785
- },
7786
- "description": "Series names to hide from rendering by default. This is the authored persistence target for legend visibility. Runtime legend toggles (legend-toggle edit events) layer on top of this via ephemeral runtime sets but never modify it."
7787
- },
7788
- "endpointLabels": {
7789
- "anyOf": [
7790
- {
7791
- "type": "boolean"
8474
+ "youDrawIt": {
8475
+ "$ref": "#/definitions/YouDrawItConfig",
8476
+ "description": "\"You draw it\" interactive engagement format: the reader draws their guess of the trend before the real line reveals. Line marks only, single-series only. Mutually exclusive with edit mode (validation warning if both are enabled; youDrawIt is disabled)."
7792
8477
  },
7793
- {
7794
- "$ref": "#/definitions/EndpointLabelsConfig"
8478
+ "display": {
8479
+ "$ref": "#/definitions/Display",
8480
+ "description": "Display mode controlling how much chart chrome is rendered.\n\n- `'full'` (default): full publication chart with chrome, axes, legend, padding.\n- `'sparkline'`: inline mini-chart for dashboards/KPI cards. Strips chrome, axes, legend, watermark, animation, and crosshair. The mark fills the container edge-to-edge with a small safety margin. Best with `mark: 'line' | 'area' | 'bar' | 'point'`.\n\n**Override precedence:** explicit user fields always win, even in sparkline mode. Setting `chrome.title` on a sparkline still renders the title. Setting `legend: { show: true }` still renders the legend. This applies at top-level and per-breakpoint overrides."
8481
+ },
8482
+ "resolve": {
8483
+ "$ref": "#/definitions/ResolveConfig",
8484
+ "description": "Resolution strategy for shared/independent scales and axes across facet panels. Only meaningful when `encoding.facet` is present. Shared scales (the default) let readers compare across panels; independent scales give each panel its own domain."
8485
+ },
8486
+ "zIndex": {
8487
+ "type": "number",
8488
+ "description": "Render order within a LayerSpec. Higher values render on top. When omitted, layers render in array order (later layers paint on top). Axis assignment (left/right y) is always determined by array position, not zIndex."
7795
8489
  }
7796
- ],
7797
- "description": "Endpoint labels column, inherited by child layers that don't set their own."
8490
+ },
8491
+ "required": [
8492
+ "data",
8493
+ "encoding",
8494
+ "mark"
8495
+ ]
7798
8496
  },
7799
- "animation": {
7800
- "$ref": "#/definitions/AnimationSpec",
7801
- "description": "Animation configuration."
7802
- }
7803
- },
7804
- "required": [
7805
- "layer"
7806
- ],
7807
- "additionalProperties": false,
7808
- "description": "Layer specification: composites multiple chart layers into a single view.\n\nEach element in `layer` is either a ChartSpec or another LayerSpec (nested). Shared data, encoding, and transforms at the LayerSpec level are inherited by children that don't define their own."
7809
- },
7810
- "ChartSpec<DataRow>": {
7811
- "anyOf": [
7812
8497
  {
7813
8498
  "type": "object",
7814
8499
  "additionalProperties": false,
@@ -7930,6 +8615,10 @@
7930
8615
  "encoding": {
7931
8616
  "$ref": "#/definitions/ArcEncoding%3CDataRow%3E"
7932
8617
  },
8618
+ "frame": {
8619
+ "$ref": "#/definitions/FrameConfig",
8620
+ "description": "Fixed horizontal plot gutters."
8621
+ },
7933
8622
  "fields": {
7934
8623
  "type": "object",
7935
8624
  "additionalProperties": {
@@ -8254,6 +8943,10 @@
8254
8943
  "encoding": {
8255
8944
  "$ref": "#/definitions/LineEncoding%3CDataRow%3E"
8256
8945
  },
8946
+ "frame": {
8947
+ "$ref": "#/definitions/FrameConfig",
8948
+ "description": "Fixed horizontal plot gutters."
8949
+ },
8257
8950
  "fields": {
8258
8951
  "type": "object",
8259
8952
  "additionalProperties": {
@@ -8560,6 +9253,10 @@
8560
9253
  "encoding": {
8561
9254
  "$ref": "#/definitions/BarEncoding%3CDataRow%3E"
8562
9255
  },
9256
+ "frame": {
9257
+ "$ref": "#/definitions/FrameConfig",
9258
+ "description": "Fixed horizontal plot gutters."
9259
+ },
8563
9260
  "fields": {
8564
9261
  "type": "object",
8565
9262
  "additionalProperties": {
@@ -8884,6 +9581,10 @@
8884
9581
  "encoding": {
8885
9582
  "$ref": "#/definitions/AreaEncoding%3CDataRow%3E"
8886
9583
  },
9584
+ "frame": {
9585
+ "$ref": "#/definitions/FrameConfig",
9586
+ "description": "Fixed horizontal plot gutters."
9587
+ },
8887
9588
  "fields": {
8888
9589
  "type": "object",
8889
9590
  "additionalProperties": {
@@ -9181,6 +9882,10 @@
9181
9882
  "encoding": {
9182
9883
  "$ref": "#/definitions/PointEncoding%3CDataRow%3E"
9183
9884
  },
9885
+ "frame": {
9886
+ "$ref": "#/definitions/FrameConfig",
9887
+ "description": "Fixed horizontal plot gutters."
9888
+ },
9184
9889
  "fields": {
9185
9890
  "type": "object",
9186
9891
  "additionalProperties": {
@@ -9467,6 +10172,10 @@
9467
10172
  "encoding": {
9468
10173
  "$ref": "#/definitions/CircleEncoding%3CDataRow%3E"
9469
10174
  },
10175
+ "frame": {
10176
+ "$ref": "#/definitions/FrameConfig",
10177
+ "description": "Fixed horizontal plot gutters."
10178
+ },
9470
10179
  "fields": {
9471
10180
  "type": "object",
9472
10181
  "additionalProperties": {
@@ -9753,6 +10462,10 @@
9753
10462
  "encoding": {
9754
10463
  "$ref": "#/definitions/LollipopEncoding%3CDataRow%3E"
9755
10464
  },
10465
+ "frame": {
10466
+ "$ref": "#/definitions/FrameConfig",
10467
+ "description": "Fixed horizontal plot gutters."
10468
+ },
9756
10469
  "fields": {
9757
10470
  "type": "object",
9758
10471
  "additionalProperties": {
@@ -10039,6 +10752,10 @@
10039
10752
  "encoding": {
10040
10753
  "$ref": "#/definitions/BeeswarmEncoding%3CDataRow%3E"
10041
10754
  },
10755
+ "frame": {
10756
+ "$ref": "#/definitions/FrameConfig",
10757
+ "description": "Fixed horizontal plot gutters."
10758
+ },
10042
10759
  "fields": {
10043
10760
  "type": "object",
10044
10761
  "additionalProperties": {
@@ -10338,6 +11055,10 @@
10338
11055
  "encoding": {
10339
11056
  "$ref": "#/definitions/RangeEncoding%3CDataRow%3E"
10340
11057
  },
11058
+ "frame": {
11059
+ "$ref": "#/definitions/FrameConfig",
11060
+ "description": "Fixed horizontal plot gutters."
11061
+ },
10341
11062
  "fields": {
10342
11063
  "type": "object",
10343
11064
  "additionalProperties": {
@@ -10667,6 +11388,10 @@
10667
11388
  "encoding": {
10668
11389
  "$ref": "#/definitions/WaffleEncoding%3CDataRow%3E"
10669
11390
  },
11391
+ "frame": {
11392
+ "$ref": "#/definitions/FrameConfig",
11393
+ "description": "Fixed horizontal plot gutters."
11394
+ },
10670
11395
  "fields": {
10671
11396
  "type": "object",
10672
11397
  "additionalProperties": {
@@ -10983,6 +11708,10 @@
10983
11708
  "encoding": {
10984
11709
  "$ref": "#/definitions/TextEncoding%3CDataRow%3E"
10985
11710
  },
11711
+ "frame": {
11712
+ "$ref": "#/definitions/FrameConfig",
11713
+ "description": "Fixed horizontal plot gutters."
11714
+ },
10986
11715
  "fields": {
10987
11716
  "type": "object",
10988
11717
  "additionalProperties": {
@@ -11269,6 +11998,10 @@
11269
11998
  "encoding": {
11270
11999
  "$ref": "#/definitions/TickEncoding%3CDataRow%3E"
11271
12000
  },
12001
+ "frame": {
12002
+ "$ref": "#/definitions/FrameConfig",
12003
+ "description": "Fixed horizontal plot gutters."
12004
+ },
11272
12005
  "fields": {
11273
12006
  "type": "object",
11274
12007
  "additionalProperties": {
@@ -11567,6 +12300,10 @@
11567
12300
  "encoding": {
11568
12301
  "$ref": "#/definitions/RectEncoding%3CDataRow%3E"
11569
12302
  },
12303
+ "frame": {
12304
+ "$ref": "#/definitions/FrameConfig",
12305
+ "description": "Fixed horizontal plot gutters."
12306
+ },
11570
12307
  "fields": {
11571
12308
  "type": "object",
11572
12309
  "additionalProperties": {
@@ -11853,6 +12590,10 @@
11853
12590
  "encoding": {
11854
12591
  "$ref": "#/definitions/Encoding%3CDataRow%3E"
11855
12592
  },
12593
+ "frame": {
12594
+ "$ref": "#/definitions/FrameConfig",
12595
+ "description": "Fixed horizontal plot gutters."
12596
+ },
11856
12597
  "fields": {
11857
12598
  "type": "object",
11858
12599
  "additionalProperties": {
@@ -12151,6 +12892,10 @@
12151
12892
  "encoding": {
12152
12893
  "$ref": "#/definitions/CalendarEncoding%3CDataRow%3E"
12153
12894
  },
12895
+ "frame": {
12896
+ "$ref": "#/definitions/FrameConfig",
12897
+ "description": "Fixed horizontal plot gutters."
12898
+ },
12154
12899
  "fields": {
12155
12900
  "type": "object",
12156
12901
  "additionalProperties": {
@@ -12474,6 +13219,10 @@
12474
13219
  "encoding": {
12475
13220
  "$ref": "#/definitions/ParliamentEncoding%3CDataRow%3E"
12476
13221
  },
13222
+ "frame": {
13223
+ "$ref": "#/definitions/FrameConfig",
13224
+ "description": "Fixed horizontal plot gutters."
13225
+ },
12477
13226
  "fields": {
12478
13227
  "type": "object",
12479
13228
  "additionalProperties": {
@@ -12788,6 +13537,10 @@
12788
13537
  "encoding": {
12789
13538
  "$ref": "#/definitions/HistogramEncoding%3CDataRow%3E"
12790
13539
  },
13540
+ "frame": {
13541
+ "$ref": "#/definitions/FrameConfig",
13542
+ "description": "Fixed horizontal plot gutters."
13543
+ },
12791
13544
  "fields": {
12792
13545
  "type": "object",
12793
13546
  "additionalProperties": {
@@ -13124,6 +13877,10 @@
13124
13877
  "encoding": {
13125
13878
  "$ref": "#/definitions/DensityEncoding%3CDataRow%3E"
13126
13879
  },
13880
+ "frame": {
13881
+ "$ref": "#/definitions/FrameConfig",
13882
+ "description": "Fixed horizontal plot gutters."
13883
+ },
13127
13884
  "fields": {
13128
13885
  "type": "object",
13129
13886
  "additionalProperties": {
@@ -13334,6 +14091,18 @@
13334
14091
  "LayerSpec<DataRow>": {
13335
14092
  "type": "object",
13336
14093
  "properties": {
14094
+ "display": {
14095
+ "$ref": "#/definitions/Display",
14096
+ "description": "Display defaults shared by every leaf."
14097
+ },
14098
+ "a11y": {
14099
+ "$ref": "#/definitions/A11yConfig",
14100
+ "description": "Figure accessibility; hidden cells omit the image role."
14101
+ },
14102
+ "frame": {
14103
+ "$ref": "#/definitions/FrameConfig",
14104
+ "description": "Fixed horizontal plot gutters shared by the figure."
14105
+ },
13337
14106
  "layer": {
13338
14107
  "type": "array",
13339
14108
  "items": {
@@ -14548,6 +15317,34 @@
14548
15317
  "$ref": "#/definitions/FieldType",
14549
15318
  "description": "How to interpret the field values.\n- quantitative: continuous numbers (scale: linear)\n- temporal: dates/times (scale: time)\n- nominal: unordered categories (scale: ordinal)\n- ordinal: ordered categories (scale: ordinal)"
14550
15319
  },
15320
+ "interval": {
15321
+ "anyOf": [
15322
+ {
15323
+ "type": "string",
15324
+ "const": "day"
15325
+ },
15326
+ {
15327
+ "type": "string",
15328
+ "const": "week"
15329
+ },
15330
+ {
15331
+ "type": "string",
15332
+ "const": "month"
15333
+ },
15334
+ {
15335
+ "type": "string",
15336
+ "const": "quarter"
15337
+ },
15338
+ {
15339
+ "type": "string",
15340
+ "const": "year"
15341
+ },
15342
+ {
15343
+ "type": "number"
15344
+ }
15345
+ ],
15346
+ "description": "Temporal bar position interval; numbers are milliseconds. Bar marks only."
15347
+ },
14551
15348
  "aggregate": {
14552
15349
  "$ref": "#/definitions/AggregateOp",
14553
15350
  "description": "Optional aggregate to apply before encoding."
@@ -15452,6 +16249,149 @@
15452
16249
  "$ref": "#/definitions/BarListEncoding",
15453
16250
  "description": "Encoding channels mapping data fields to visual properties."
15454
16251
  },
16252
+ "sort": {
16253
+ "type": [
16254
+ "string",
16255
+ "null"
16256
+ ],
16257
+ "enum": [
16258
+ "descending",
16259
+ "ascending",
16260
+ null
16261
+ ],
16262
+ "description": "Ordering within each first-seen group. Default descending; null preserves input order."
16263
+ },
16264
+ "height": {
16265
+ "anyOf": [
16266
+ {
16267
+ "type": "number"
16268
+ },
16269
+ {
16270
+ "type": "string",
16271
+ "const": "auto"
16272
+ }
16273
+ ],
16274
+ "description": "Auto height fits every admitted row and its group headers."
16275
+ },
16276
+ "annotations": {
16277
+ "type": "array",
16278
+ "items": {
16279
+ "type": "object",
16280
+ "additionalProperties": false,
16281
+ "properties": {
16282
+ "x": {
16283
+ "type": "number"
16284
+ },
16285
+ "type": {
16286
+ "type": "string",
16287
+ "const": "refline",
16288
+ "description": "Reference-line annotation discriminant. Older rule aliases require migrateSpecV8."
16289
+ },
16290
+ "label": {
16291
+ "type": "string",
16292
+ "description": "Text drawn with the reference line."
16293
+ },
16294
+ "style": {
16295
+ "type": "string",
16296
+ "enum": [
16297
+ "solid",
16298
+ "dashed",
16299
+ "dotted"
16300
+ ],
16301
+ "description": "Line style."
16302
+ },
16303
+ "strokeDash": {
16304
+ "type": "array",
16305
+ "items": {
16306
+ "type": "number"
16307
+ },
16308
+ "description": "Raw SVG dash pattern override, e.g. [4, 4]. Takes precedence over style."
16309
+ },
16310
+ "strokeWidth": {
16311
+ "type": "number",
16312
+ "description": "Line width in pixels."
16313
+ },
16314
+ "labelOffset": {
16315
+ "$ref": "#/definitions/AnnotationOffset",
16316
+ "description": "Pixel offset for the reference line label."
16317
+ },
16318
+ "labelPlacement": {
16319
+ "type": "string",
16320
+ "enum": [
16321
+ "auto",
16322
+ "start",
16323
+ "end",
16324
+ "outside"
16325
+ ],
16326
+ "description": "Screen-space label placement. Outside reserves a right gutter or top lane; omission uses auto unless labelAnchor is authored."
16327
+ },
16328
+ "labelAnchor": {
16329
+ "$ref": "#/definitions/AnnotationAnchor",
16330
+ "description": "Anchor direction for the reference line label."
16331
+ },
16332
+ "fontSize": {
16333
+ "type": "number",
16334
+ "description": "Label font size in pixels. Default: theme small (12px)."
16335
+ },
16336
+ "fontWeight": {
16337
+ "type": "number",
16338
+ "description": "Label font weight. Default: 400."
16339
+ },
16340
+ "id": {
16341
+ "type": "string",
16342
+ "description": "Stable identifier for selection and edit callbacks. When provided, edit events include this ID for reliable element matching."
16343
+ },
16344
+ "fill": {
16345
+ "type": "string",
16346
+ "description": "Fill color for the annotation element."
16347
+ },
16348
+ "stroke": {
16349
+ "type": "string",
16350
+ "description": "Stroke color for the annotation element."
16351
+ },
16352
+ "opacity": {
16353
+ "type": "number",
16354
+ "description": "Opacity from 0 to 1."
16355
+ },
16356
+ "zIndex": {
16357
+ "type": "number",
16358
+ "description": "Z-index for render ordering. Higher values render on top."
16359
+ },
16360
+ "responsive": {
16361
+ "type": "boolean",
16362
+ "description": "When false, the annotation is always shown even at compact breakpoints. Default true."
16363
+ }
16364
+ },
16365
+ "required": [
16366
+ "type",
16367
+ "x"
16368
+ ]
16369
+ },
16370
+ "description": "Vertical value reference lines."
16371
+ },
16372
+ "labels": {
16373
+ "type": "object",
16374
+ "properties": {
16375
+ "format": {
16376
+ "type": "string",
16377
+ "description": "Number format override for label values (d3-format string, e.g. \",.0f\")."
16378
+ },
16379
+ "prefix": {
16380
+ "type": "string",
16381
+ "description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\")."
16382
+ },
16383
+ "suffix": {
16384
+ "type": "string",
16385
+ "description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\")."
16386
+ }
16387
+ },
16388
+ "additionalProperties": false,
16389
+ "description": "Value label formatting."
16390
+ },
16391
+ "a11y": {
16392
+ "$ref": "#/definitions/A11yConfig",
16393
+ "description": "Accessible figure name and visibility."
16394
+ },
15455
16395
  "barHeight": {
15456
16396
  "type": "number",
15457
16397
  "description": "Bar height in pixels. Defaults to 6."
@@ -15499,6 +16439,14 @@
15499
16439
  "BarListEncoding": {
15500
16440
  "type": "object",
15501
16441
  "properties": {
16442
+ "description": {
16443
+ "$ref": "#/definitions/DescriptionEncoding",
16444
+ "description": "Authored row description."
16445
+ },
16446
+ "group": {
16447
+ "$ref": "#/definitions/EncodingChannel",
16448
+ "description": "Nominal group labels, retained in first-seen order."
16449
+ },
15502
16450
  "label": {
15503
16451
  "$ref": "#/definitions/EncodingChannel",
15504
16452
  "description": "Label field (required, nominal). The category name for each row."
@@ -15537,6 +16485,44 @@
15537
16485
  "additionalProperties": false,
15538
16486
  "description": "Encoding channels for a barlist visualization."
15539
16487
  },
16488
+ "DescriptionEncoding": {
16489
+ "anyOf": [
16490
+ {
16491
+ "type": "object",
16492
+ "additionalProperties": false,
16493
+ "properties": {
16494
+ "type": {
16495
+ "$ref": "#/definitions/FieldType",
16496
+ "description": "How to interpret the field values.\n- quantitative: continuous numbers (scale: linear)\n- temporal: dates/times (scale: time)\n- nominal: unordered categories (scale: ordinal)\n- ordinal: ordered categories (scale: ordinal)"
16497
+ },
16498
+ "format": {
16499
+ "type": "string",
16500
+ "description": "Format string for values (Vega-Lite aligned). For quantitative fields: d3-format string (e.g. \",.0f\", \"$,.2f\"), or semantic keyword `'percent'` / `'currency'`. For temporal fields: d3-time-format string (e.g. \"%Y\", \"%b %d\"). Used in tooltips; `axis.format` takes precedence for axis tick labels."
16501
+ },
16502
+ "field": {
16503
+ "type": "string",
16504
+ "description": "Data field name (column in the data array).\n\nWhen using `ChartSpec<TData>` with a typed data array, this is constrained to the actual column names of `TData`. Typos fail at compile time and IDEs autocomplete your column names."
16505
+ }
16506
+ },
16507
+ "required": [
16508
+ "field"
16509
+ ]
16510
+ },
16511
+ {
16512
+ "type": "object",
16513
+ "properties": {
16514
+ "value": {
16515
+ "type": "string"
16516
+ }
16517
+ },
16518
+ "required": [
16519
+ "value"
16520
+ ],
16521
+ "additionalProperties": false
16522
+ }
16523
+ ],
16524
+ "description": "Authored mark text, kept verbatim for strings and formatted for numeric fields."
16525
+ },
15540
16526
  "ChartSpecBase": {
15541
16527
  "type": "object",
15542
16528
  "additionalProperties": false,
@@ -15547,6 +16533,10 @@
15547
16533
  "encoding": {
15548
16534
  "description": "Encoding channel map."
15549
16535
  },
16536
+ "frame": {
16537
+ "$ref": "#/definitions/FrameConfig",
16538
+ "description": "Fixed horizontal plot gutters."
16539
+ },
15550
16540
  "fields": {
15551
16541
  "type": "object",
15552
16542
  "additionalProperties": {