@opendata-ai/openchart-core 9.0.0 → 9.2.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.
- package/dist/index.d.ts +1596 -47
- package/dist/index.js +1338 -50
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/schema/chart.schema.json +177 -16
- package/schema/table.schema.json +54 -15
- package/schema/vizspec.schema.json +1749 -55
|
@@ -31,9 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"$ref": "#/definitions/BarListSpec"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"$ref": "#/definitions/RaceSpec"
|
|
34
37
|
}
|
|
35
38
|
],
|
|
36
|
-
"description": "Top-level visualization spec: union discriminated by structural shape.\n\n- ChartSpec: has `mark` field (no `type`, no `layer`)\n- LayerSpec: has `layer` field\n- TableSpec: has `type: 'table'`\n- GraphSpec: has `type: 'graph'`\n- SankeySpec: has `type: 'sankey'`\n- TileMapSpec: has `type: 'tilemap'`\n- GeoMapSpec: has `type: 'map'`\n- BarListSpec: has `type: 'barlist'`\n\nElection parliament (hemicycle) charts are `ChartSpec` with `mark: 'parliament'`, not a separate top-level type: seat data (party + seats) maps naturally onto encoding.color/y like arc and waffle, and riding the existing chart pipeline gets scales, legend, tooltips, a11y, and dark mode for free instead of a second bespoke compile path (see `packages/engine/src/charts/parliament/`)."
|
|
39
|
+
"description": "Top-level visualization spec: union discriminated by structural shape.\n\n- ChartSpec: has `mark` field (no `type`, no `layer`)\n- LayerSpec: has `layer` field\n- TableSpec: has `type: 'table'`\n- GraphSpec: has `type: 'graph'`\n- SankeySpec: has `type: 'sankey'`\n- TileMapSpec: has `type: 'tilemap'`\n- GeoMapSpec: has `type: 'map'`\n- BarListSpec: has `type: 'barlist'`\n- RaceSpec: has `type: 'race'`\n\nElection parliament (hemicycle) charts are `ChartSpec` with `mark: 'parliament'`, not a separate top-level type: seat data (party + seats) maps naturally onto encoding.color/y like arc and waffle, and riding the existing chart pipeline gets scales, legend, tooltips, a11y, and dark mode for free instead of a second bespoke compile path (see `packages/engine/src/charts/parliament/`)."
|
|
37
40
|
},
|
|
38
41
|
"ChartSpec": {
|
|
39
42
|
"anyOf": [
|
|
@@ -446,6 +449,10 @@
|
|
|
446
449
|
],
|
|
447
450
|
"description": "Corner radius for rect/bar marks. 'pill' sets rx to half the bar thickness."
|
|
448
451
|
},
|
|
452
|
+
"mirror": {
|
|
453
|
+
"type": "boolean",
|
|
454
|
+
"description": "Mirror horizontal bars around a shared center axis (a population pyramid). Only meaningful when `type` is `'bar'`; needs a color field with exactly two values, the first drawn to the left. Defaults to false."
|
|
455
|
+
},
|
|
449
456
|
"type": {
|
|
450
457
|
"type": "string",
|
|
451
458
|
"const": "bar"
|
|
@@ -5544,7 +5551,7 @@
|
|
|
5544
5551
|
"$ref": "#/definitions/AnimationConfig"
|
|
5545
5552
|
}
|
|
5546
5553
|
],
|
|
5547
|
-
"description": "Animation spec property.\n- true:
|
|
5554
|
+
"description": "Animation spec property.\n- omitted or true: every phase (enter, update, exit) with its defaults\n- false: all motion off\n- preset name: that motion language across every phase\n- AnimationConfig: full control via enter/update/exit phases"
|
|
5548
5555
|
},
|
|
5549
5556
|
"AnimationPreset": {
|
|
5550
5557
|
"type": "string",
|
|
@@ -5564,13 +5571,13 @@
|
|
|
5564
5571
|
"enter": {
|
|
5565
5572
|
"anyOf": [
|
|
5566
5573
|
{
|
|
5567
|
-
"$ref": "#/definitions/
|
|
5574
|
+
"$ref": "#/definitions/EnterPhaseConfig"
|
|
5568
5575
|
},
|
|
5569
5576
|
{
|
|
5570
5577
|
"type": "boolean"
|
|
5571
5578
|
}
|
|
5572
5579
|
],
|
|
5573
|
-
"description": "Entrance animation when chart first renders."
|
|
5580
|
+
"description": "Entrance animation when chart first renders (by default, once it scrolls into view)."
|
|
5574
5581
|
},
|
|
5575
5582
|
"update": {
|
|
5576
5583
|
"anyOf": [
|
|
@@ -5596,13 +5603,13 @@
|
|
|
5596
5603
|
},
|
|
5597
5604
|
"annotationDelay": {
|
|
5598
5605
|
"type": "number",
|
|
5599
|
-
"description": "
|
|
5606
|
+
"description": "Gap in ms between the last mark reaching 90% of its entrance and annotations starting. Default: 150 (0 under a preset)."
|
|
5600
5607
|
}
|
|
5601
5608
|
},
|
|
5602
5609
|
"additionalProperties": false,
|
|
5603
5610
|
"description": "Full animation config object. Structured as enter/update/exit phases following Vega's encoding set model."
|
|
5604
5611
|
},
|
|
5605
|
-
"
|
|
5612
|
+
"EnterPhaseConfig": {
|
|
5606
5613
|
"type": "object",
|
|
5607
5614
|
"properties": {
|
|
5608
5615
|
"spring": {
|
|
@@ -5611,11 +5618,11 @@
|
|
|
5611
5618
|
},
|
|
5612
5619
|
"duration": {
|
|
5613
5620
|
"type": "number",
|
|
5614
|
-
"description": "Duration in ms. Default: 500 for
|
|
5621
|
+
"description": "Duration in ms. Default: 800 for enter, 500 for update, 120 for exit."
|
|
5615
5622
|
},
|
|
5616
5623
|
"ease": {
|
|
5617
5624
|
"$ref": "#/definitions/AnimationEase",
|
|
5618
|
-
"description": "Easing preset. Default: 'smooth'."
|
|
5625
|
+
"description": "Easing preset. Default: 'smooth' ('gentle' for exit)."
|
|
5619
5626
|
},
|
|
5620
5627
|
"stagger": {
|
|
5621
5628
|
"anyOf": [
|
|
@@ -5627,10 +5634,18 @@
|
|
|
5627
5634
|
}
|
|
5628
5635
|
],
|
|
5629
5636
|
"description": "Stagger config. true = defaults, false = no stagger. Default: true for enter."
|
|
5637
|
+
},
|
|
5638
|
+
"trigger": {
|
|
5639
|
+
"type": "string",
|
|
5640
|
+
"enum": [
|
|
5641
|
+
"visible",
|
|
5642
|
+
"mount"
|
|
5643
|
+
],
|
|
5644
|
+
"description": "When the entrance starts. Default: 'visible'.\n- `visible`: hold the from-state until at least 25% of the chart (or 25% of the viewport's height, for a chart taller than the viewport) is on screen, then play. A chart already in view at mount plays at once.\n- `mount`: play as soon as the chart mounts, scrolled into view or not.\n\nIgnored by export and server-side rendering, which never animate."
|
|
5630
5645
|
}
|
|
5631
5646
|
},
|
|
5632
5647
|
"additionalProperties": false,
|
|
5633
|
-
"description": "
|
|
5648
|
+
"description": "Entrance phase config. Adds `trigger` on top of the shared phase options."
|
|
5634
5649
|
},
|
|
5635
5650
|
"SpringConfig": {
|
|
5636
5651
|
"type": "object",
|
|
@@ -5652,16 +5667,17 @@
|
|
|
5652
5667
|
"type": "string",
|
|
5653
5668
|
"enum": [
|
|
5654
5669
|
"smooth",
|
|
5655
|
-
"snappy"
|
|
5670
|
+
"snappy",
|
|
5671
|
+
"gentle"
|
|
5656
5672
|
],
|
|
5657
|
-
"description": "Named easing presets for entrance animations. Uses CSS linear() curves. Named 'ease' (not 'easing') to match Vega convention."
|
|
5673
|
+
"description": "Named easing presets for entrance animations. Uses CSS linear() curves. Named 'ease' (not 'easing') to match Vega convention.\n- `smooth` (default): soft ease-out with a gentle start that settles late, no overshoot.\n- `snappy`: a fast attack, settling by about half the duration.\n- `gentle`: the previous default, a slower ease-out."
|
|
5658
5674
|
},
|
|
5659
5675
|
"AnimationStagger": {
|
|
5660
5676
|
"type": "object",
|
|
5661
5677
|
"properties": {
|
|
5662
5678
|
"delay": {
|
|
5663
5679
|
"type": "number",
|
|
5664
|
-
"description": "
|
|
5680
|
+
"description": "Gap between consecutive elements in ms. Default: 80. A ceiling: the whole stagger spans at most 450ms, so n elements land min(delay, 450 / (n - 1)) apart."
|
|
5665
5681
|
},
|
|
5666
5682
|
"order": {
|
|
5667
5683
|
"type": "string",
|
|
@@ -5685,11 +5701,11 @@
|
|
|
5685
5701
|
},
|
|
5686
5702
|
"duration": {
|
|
5687
5703
|
"type": "number",
|
|
5688
|
-
"description": "Duration in ms. Default: 500 for
|
|
5704
|
+
"description": "Duration in ms. Default: 800 for enter, 500 for update, 120 for exit."
|
|
5689
5705
|
},
|
|
5690
5706
|
"ease": {
|
|
5691
5707
|
"$ref": "#/definitions/AnimationEase",
|
|
5692
|
-
"description": "Easing preset. Default: 'smooth'."
|
|
5708
|
+
"description": "Easing preset. Default: 'smooth' ('gentle' for exit)."
|
|
5693
5709
|
},
|
|
5694
5710
|
"stagger": {
|
|
5695
5711
|
"anyOf": [
|
|
@@ -5704,19 +5720,49 @@
|
|
|
5704
5720
|
},
|
|
5705
5721
|
"maxMarks": {
|
|
5706
5722
|
"type": "number",
|
|
5707
|
-
"description": "Maximum mark count that still runs a tweened data-update transition.
|
|
5723
|
+
"description": "Maximum mark count that still runs a tweened data-update transition. Charts default to 500 (20000 in canvas mark mode); bar lists, tile maps, sankeys and maps have no cap unless you set one; tables ignore it. Above the cap the visualization swaps instantly instead, because per-frame SVG attribute writes on thousands of elements drop frames on low-end devices. Raise it deliberately when the audience is desktop-heavy and you have measured the frame budget."
|
|
5708
5724
|
}
|
|
5709
5725
|
},
|
|
5710
5726
|
"additionalProperties": false,
|
|
5711
5727
|
"description": "Data-update phase config. Adds `maxMarks` on top of the shared phase options; the cap is meaningless for enter/exit, which animate via CSS."
|
|
5712
5728
|
},
|
|
5729
|
+
"AnimationPhaseConfig": {
|
|
5730
|
+
"type": "object",
|
|
5731
|
+
"properties": {
|
|
5732
|
+
"spring": {
|
|
5733
|
+
"$ref": "#/definitions/SpringConfig",
|
|
5734
|
+
"description": "Spring mode. Cannot be combined with duration or ease in this phase."
|
|
5735
|
+
},
|
|
5736
|
+
"duration": {
|
|
5737
|
+
"type": "number",
|
|
5738
|
+
"description": "Duration in ms. Default: 800 for enter, 500 for update, 120 for exit."
|
|
5739
|
+
},
|
|
5740
|
+
"ease": {
|
|
5741
|
+
"$ref": "#/definitions/AnimationEase",
|
|
5742
|
+
"description": "Easing preset. Default: 'smooth' ('gentle' for exit)."
|
|
5743
|
+
},
|
|
5744
|
+
"stagger": {
|
|
5745
|
+
"anyOf": [
|
|
5746
|
+
{
|
|
5747
|
+
"$ref": "#/definitions/AnimationStagger"
|
|
5748
|
+
},
|
|
5749
|
+
{
|
|
5750
|
+
"type": "boolean"
|
|
5751
|
+
}
|
|
5752
|
+
],
|
|
5753
|
+
"description": "Stagger config. true = defaults, false = no stagger. Default: true for enter."
|
|
5754
|
+
}
|
|
5755
|
+
},
|
|
5756
|
+
"additionalProperties": false,
|
|
5757
|
+
"description": "Animation phase config. Follows Vega's enter/update/exit model. Each phase can be true (use defaults) or a config object."
|
|
5758
|
+
},
|
|
5713
5759
|
"Display": {
|
|
5714
5760
|
"type": "string",
|
|
5715
5761
|
"enum": [
|
|
5716
5762
|
"full",
|
|
5717
5763
|
"sparkline"
|
|
5718
5764
|
],
|
|
5719
|
-
"description": "Chart display mode.\n- `'full'` (default): standard chart with chrome, axes, legend, padding.\n- `'sparkline'`: minimal inline mini-chart. Strips chrome, axes, legend, watermark,
|
|
5765
|
+
"description": "Chart display mode.\n- `'full'` (default): standard chart with chrome, axes, legend, padding.\n- `'sparkline'`: minimal inline mini-chart. Strips chrome, axes, legend, watermark, and reduces margins to a tiny safety pad. The mark fills the container edge-to-edge. Best with `mark: 'line' | 'area' | 'bar'`. Explicit user fields (chrome, legend, encoding.x.axis, etc.) still render when set, so users can opt in to specific elements."
|
|
5720
5766
|
},
|
|
5721
5767
|
"SeriesSearchConfig": {
|
|
5722
5768
|
"type": "object",
|
|
@@ -5838,6 +5884,108 @@
|
|
|
5838
5884
|
],
|
|
5839
5885
|
"description": "Resolution strategy for shared resources across layers. 'shared' (default): union domains, single axis/legend. 'independent': each layer gets its own scale/axis/legend."
|
|
5840
5886
|
},
|
|
5887
|
+
"PlaybackConfig": {
|
|
5888
|
+
"type": "object",
|
|
5889
|
+
"properties": {
|
|
5890
|
+
"duration": {
|
|
5891
|
+
"type": "number",
|
|
5892
|
+
"description": "Total playback duration in milliseconds at 1× speed. Defaults to 700ms per period, clamped to 8000–90000ms. Mutually exclusive with `step`."
|
|
5893
|
+
},
|
|
5894
|
+
"step": {
|
|
5895
|
+
"type": "number",
|
|
5896
|
+
"description": "Duration per period in milliseconds. Omitted by default and mutually exclusive with `duration`."
|
|
5897
|
+
},
|
|
5898
|
+
"gaps": {
|
|
5899
|
+
"type": "string",
|
|
5900
|
+
"enum": [
|
|
5901
|
+
"interpolate",
|
|
5902
|
+
"hold",
|
|
5903
|
+
"drop"
|
|
5904
|
+
],
|
|
5905
|
+
"description": "Interior gap policy. Defaults to `interpolate`. Use `hold` to carry the previous value or `drop` to leave the value absent."
|
|
5906
|
+
},
|
|
5907
|
+
"holdEnd": {
|
|
5908
|
+
"type": "number",
|
|
5909
|
+
"description": "Time to dwell on the final frame in milliseconds. Defaults to 1500."
|
|
5910
|
+
},
|
|
5911
|
+
"loop": {
|
|
5912
|
+
"type": "boolean",
|
|
5913
|
+
"description": "Restart after the final hold. Defaults to false."
|
|
5914
|
+
},
|
|
5915
|
+
"autoplay": {
|
|
5916
|
+
"anyOf": [
|
|
5917
|
+
{
|
|
5918
|
+
"type": "string",
|
|
5919
|
+
"const": "visible"
|
|
5920
|
+
},
|
|
5921
|
+
{
|
|
5922
|
+
"type": "boolean"
|
|
5923
|
+
}
|
|
5924
|
+
],
|
|
5925
|
+
"description": "Start when 25% visible (`visible`, the default), immediately (`true`), or on demand (`false`). Reduced motion disables autoplay."
|
|
5926
|
+
},
|
|
5927
|
+
"controls": {
|
|
5928
|
+
"type": "boolean",
|
|
5929
|
+
"description": "Show play/pause, scrubber, and period readout. Defaults to true."
|
|
5930
|
+
},
|
|
5931
|
+
"period": {
|
|
5932
|
+
"anyOf": [
|
|
5933
|
+
{
|
|
5934
|
+
"type": "boolean",
|
|
5935
|
+
"const": false
|
|
5936
|
+
},
|
|
5937
|
+
{
|
|
5938
|
+
"type": "object",
|
|
5939
|
+
"properties": {
|
|
5940
|
+
"format": {
|
|
5941
|
+
"type": "string",
|
|
5942
|
+
"description": "Overrides the time channel's format."
|
|
5943
|
+
},
|
|
5944
|
+
"position": {
|
|
5945
|
+
"$ref": "#/definitions/PlaybackPeriodPosition",
|
|
5946
|
+
"description": "Where the label sits. Defaults to `auto`: centered for point charts, upper right for bars, and the corner that covers the least geography on maps."
|
|
5947
|
+
}
|
|
5948
|
+
},
|
|
5949
|
+
"additionalProperties": false
|
|
5950
|
+
}
|
|
5951
|
+
],
|
|
5952
|
+
"description": "Large period label. On by default with automatic placement and the time channel's format. Set false to hide it."
|
|
5953
|
+
},
|
|
5954
|
+
"labels": {
|
|
5955
|
+
"type": "array",
|
|
5956
|
+
"items": {
|
|
5957
|
+
"type": "string"
|
|
5958
|
+
},
|
|
5959
|
+
"description": "Point marks only: keys whose name is drawn next to the mark for the whole run."
|
|
5960
|
+
},
|
|
5961
|
+
"trails": {
|
|
5962
|
+
"anyOf": [
|
|
5963
|
+
{
|
|
5964
|
+
"type": "boolean"
|
|
5965
|
+
},
|
|
5966
|
+
{
|
|
5967
|
+
"type": "array",
|
|
5968
|
+
"items": {
|
|
5969
|
+
"type": "string"
|
|
5970
|
+
}
|
|
5971
|
+
}
|
|
5972
|
+
],
|
|
5973
|
+
"description": "Point marks only: draw past positions as a trail. `true` is every key; an array names keys. Defaults to false."
|
|
5974
|
+
}
|
|
5975
|
+
},
|
|
5976
|
+
"additionalProperties": false,
|
|
5977
|
+
"description": "Playback options for charts and maps with a `time` channel. Fields shared with the race's `race` block have the same names, types and defaults."
|
|
5978
|
+
},
|
|
5979
|
+
"PlaybackPeriodPosition": {
|
|
5980
|
+
"type": "string",
|
|
5981
|
+
"enum": [
|
|
5982
|
+
"auto",
|
|
5983
|
+
"center",
|
|
5984
|
+
"top-right",
|
|
5985
|
+
"bottom-left"
|
|
5986
|
+
],
|
|
5987
|
+
"description": "Placement of the large faint period label behind a playback chart."
|
|
5988
|
+
},
|
|
5841
5989
|
"ArcEncoding<DataRow>": {
|
|
5842
5990
|
"type": "object",
|
|
5843
5991
|
"properties": {
|
|
@@ -6195,6 +6343,10 @@
|
|
|
6195
6343
|
"column": {
|
|
6196
6344
|
"$ref": "#/definitions/FacetChannel%3CDataRow%3E",
|
|
6197
6345
|
"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`."
|
|
6346
|
+
},
|
|
6347
|
+
"time": {
|
|
6348
|
+
"$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
|
|
6349
|
+
"description": "Playback field. Each distinct value is one period, and the chart animates through them with the shared `playback` controls. Temporal and quantitative periods sort by value; ordinal periods follow `sort` or first-seen order."
|
|
6198
6350
|
}
|
|
6199
6351
|
},
|
|
6200
6352
|
"required": [
|
|
@@ -6464,6 +6616,10 @@
|
|
|
6464
6616
|
"column": {
|
|
6465
6617
|
"$ref": "#/definitions/FacetChannel%3CDataRow%3E",
|
|
6466
6618
|
"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`."
|
|
6619
|
+
},
|
|
6620
|
+
"time": {
|
|
6621
|
+
"$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
|
|
6622
|
+
"description": "Playback field. Each distinct value is one period, and the chart animates through them with the shared `playback` controls. Temporal and quantitative periods sort by value; ordinal periods follow `sort` or first-seen order."
|
|
6467
6623
|
}
|
|
6468
6624
|
},
|
|
6469
6625
|
"required": [
|
|
@@ -6587,6 +6743,10 @@
|
|
|
6587
6743
|
"column": {
|
|
6588
6744
|
"$ref": "#/definitions/FacetChannel%3CDataRow%3E",
|
|
6589
6745
|
"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`."
|
|
6746
|
+
},
|
|
6747
|
+
"time": {
|
|
6748
|
+
"$ref": "#/definitions/EncodingChannel%3CDataRow%3E",
|
|
6749
|
+
"description": "Playback field. Each distinct value is one period, and the chart animates through them with the shared `playback` controls. Temporal and quantitative periods sort by value; ordinal periods follow `sort` or first-seen order."
|
|
6590
6750
|
}
|
|
6591
6751
|
},
|
|
6592
6752
|
"required": [
|
|
@@ -8189,7 +8349,7 @@
|
|
|
8189
8349
|
},
|
|
8190
8350
|
"animation": {
|
|
8191
8351
|
"$ref": "#/definitions/AnimationSpec",
|
|
8192
|
-
"description": "
|
|
8352
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
8193
8353
|
}
|
|
8194
8354
|
},
|
|
8195
8355
|
"required": [
|
|
@@ -8454,7 +8614,7 @@
|
|
|
8454
8614
|
},
|
|
8455
8615
|
"animation": {
|
|
8456
8616
|
"$ref": "#/definitions/AnimationSpec",
|
|
8457
|
-
"description": "
|
|
8617
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
8458
8618
|
},
|
|
8459
8619
|
"crosshair": {
|
|
8460
8620
|
"type": "boolean",
|
|
@@ -8486,6 +8646,10 @@
|
|
|
8486
8646
|
"zIndex": {
|
|
8487
8647
|
"type": "number",
|
|
8488
8648
|
"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."
|
|
8649
|
+
},
|
|
8650
|
+
"playback": {
|
|
8651
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
8652
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
8489
8653
|
}
|
|
8490
8654
|
},
|
|
8491
8655
|
"required": [
|
|
@@ -8783,7 +8947,7 @@
|
|
|
8783
8947
|
},
|
|
8784
8948
|
"animation": {
|
|
8785
8949
|
"$ref": "#/definitions/AnimationSpec",
|
|
8786
|
-
"description": "
|
|
8950
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
8787
8951
|
},
|
|
8788
8952
|
"crosshair": {
|
|
8789
8953
|
"type": "boolean",
|
|
@@ -8815,6 +8979,10 @@
|
|
|
8815
8979
|
"zIndex": {
|
|
8816
8980
|
"type": "number",
|
|
8817
8981
|
"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."
|
|
8982
|
+
},
|
|
8983
|
+
"playback": {
|
|
8984
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
8985
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
8818
8986
|
}
|
|
8819
8987
|
},
|
|
8820
8988
|
"required": [
|
|
@@ -9111,7 +9279,7 @@
|
|
|
9111
9279
|
},
|
|
9112
9280
|
"animation": {
|
|
9113
9281
|
"$ref": "#/definitions/AnimationSpec",
|
|
9114
|
-
"description": "
|
|
9282
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
9115
9283
|
},
|
|
9116
9284
|
"crosshair": {
|
|
9117
9285
|
"type": "boolean",
|
|
@@ -9143,6 +9311,10 @@
|
|
|
9143
9311
|
"zIndex": {
|
|
9144
9312
|
"type": "number",
|
|
9145
9313
|
"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."
|
|
9314
|
+
},
|
|
9315
|
+
"playback": {
|
|
9316
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
9317
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
9146
9318
|
}
|
|
9147
9319
|
},
|
|
9148
9320
|
"required": [
|
|
@@ -9185,6 +9357,10 @@
|
|
|
9185
9357
|
],
|
|
9186
9358
|
"description": "Corner radius for rect/bar marks. 'pill' sets rx to half the bar thickness."
|
|
9187
9359
|
},
|
|
9360
|
+
"mirror": {
|
|
9361
|
+
"type": "boolean",
|
|
9362
|
+
"description": "Mirror horizontal bars around a shared center axis (a population pyramid). Only meaningful when `type` is `'bar'`; needs a color field with exactly two values, the first drawn to the left. Defaults to false."
|
|
9363
|
+
},
|
|
9188
9364
|
"type": {
|
|
9189
9365
|
"type": "string",
|
|
9190
9366
|
"const": "bar"
|
|
@@ -9421,7 +9597,7 @@
|
|
|
9421
9597
|
},
|
|
9422
9598
|
"animation": {
|
|
9423
9599
|
"$ref": "#/definitions/AnimationSpec",
|
|
9424
|
-
"description": "
|
|
9600
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
9425
9601
|
},
|
|
9426
9602
|
"crosshair": {
|
|
9427
9603
|
"type": "boolean",
|
|
@@ -9453,6 +9629,10 @@
|
|
|
9453
9629
|
"zIndex": {
|
|
9454
9630
|
"type": "number",
|
|
9455
9631
|
"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."
|
|
9632
|
+
},
|
|
9633
|
+
"playback": {
|
|
9634
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
9635
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
9456
9636
|
}
|
|
9457
9637
|
},
|
|
9458
9638
|
"required": [
|
|
@@ -9749,7 +9929,7 @@
|
|
|
9749
9929
|
},
|
|
9750
9930
|
"animation": {
|
|
9751
9931
|
"$ref": "#/definitions/AnimationSpec",
|
|
9752
|
-
"description": "
|
|
9932
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
9753
9933
|
},
|
|
9754
9934
|
"crosshair": {
|
|
9755
9935
|
"type": "boolean",
|
|
@@ -9781,6 +9961,10 @@
|
|
|
9781
9961
|
"zIndex": {
|
|
9782
9962
|
"type": "number",
|
|
9783
9963
|
"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."
|
|
9964
|
+
},
|
|
9965
|
+
"playback": {
|
|
9966
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
9967
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
9784
9968
|
}
|
|
9785
9969
|
},
|
|
9786
9970
|
"required": [
|
|
@@ -10050,7 +10234,7 @@
|
|
|
10050
10234
|
},
|
|
10051
10235
|
"animation": {
|
|
10052
10236
|
"$ref": "#/definitions/AnimationSpec",
|
|
10053
|
-
"description": "
|
|
10237
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
10054
10238
|
},
|
|
10055
10239
|
"crosshair": {
|
|
10056
10240
|
"type": "boolean",
|
|
@@ -10082,6 +10266,10 @@
|
|
|
10082
10266
|
"zIndex": {
|
|
10083
10267
|
"type": "number",
|
|
10084
10268
|
"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."
|
|
10269
|
+
},
|
|
10270
|
+
"playback": {
|
|
10271
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
10272
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
10085
10273
|
}
|
|
10086
10274
|
},
|
|
10087
10275
|
"required": [
|
|
@@ -10340,7 +10528,7 @@
|
|
|
10340
10528
|
},
|
|
10341
10529
|
"animation": {
|
|
10342
10530
|
"$ref": "#/definitions/AnimationSpec",
|
|
10343
|
-
"description": "
|
|
10531
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
10344
10532
|
},
|
|
10345
10533
|
"crosshair": {
|
|
10346
10534
|
"type": "boolean",
|
|
@@ -10372,6 +10560,10 @@
|
|
|
10372
10560
|
"zIndex": {
|
|
10373
10561
|
"type": "number",
|
|
10374
10562
|
"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."
|
|
10563
|
+
},
|
|
10564
|
+
"playback": {
|
|
10565
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
10566
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
10375
10567
|
}
|
|
10376
10568
|
},
|
|
10377
10569
|
"required": [
|
|
@@ -10630,7 +10822,7 @@
|
|
|
10630
10822
|
},
|
|
10631
10823
|
"animation": {
|
|
10632
10824
|
"$ref": "#/definitions/AnimationSpec",
|
|
10633
|
-
"description": "
|
|
10825
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
10634
10826
|
},
|
|
10635
10827
|
"crosshair": {
|
|
10636
10828
|
"type": "boolean",
|
|
@@ -10662,6 +10854,10 @@
|
|
|
10662
10854
|
"zIndex": {
|
|
10663
10855
|
"type": "number",
|
|
10664
10856
|
"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."
|
|
10857
|
+
},
|
|
10858
|
+
"playback": {
|
|
10859
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
10860
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
10665
10861
|
}
|
|
10666
10862
|
},
|
|
10667
10863
|
"required": [
|
|
@@ -10920,7 +11116,7 @@
|
|
|
10920
11116
|
},
|
|
10921
11117
|
"animation": {
|
|
10922
11118
|
"$ref": "#/definitions/AnimationSpec",
|
|
10923
|
-
"description": "
|
|
11119
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
10924
11120
|
},
|
|
10925
11121
|
"crosshair": {
|
|
10926
11122
|
"type": "boolean",
|
|
@@ -10952,6 +11148,10 @@
|
|
|
10952
11148
|
"zIndex": {
|
|
10953
11149
|
"type": "number",
|
|
10954
11150
|
"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."
|
|
11151
|
+
},
|
|
11152
|
+
"playback": {
|
|
11153
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
11154
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
10955
11155
|
}
|
|
10956
11156
|
},
|
|
10957
11157
|
"required": [
|
|
@@ -11223,7 +11423,7 @@
|
|
|
11223
11423
|
},
|
|
11224
11424
|
"animation": {
|
|
11225
11425
|
"$ref": "#/definitions/AnimationSpec",
|
|
11226
|
-
"description": "
|
|
11426
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
11227
11427
|
},
|
|
11228
11428
|
"crosshair": {
|
|
11229
11429
|
"type": "boolean",
|
|
@@ -11255,6 +11455,10 @@
|
|
|
11255
11455
|
"zIndex": {
|
|
11256
11456
|
"type": "number",
|
|
11257
11457
|
"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."
|
|
11458
|
+
},
|
|
11459
|
+
"playback": {
|
|
11460
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
11461
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
11258
11462
|
}
|
|
11259
11463
|
},
|
|
11260
11464
|
"required": [
|
|
@@ -11556,7 +11760,7 @@
|
|
|
11556
11760
|
},
|
|
11557
11761
|
"animation": {
|
|
11558
11762
|
"$ref": "#/definitions/AnimationSpec",
|
|
11559
|
-
"description": "
|
|
11763
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
11560
11764
|
},
|
|
11561
11765
|
"crosshair": {
|
|
11562
11766
|
"type": "boolean",
|
|
@@ -11588,6 +11792,10 @@
|
|
|
11588
11792
|
"zIndex": {
|
|
11589
11793
|
"type": "number",
|
|
11590
11794
|
"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."
|
|
11795
|
+
},
|
|
11796
|
+
"playback": {
|
|
11797
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
11798
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
11591
11799
|
}
|
|
11592
11800
|
},
|
|
11593
11801
|
"required": [
|
|
@@ -11876,7 +12084,7 @@
|
|
|
11876
12084
|
},
|
|
11877
12085
|
"animation": {
|
|
11878
12086
|
"$ref": "#/definitions/AnimationSpec",
|
|
11879
|
-
"description": "
|
|
12087
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
11880
12088
|
},
|
|
11881
12089
|
"crosshair": {
|
|
11882
12090
|
"type": "boolean",
|
|
@@ -11908,6 +12116,10 @@
|
|
|
11908
12116
|
"zIndex": {
|
|
11909
12117
|
"type": "number",
|
|
11910
12118
|
"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."
|
|
12119
|
+
},
|
|
12120
|
+
"playback": {
|
|
12121
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
12122
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
11911
12123
|
}
|
|
11912
12124
|
},
|
|
11913
12125
|
"required": [
|
|
@@ -12166,7 +12378,7 @@
|
|
|
12166
12378
|
},
|
|
12167
12379
|
"animation": {
|
|
12168
12380
|
"$ref": "#/definitions/AnimationSpec",
|
|
12169
|
-
"description": "
|
|
12381
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
12170
12382
|
},
|
|
12171
12383
|
"crosshair": {
|
|
12172
12384
|
"type": "boolean",
|
|
@@ -12198,6 +12410,10 @@
|
|
|
12198
12410
|
"zIndex": {
|
|
12199
12411
|
"type": "number",
|
|
12200
12412
|
"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."
|
|
12413
|
+
},
|
|
12414
|
+
"playback": {
|
|
12415
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
12416
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
12201
12417
|
}
|
|
12202
12418
|
},
|
|
12203
12419
|
"required": [
|
|
@@ -12468,7 +12684,7 @@
|
|
|
12468
12684
|
},
|
|
12469
12685
|
"animation": {
|
|
12470
12686
|
"$ref": "#/definitions/AnimationSpec",
|
|
12471
|
-
"description": "
|
|
12687
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
12472
12688
|
},
|
|
12473
12689
|
"crosshair": {
|
|
12474
12690
|
"type": "boolean",
|
|
@@ -12500,6 +12716,10 @@
|
|
|
12500
12716
|
"zIndex": {
|
|
12501
12717
|
"type": "number",
|
|
12502
12718
|
"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."
|
|
12719
|
+
},
|
|
12720
|
+
"playback": {
|
|
12721
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
12722
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
12503
12723
|
}
|
|
12504
12724
|
},
|
|
12505
12725
|
"required": [
|
|
@@ -12758,7 +12978,7 @@
|
|
|
12758
12978
|
},
|
|
12759
12979
|
"animation": {
|
|
12760
12980
|
"$ref": "#/definitions/AnimationSpec",
|
|
12761
|
-
"description": "
|
|
12981
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
12762
12982
|
},
|
|
12763
12983
|
"crosshair": {
|
|
12764
12984
|
"type": "boolean",
|
|
@@ -12790,6 +13010,10 @@
|
|
|
12790
13010
|
"zIndex": {
|
|
12791
13011
|
"type": "number",
|
|
12792
13012
|
"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."
|
|
13013
|
+
},
|
|
13014
|
+
"playback": {
|
|
13015
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
13016
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
12793
13017
|
}
|
|
12794
13018
|
},
|
|
12795
13019
|
"required": [
|
|
@@ -13060,7 +13284,7 @@
|
|
|
13060
13284
|
},
|
|
13061
13285
|
"animation": {
|
|
13062
13286
|
"$ref": "#/definitions/AnimationSpec",
|
|
13063
|
-
"description": "
|
|
13287
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
13064
13288
|
},
|
|
13065
13289
|
"crosshair": {
|
|
13066
13290
|
"type": "boolean",
|
|
@@ -13092,6 +13316,10 @@
|
|
|
13092
13316
|
"zIndex": {
|
|
13093
13317
|
"type": "number",
|
|
13094
13318
|
"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."
|
|
13319
|
+
},
|
|
13320
|
+
"playback": {
|
|
13321
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
13322
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
13095
13323
|
}
|
|
13096
13324
|
},
|
|
13097
13325
|
"required": [
|
|
@@ -13387,7 +13615,7 @@
|
|
|
13387
13615
|
},
|
|
13388
13616
|
"animation": {
|
|
13389
13617
|
"$ref": "#/definitions/AnimationSpec",
|
|
13390
|
-
"description": "
|
|
13618
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
13391
13619
|
},
|
|
13392
13620
|
"crosshair": {
|
|
13393
13621
|
"type": "boolean",
|
|
@@ -13419,6 +13647,10 @@
|
|
|
13419
13647
|
"zIndex": {
|
|
13420
13648
|
"type": "number",
|
|
13421
13649
|
"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."
|
|
13650
|
+
},
|
|
13651
|
+
"playback": {
|
|
13652
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
13653
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
13422
13654
|
}
|
|
13423
13655
|
},
|
|
13424
13656
|
"required": [
|
|
@@ -13705,7 +13937,7 @@
|
|
|
13705
13937
|
},
|
|
13706
13938
|
"animation": {
|
|
13707
13939
|
"$ref": "#/definitions/AnimationSpec",
|
|
13708
|
-
"description": "
|
|
13940
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
13709
13941
|
},
|
|
13710
13942
|
"crosshair": {
|
|
13711
13943
|
"type": "boolean",
|
|
@@ -13737,6 +13969,10 @@
|
|
|
13737
13969
|
"zIndex": {
|
|
13738
13970
|
"type": "number",
|
|
13739
13971
|
"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."
|
|
13972
|
+
},
|
|
13973
|
+
"playback": {
|
|
13974
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
13975
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
13740
13976
|
}
|
|
13741
13977
|
},
|
|
13742
13978
|
"required": [
|
|
@@ -14045,7 +14281,7 @@
|
|
|
14045
14281
|
},
|
|
14046
14282
|
"animation": {
|
|
14047
14283
|
"$ref": "#/definitions/AnimationSpec",
|
|
14048
|
-
"description": "
|
|
14284
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
14049
14285
|
},
|
|
14050
14286
|
"crosshair": {
|
|
14051
14287
|
"type": "boolean",
|
|
@@ -14077,6 +14313,10 @@
|
|
|
14077
14313
|
"zIndex": {
|
|
14078
14314
|
"type": "number",
|
|
14079
14315
|
"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."
|
|
14316
|
+
},
|
|
14317
|
+
"playback": {
|
|
14318
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
14319
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
14080
14320
|
}
|
|
14081
14321
|
},
|
|
14082
14322
|
"required": [
|
|
@@ -14236,7 +14476,7 @@
|
|
|
14236
14476
|
},
|
|
14237
14477
|
"animation": {
|
|
14238
14478
|
"$ref": "#/definitions/AnimationSpec",
|
|
14239
|
-
"description": "
|
|
14479
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
14240
14480
|
}
|
|
14241
14481
|
},
|
|
14242
14482
|
"required": [
|
|
@@ -14362,7 +14602,7 @@
|
|
|
14362
14602
|
},
|
|
14363
14603
|
"animation": {
|
|
14364
14604
|
"$ref": "#/definitions/AnimationSpec",
|
|
14365
|
-
"description": "
|
|
14605
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins. Tables animate their entrance only; updates re-render instantly."
|
|
14366
14606
|
}
|
|
14367
14607
|
},
|
|
14368
14608
|
"required": [
|
|
@@ -14714,7 +14954,7 @@
|
|
|
14714
14954
|
},
|
|
14715
14955
|
"animation": {
|
|
14716
14956
|
"$ref": "#/definitions/GraphAnimationSpec",
|
|
14717
|
-
"description": "Motion
|
|
14957
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins. Layout warmup still runs when false."
|
|
14718
14958
|
},
|
|
14719
14959
|
"interaction": {
|
|
14720
14960
|
"$ref": "#/definitions/GraphInteractionConfig",
|
|
@@ -15012,7 +15252,7 @@
|
|
|
15012
15252
|
"$ref": "#/definitions/GraphAnimationConfig"
|
|
15013
15253
|
}
|
|
15014
15254
|
],
|
|
15015
|
-
"description": "Graph motion spec.\n- omitted → full defaults
|
|
15255
|
+
"description": "Graph motion spec.\n- omitted or `true` → full defaults\n- `false` → no choreography (warmup still applies)\n- object → per-phase control\n\n`prefers-reduced-motion` is always respected regardless of this value."
|
|
15016
15256
|
},
|
|
15017
15257
|
"GraphAnimationConfig": {
|
|
15018
15258
|
"type": "object",
|
|
@@ -15020,18 +15260,18 @@
|
|
|
15020
15260
|
"enter": {
|
|
15021
15261
|
"anyOf": [
|
|
15022
15262
|
{
|
|
15023
|
-
"$ref": "#/definitions/
|
|
15263
|
+
"$ref": "#/definitions/GraphEnterPhaseConfig"
|
|
15024
15264
|
},
|
|
15025
15265
|
{
|
|
15026
15266
|
"type": "boolean"
|
|
15027
15267
|
}
|
|
15028
15268
|
],
|
|
15029
|
-
"description": "Node/edge reveal on first render. Default `{ duration: 500, ease: 'smooth', stagger: true }`."
|
|
15269
|
+
"description": "Node/edge reveal on first render. Default `{ duration: 500, ease: 'smooth', stagger: true, trigger: 'visible' }`."
|
|
15030
15270
|
},
|
|
15031
15271
|
"update": {
|
|
15032
15272
|
"anyOf": [
|
|
15033
15273
|
{
|
|
15034
|
-
"$ref": "#/definitions/
|
|
15274
|
+
"$ref": "#/definitions/GraphPhaseConfig"
|
|
15035
15275
|
},
|
|
15036
15276
|
{
|
|
15037
15277
|
"type": "boolean"
|
|
@@ -15042,7 +15282,7 @@
|
|
|
15042
15282
|
"exit": {
|
|
15043
15283
|
"anyOf": [
|
|
15044
15284
|
{
|
|
15045
|
-
"$ref": "#/definitions/
|
|
15285
|
+
"$ref": "#/definitions/GraphPhaseConfig"
|
|
15046
15286
|
},
|
|
15047
15287
|
{
|
|
15048
15288
|
"type": "boolean"
|
|
@@ -15092,7 +15332,65 @@
|
|
|
15092
15332
|
}
|
|
15093
15333
|
},
|
|
15094
15334
|
"additionalProperties": false,
|
|
15095
|
-
"description": "Per-phase and per-behavior motion config for a graph
|
|
15335
|
+
"description": "Per-phase and per-behavior motion config for a graph. A per-phase `false` disables just that phase."
|
|
15336
|
+
},
|
|
15337
|
+
"GraphEnterPhaseConfig": {
|
|
15338
|
+
"type": "object",
|
|
15339
|
+
"properties": {
|
|
15340
|
+
"duration": {
|
|
15341
|
+
"type": "number",
|
|
15342
|
+
"description": "Duration in ms."
|
|
15343
|
+
},
|
|
15344
|
+
"ease": {
|
|
15345
|
+
"$ref": "#/definitions/AnimationEase",
|
|
15346
|
+
"description": "Easing preset."
|
|
15347
|
+
},
|
|
15348
|
+
"spring": {
|
|
15349
|
+
"$ref": "#/definitions/SpringConfig",
|
|
15350
|
+
"description": "Spring mode. Cannot be combined with duration or ease in this phase."
|
|
15351
|
+
},
|
|
15352
|
+
"stagger": {
|
|
15353
|
+
"anyOf": [
|
|
15354
|
+
{
|
|
15355
|
+
"type": "boolean"
|
|
15356
|
+
},
|
|
15357
|
+
{
|
|
15358
|
+
"$ref": "#/definitions/AnimationStagger"
|
|
15359
|
+
}
|
|
15360
|
+
],
|
|
15361
|
+
"description": "Stagger the reveal. Default: true. Graphs order their reveal by layout, so only on/off applies.",
|
|
15362
|
+
"deprecated": "The object form (`{ delay, order }`) is ignored: any value\nother than `false` staggers. Use `true` or `false`."
|
|
15363
|
+
},
|
|
15364
|
+
"trigger": {
|
|
15365
|
+
"type": "string",
|
|
15366
|
+
"enum": [
|
|
15367
|
+
"visible",
|
|
15368
|
+
"mount"
|
|
15369
|
+
],
|
|
15370
|
+
"description": "When the entrance starts. Default: 'visible'.\n- `visible`: wait until the graph is on screen, then play.\n- `mount`: play as soon as the graph mounts."
|
|
15371
|
+
}
|
|
15372
|
+
},
|
|
15373
|
+
"additionalProperties": false,
|
|
15374
|
+
"description": "Graph entrance phase: adds the reveal stagger toggle and the trigger."
|
|
15375
|
+
},
|
|
15376
|
+
"GraphPhaseConfig": {
|
|
15377
|
+
"type": "object",
|
|
15378
|
+
"properties": {
|
|
15379
|
+
"duration": {
|
|
15380
|
+
"type": "number",
|
|
15381
|
+
"description": "Duration in ms."
|
|
15382
|
+
},
|
|
15383
|
+
"ease": {
|
|
15384
|
+
"$ref": "#/definitions/AnimationEase",
|
|
15385
|
+
"description": "Easing preset."
|
|
15386
|
+
},
|
|
15387
|
+
"spring": {
|
|
15388
|
+
"$ref": "#/definitions/SpringConfig",
|
|
15389
|
+
"description": "Spring mode. Cannot be combined with duration or ease in this phase."
|
|
15390
|
+
}
|
|
15391
|
+
},
|
|
15392
|
+
"additionalProperties": false,
|
|
15393
|
+
"description": "One graph motion phase: a tween (duration + ease) or a spring."
|
|
15096
15394
|
},
|
|
15097
15395
|
"GraphInteractionConfig": {
|
|
15098
15396
|
"type": "object",
|
|
@@ -15254,7 +15552,20 @@
|
|
|
15254
15552
|
},
|
|
15255
15553
|
"animation": {
|
|
15256
15554
|
"$ref": "#/definitions/AnimationSpec",
|
|
15257
|
-
"description": "
|
|
15555
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
15556
|
+
},
|
|
15557
|
+
"overrides": {
|
|
15558
|
+
"type": "object",
|
|
15559
|
+
"properties": {
|
|
15560
|
+
"compact": {
|
|
15561
|
+
"$ref": "#/definitions/SankeySpecOverride"
|
|
15562
|
+
},
|
|
15563
|
+
"medium": {
|
|
15564
|
+
"$ref": "#/definitions/SankeySpecOverride"
|
|
15565
|
+
}
|
|
15566
|
+
},
|
|
15567
|
+
"additionalProperties": false,
|
|
15568
|
+
"description": "Breakpoint-specific settings: `compact` applies under 400px, `medium` from 400 to 700px. The active block merges over the top-level spec; `chrome` merges one level deep, every other field replaces its top-level value. Typical use: fold small flows into \"Other\" only on phones."
|
|
15258
15569
|
}
|
|
15259
15570
|
},
|
|
15260
15571
|
"required": [
|
|
@@ -15508,6 +15819,60 @@
|
|
|
15508
15819
|
],
|
|
15509
15820
|
"description": "Link coloring strategy for sankey diagrams."
|
|
15510
15821
|
},
|
|
15822
|
+
"SankeySpecOverride": {
|
|
15823
|
+
"type": "object",
|
|
15824
|
+
"properties": {
|
|
15825
|
+
"chrome": {
|
|
15826
|
+
"$ref": "#/definitions/Chrome",
|
|
15827
|
+
"description": "Editorial chrome at this breakpoint, merged over the top-level chrome."
|
|
15828
|
+
},
|
|
15829
|
+
"other": {
|
|
15830
|
+
"anyOf": [
|
|
15831
|
+
{
|
|
15832
|
+
"type": "number"
|
|
15833
|
+
},
|
|
15834
|
+
{
|
|
15835
|
+
"type": "object",
|
|
15836
|
+
"properties": {
|
|
15837
|
+
"threshold": {
|
|
15838
|
+
"type": "number"
|
|
15839
|
+
},
|
|
15840
|
+
"label": {
|
|
15841
|
+
"type": "string"
|
|
15842
|
+
}
|
|
15843
|
+
},
|
|
15844
|
+
"required": [
|
|
15845
|
+
"threshold"
|
|
15846
|
+
],
|
|
15847
|
+
"additionalProperties": false
|
|
15848
|
+
}
|
|
15849
|
+
],
|
|
15850
|
+
"description": "\"Other\" bucketing at this breakpoint (see `SankeySpec.other`)."
|
|
15851
|
+
},
|
|
15852
|
+
"nodeSort": {
|
|
15853
|
+
"type": "array",
|
|
15854
|
+
"items": {
|
|
15855
|
+
"type": "string"
|
|
15856
|
+
},
|
|
15857
|
+
"description": "Node order at this breakpoint (see `SankeySpec.nodeSort`)."
|
|
15858
|
+
},
|
|
15859
|
+
"nodeLabelAlign": {
|
|
15860
|
+
"type": "string",
|
|
15861
|
+
"enum": [
|
|
15862
|
+
"auto",
|
|
15863
|
+
"left",
|
|
15864
|
+
"right"
|
|
15865
|
+
],
|
|
15866
|
+
"description": "Label side at this breakpoint (see `SankeySpec.nodeLabelAlign`)."
|
|
15867
|
+
},
|
|
15868
|
+
"nodePadding": {
|
|
15869
|
+
"type": "number",
|
|
15870
|
+
"description": "Vertical gap between nodes at this breakpoint, in pixels."
|
|
15871
|
+
}
|
|
15872
|
+
},
|
|
15873
|
+
"additionalProperties": false,
|
|
15874
|
+
"description": "Settings a sankey can change per breakpoint through `SankeySpec.overrides`. Each field means what it means on `SankeySpec`."
|
|
15875
|
+
},
|
|
15511
15876
|
"TileMapSpec": {
|
|
15512
15877
|
"type": "object",
|
|
15513
15878
|
"properties": {
|
|
@@ -15570,11 +15935,15 @@
|
|
|
15570
15935
|
},
|
|
15571
15936
|
"animation": {
|
|
15572
15937
|
"$ref": "#/definitions/AnimationSpec",
|
|
15573
|
-
"description": "
|
|
15938
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
15574
15939
|
},
|
|
15575
15940
|
"valueFormat": {
|
|
15576
15941
|
"type": "string",
|
|
15577
15942
|
"description": "d3-format string applied to tile values, legend labels, and tooltips. Examples: \".1f\" for one decimal, \"$,.0f\" for currency, \"~s\" for SI."
|
|
15943
|
+
},
|
|
15944
|
+
"playback": {
|
|
15945
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
15946
|
+
"description": "Playback timing, controls and period label. Applies when `encoding.time` is set."
|
|
15578
15947
|
}
|
|
15579
15948
|
},
|
|
15580
15949
|
"required": [
|
|
@@ -15611,6 +15980,10 @@
|
|
|
15611
15980
|
}
|
|
15612
15981
|
],
|
|
15613
15982
|
"description": "Tooltip encoding (optional)."
|
|
15983
|
+
},
|
|
15984
|
+
"time": {
|
|
15985
|
+
"$ref": "#/definitions/EncodingChannel",
|
|
15986
|
+
"description": "Playback field (optional). Each distinct value is one period; tiles recolor as the map plays."
|
|
15614
15987
|
}
|
|
15615
15988
|
},
|
|
15616
15989
|
"required": [
|
|
@@ -15703,7 +16076,11 @@
|
|
|
15703
16076
|
},
|
|
15704
16077
|
"animation": {
|
|
15705
16078
|
"$ref": "#/definitions/AnimationSpec",
|
|
15706
|
-
"description": "
|
|
16079
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
16080
|
+
},
|
|
16081
|
+
"playback": {
|
|
16082
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
16083
|
+
"description": "Playback timing, controls and period label. Applies when `encoding.time` or `points.time` is set."
|
|
15707
16084
|
}
|
|
15708
16085
|
},
|
|
15709
16086
|
"required": [
|
|
@@ -16016,6 +16393,10 @@
|
|
|
16016
16393
|
}
|
|
16017
16394
|
],
|
|
16018
16395
|
"description": "Tooltip encoding (optional)."
|
|
16396
|
+
},
|
|
16397
|
+
"time": {
|
|
16398
|
+
"$ref": "#/definitions/EncodingChannel",
|
|
16399
|
+
"description": "Playback field (optional). Each distinct value is one period; features recolor as the map plays."
|
|
16019
16400
|
}
|
|
16020
16401
|
},
|
|
16021
16402
|
"additionalProperties": false,
|
|
@@ -16076,6 +16457,10 @@
|
|
|
16076
16457
|
"opacity": {
|
|
16077
16458
|
"type": "number",
|
|
16078
16459
|
"description": "Fill opacity for point circles. Default 0.65. Range 0-1."
|
|
16460
|
+
},
|
|
16461
|
+
"time": {
|
|
16462
|
+
"$ref": "#/definitions/EncodingChannel",
|
|
16463
|
+
"description": "Playback field (optional). Point size and color follow each period; requires `key`."
|
|
16079
16464
|
}
|
|
16080
16465
|
},
|
|
16081
16466
|
"required": [
|
|
@@ -16426,7 +16811,7 @@
|
|
|
16426
16811
|
},
|
|
16427
16812
|
"animation": {
|
|
16428
16813
|
"$ref": "#/definitions/AnimationSpec",
|
|
16429
|
-
"description": "
|
|
16814
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
16430
16815
|
}
|
|
16431
16816
|
},
|
|
16432
16817
|
"required": [
|
|
@@ -16523,14 +16908,1319 @@
|
|
|
16523
16908
|
],
|
|
16524
16909
|
"description": "Authored mark text, kept verbatim for strings and formatted for numeric fields."
|
|
16525
16910
|
},
|
|
16526
|
-
"
|
|
16911
|
+
"RaceSpec": {
|
|
16527
16912
|
"type": "object",
|
|
16528
|
-
"additionalProperties": false,
|
|
16529
16913
|
"properties": {
|
|
16530
|
-
"
|
|
16531
|
-
"
|
|
16914
|
+
"type": {
|
|
16915
|
+
"type": "string",
|
|
16916
|
+
"const": "race",
|
|
16917
|
+
"description": "Discriminant, always `race`."
|
|
16532
16918
|
},
|
|
16533
|
-
"
|
|
16919
|
+
"data": {
|
|
16920
|
+
"type": "array",
|
|
16921
|
+
"items": {
|
|
16922
|
+
"$ref": "#/definitions/DataRow"
|
|
16923
|
+
},
|
|
16924
|
+
"description": "One data row per key and period."
|
|
16925
|
+
},
|
|
16926
|
+
"mark": {
|
|
16927
|
+
"anyOf": [
|
|
16928
|
+
{
|
|
16929
|
+
"$ref": "#/definitions/RaceMarkType"
|
|
16930
|
+
},
|
|
16931
|
+
{
|
|
16932
|
+
"$ref": "#/definitions/RaceMarkDef"
|
|
16933
|
+
}
|
|
16934
|
+
],
|
|
16935
|
+
"description": "Required bar, line, or table mark. A string uses that mark's default options."
|
|
16936
|
+
},
|
|
16937
|
+
"encoding": {
|
|
16938
|
+
"$ref": "#/definitions/RaceEncoding",
|
|
16939
|
+
"description": "Maps fields to time, key, value, and optional color and label."
|
|
16940
|
+
},
|
|
16941
|
+
"race": {
|
|
16942
|
+
"$ref": "#/definitions/RaceConfig",
|
|
16943
|
+
"description": "Ranking and playback options. Omit to use the race defaults."
|
|
16944
|
+
},
|
|
16945
|
+
"playback": {
|
|
16946
|
+
"$ref": "#/definitions/PlaybackTimingConfig",
|
|
16947
|
+
"description": "Playback timing in the shared form. Setting a field here and in `race` is an error."
|
|
16948
|
+
},
|
|
16949
|
+
"chrome": {
|
|
16950
|
+
"$ref": "#/definitions/Chrome",
|
|
16951
|
+
"description": "Editorial chrome. Omit to draw without authored title, subtitle, or other chrome text."
|
|
16952
|
+
},
|
|
16953
|
+
"theme": {
|
|
16954
|
+
"$ref": "#/definitions/ThemeConfig",
|
|
16955
|
+
"description": "Theme overrides. Omit to use the default theme."
|
|
16956
|
+
},
|
|
16957
|
+
"a11y": {
|
|
16958
|
+
"$ref": "#/definitions/A11yConfig",
|
|
16959
|
+
"description": "Accessibility overrides. Omit to use generated metadata."
|
|
16960
|
+
},
|
|
16961
|
+
"watermark": {
|
|
16962
|
+
"type": "boolean",
|
|
16963
|
+
"description": "Whether to show the OpenData watermark. Defaults to true."
|
|
16964
|
+
},
|
|
16965
|
+
"width": {
|
|
16966
|
+
"type": "number",
|
|
16967
|
+
"description": "Fixed render width in pixels. Defaults to container-driven sizing."
|
|
16968
|
+
},
|
|
16969
|
+
"height": {
|
|
16970
|
+
"type": "number",
|
|
16971
|
+
"description": "Fixed render height in pixels. Defaults to container-driven sizing."
|
|
16972
|
+
},
|
|
16973
|
+
"labels": {
|
|
16974
|
+
"type": "object",
|
|
16975
|
+
"properties": {
|
|
16976
|
+
"format": {
|
|
16977
|
+
"type": "string",
|
|
16978
|
+
"description": "Number format override for label values (d3-format string, e.g. \",.0f\")."
|
|
16979
|
+
}
|
|
16980
|
+
},
|
|
16981
|
+
"additionalProperties": false,
|
|
16982
|
+
"description": "Value label format override. Omit to use the value channel's format or automatic formatting."
|
|
16983
|
+
},
|
|
16984
|
+
"animation": {
|
|
16985
|
+
"$ref": "#/definitions/AnimationSpec",
|
|
16986
|
+
"description": "Set false to disable autoplay and open on the final frame. Playback otherwise follows `race`."
|
|
16987
|
+
}
|
|
16988
|
+
},
|
|
16989
|
+
"required": [
|
|
16990
|
+
"type",
|
|
16991
|
+
"data",
|
|
16992
|
+
"mark",
|
|
16993
|
+
"encoding"
|
|
16994
|
+
],
|
|
16995
|
+
"additionalProperties": false,
|
|
16996
|
+
"description": "Animated top-N leaderboard over a sequence of periods."
|
|
16997
|
+
},
|
|
16998
|
+
"RaceMarkType": {
|
|
16999
|
+
"type": "string",
|
|
17000
|
+
"enum": [
|
|
17001
|
+
"bar",
|
|
17002
|
+
"line",
|
|
17003
|
+
"table"
|
|
17004
|
+
],
|
|
17005
|
+
"description": "Mark used to draw each frame of a race."
|
|
17006
|
+
},
|
|
17007
|
+
"RaceMarkDef": {
|
|
17008
|
+
"anyOf": [
|
|
17009
|
+
{
|
|
17010
|
+
"$ref": "#/definitions/RaceBarMarkDef"
|
|
17011
|
+
},
|
|
17012
|
+
{
|
|
17013
|
+
"$ref": "#/definitions/RaceLineMarkDef"
|
|
17014
|
+
},
|
|
17015
|
+
{
|
|
17016
|
+
"$ref": "#/definitions/RaceTableMarkDef"
|
|
17017
|
+
}
|
|
17018
|
+
],
|
|
17019
|
+
"description": "Race mark and its mark-specific options."
|
|
17020
|
+
},
|
|
17021
|
+
"RaceBarMarkDef": {
|
|
17022
|
+
"type": "object",
|
|
17023
|
+
"properties": {
|
|
17024
|
+
"type": {
|
|
17025
|
+
"type": "string",
|
|
17026
|
+
"const": "bar",
|
|
17027
|
+
"description": "Draw horizontal bars."
|
|
17028
|
+
},
|
|
17029
|
+
"cornerRadius": {
|
|
17030
|
+
"type": "number",
|
|
17031
|
+
"description": "Bar corner radius in pixels. Omit to use square corners."
|
|
17032
|
+
}
|
|
17033
|
+
},
|
|
17034
|
+
"required": [
|
|
17035
|
+
"type"
|
|
17036
|
+
],
|
|
17037
|
+
"additionalProperties": false
|
|
17038
|
+
},
|
|
17039
|
+
"RaceLineMarkDef": {
|
|
17040
|
+
"type": "object",
|
|
17041
|
+
"properties": {
|
|
17042
|
+
"type": {
|
|
17043
|
+
"type": "string",
|
|
17044
|
+
"const": "line",
|
|
17045
|
+
"description": "Draw a line for each ranked series."
|
|
17046
|
+
},
|
|
17047
|
+
"window": {
|
|
17048
|
+
"type": "string",
|
|
17049
|
+
"enum": [
|
|
17050
|
+
"reveal",
|
|
17051
|
+
"all"
|
|
17052
|
+
],
|
|
17053
|
+
"description": "Defaults to `reveal`, which expands the x domain to the playhead. `all` shows the full span."
|
|
17054
|
+
}
|
|
17055
|
+
},
|
|
17056
|
+
"required": [
|
|
17057
|
+
"type"
|
|
17058
|
+
],
|
|
17059
|
+
"additionalProperties": false
|
|
17060
|
+
},
|
|
17061
|
+
"RaceTableMarkDef": {
|
|
17062
|
+
"type": "object",
|
|
17063
|
+
"properties": {
|
|
17064
|
+
"type": {
|
|
17065
|
+
"type": "string",
|
|
17066
|
+
"const": "table",
|
|
17067
|
+
"description": "Draw a table of ranked rows."
|
|
17068
|
+
},
|
|
17069
|
+
"columns": {
|
|
17070
|
+
"type": "array",
|
|
17071
|
+
"items": {
|
|
17072
|
+
"$ref": "#/definitions/RaceTableColumn"
|
|
17073
|
+
},
|
|
17074
|
+
"description": "Ordered columns. Defaults to all six in the listed order, with `bar` hidden below 520px."
|
|
17075
|
+
}
|
|
17076
|
+
},
|
|
17077
|
+
"required": [
|
|
17078
|
+
"type"
|
|
17079
|
+
],
|
|
17080
|
+
"additionalProperties": false
|
|
17081
|
+
},
|
|
17082
|
+
"RaceTableColumn": {
|
|
17083
|
+
"type": "string",
|
|
17084
|
+
"enum": [
|
|
17085
|
+
"rank",
|
|
17086
|
+
"change",
|
|
17087
|
+
"name",
|
|
17088
|
+
"bar",
|
|
17089
|
+
"value",
|
|
17090
|
+
"share"
|
|
17091
|
+
],
|
|
17092
|
+
"description": "Column in a race table."
|
|
17093
|
+
},
|
|
17094
|
+
"RaceEncoding": {
|
|
17095
|
+
"type": "object",
|
|
17096
|
+
"properties": {
|
|
17097
|
+
"time": {
|
|
17098
|
+
"type": "object",
|
|
17099
|
+
"additionalProperties": false,
|
|
17100
|
+
"properties": {
|
|
17101
|
+
"type": {
|
|
17102
|
+
"type": "string",
|
|
17103
|
+
"enum": [
|
|
17104
|
+
"temporal",
|
|
17105
|
+
"ordinal",
|
|
17106
|
+
"quantitative"
|
|
17107
|
+
],
|
|
17108
|
+
"description": "How to interpret the field values."
|
|
17109
|
+
},
|
|
17110
|
+
"field": {
|
|
17111
|
+
"type": "string",
|
|
17112
|
+
"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."
|
|
17113
|
+
},
|
|
17114
|
+
"interval": {
|
|
17115
|
+
"anyOf": [
|
|
17116
|
+
{
|
|
17117
|
+
"type": "string",
|
|
17118
|
+
"const": "day"
|
|
17119
|
+
},
|
|
17120
|
+
{
|
|
17121
|
+
"type": "string",
|
|
17122
|
+
"const": "week"
|
|
17123
|
+
},
|
|
17124
|
+
{
|
|
17125
|
+
"type": "string",
|
|
17126
|
+
"const": "month"
|
|
17127
|
+
},
|
|
17128
|
+
{
|
|
17129
|
+
"type": "string",
|
|
17130
|
+
"const": "quarter"
|
|
17131
|
+
},
|
|
17132
|
+
{
|
|
17133
|
+
"type": "string",
|
|
17134
|
+
"const": "year"
|
|
17135
|
+
},
|
|
17136
|
+
{
|
|
17137
|
+
"type": "number"
|
|
17138
|
+
}
|
|
17139
|
+
],
|
|
17140
|
+
"description": "Temporal bar position interval; numbers are milliseconds. Bar marks only."
|
|
17141
|
+
},
|
|
17142
|
+
"aggregate": {
|
|
17143
|
+
"$ref": "#/definitions/AggregateOp",
|
|
17144
|
+
"description": "Optional aggregate to apply before encoding."
|
|
17145
|
+
},
|
|
17146
|
+
"axis": {
|
|
17147
|
+
"anyOf": [
|
|
17148
|
+
{
|
|
17149
|
+
"$ref": "#/definitions/AxisConfig"
|
|
17150
|
+
},
|
|
17151
|
+
{
|
|
17152
|
+
"type": "boolean",
|
|
17153
|
+
"const": false
|
|
17154
|
+
},
|
|
17155
|
+
{
|
|
17156
|
+
"type": "null"
|
|
17157
|
+
}
|
|
17158
|
+
],
|
|
17159
|
+
"description": "Axis configuration. Set to `false` to suppress axis entirely (no space reserved). `null` is accepted as a VL-aligned alias for `false`."
|
|
17160
|
+
},
|
|
17161
|
+
"scale": {
|
|
17162
|
+
"$ref": "#/definitions/ScaleConfig",
|
|
17163
|
+
"description": "Scale configuration."
|
|
17164
|
+
},
|
|
17165
|
+
"stack": {
|
|
17166
|
+
"anyOf": [
|
|
17167
|
+
{
|
|
17168
|
+
"type": "boolean"
|
|
17169
|
+
},
|
|
17170
|
+
{
|
|
17171
|
+
"type": "string",
|
|
17172
|
+
"const": "zero"
|
|
17173
|
+
},
|
|
17174
|
+
{
|
|
17175
|
+
"type": "string",
|
|
17176
|
+
"const": "normalize"
|
|
17177
|
+
},
|
|
17178
|
+
{
|
|
17179
|
+
"type": "string",
|
|
17180
|
+
"const": "center"
|
|
17181
|
+
},
|
|
17182
|
+
{
|
|
17183
|
+
"type": "null"
|
|
17184
|
+
}
|
|
17185
|
+
],
|
|
17186
|
+
"description": "Stacking behavior for quantitative channels (Vega-Lite aligned).\n\nVega-Lite accepts `'zero' | 'normalize' | 'center' | null`. OpenChart adds `true` (sugar for `'zero'`) and `false` (sugar for `null`) so callers can write `stack: true` / `stack: false` without learning the string forms. The string forms are still the canonical input — the boolean shorthand is normalized to the matching string before reaching layout.\n\n- undefined: chart-type default (see below) -- stacked for bar/column/area\n- true | 'zero': stack from zero baseline\n- 'normalize': stack and normalize to fraction of total (0-1 per category)\n- 'center': center stacks around zero (streamgraph style)\n- null | false: no stacking -- renders grouped/dodged (bar) or overlap (area)\n\n**Defaults differ by chart type:**\n- **Bar/Column**: defaults to stacked (`'zero'`), Vega-Lite aligned. Use `stack: null` (or `false`) for grouped/side-by-side bars.\n- **Area**: defaults to stacked (`'zero'`), Vega-Lite aligned. Use `stack: null` (or `false`) to opt into overlap rendering, where each series renders as a translucent gradient band anchored at the y-domain baseline.\n- **Line**: stacking is not applied (lines always overlap)."
|
|
17187
|
+
},
|
|
17188
|
+
"bin": {
|
|
17189
|
+
"anyOf": [
|
|
17190
|
+
{
|
|
17191
|
+
"type": "boolean"
|
|
17192
|
+
},
|
|
17193
|
+
{
|
|
17194
|
+
"$ref": "#/definitions/BinParams"
|
|
17195
|
+
}
|
|
17196
|
+
],
|
|
17197
|
+
"description": "Encoding-level bin shorthand (Vega-Lite aligned). When set, auto-generates a BinTransform during normalization and updates the field reference to the binned output (convention: `bin_<fieldName>`).\n- true: bin with default params\n- BinParams: bin with custom params (maxbins, step, etc.)"
|
|
17198
|
+
},
|
|
17199
|
+
"timeUnit": {
|
|
17200
|
+
"$ref": "#/definitions/TimeUnit",
|
|
17201
|
+
"description": "Encoding-level timeUnit shorthand (Vega-Lite aligned). When set, auto-generates a TimeUnitTransform during normalization and updates the field reference to the output (convention: `<timeUnit>_<fieldName>`)."
|
|
17202
|
+
},
|
|
17203
|
+
"sort": {
|
|
17204
|
+
"anyOf": [
|
|
17205
|
+
{
|
|
17206
|
+
"type": "string",
|
|
17207
|
+
"const": "ascending"
|
|
17208
|
+
},
|
|
17209
|
+
{
|
|
17210
|
+
"type": "string",
|
|
17211
|
+
"const": "descending"
|
|
17212
|
+
},
|
|
17213
|
+
{
|
|
17214
|
+
"type": "null"
|
|
17215
|
+
},
|
|
17216
|
+
{
|
|
17217
|
+
"type": "string",
|
|
17218
|
+
"const": "x"
|
|
17219
|
+
},
|
|
17220
|
+
{
|
|
17221
|
+
"type": "string",
|
|
17222
|
+
"const": "-x"
|
|
17223
|
+
},
|
|
17224
|
+
{
|
|
17225
|
+
"type": "string",
|
|
17226
|
+
"const": "y"
|
|
17227
|
+
},
|
|
17228
|
+
{
|
|
17229
|
+
"type": "string",
|
|
17230
|
+
"const": "-y"
|
|
17231
|
+
},
|
|
17232
|
+
{
|
|
17233
|
+
"type": "array",
|
|
17234
|
+
"items": {
|
|
17235
|
+
"type": "string"
|
|
17236
|
+
}
|
|
17237
|
+
},
|
|
17238
|
+
{
|
|
17239
|
+
"$ref": "#/definitions/SortByField"
|
|
17240
|
+
}
|
|
17241
|
+
],
|
|
17242
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: ascending (VL default)\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field."
|
|
17243
|
+
},
|
|
17244
|
+
"legend": {
|
|
17245
|
+
"anyOf": [
|
|
17246
|
+
{
|
|
17247
|
+
"$ref": "#/definitions/LegendConfig"
|
|
17248
|
+
},
|
|
17249
|
+
{
|
|
17250
|
+
"type": "null"
|
|
17251
|
+
}
|
|
17252
|
+
],
|
|
17253
|
+
"description": "Legend configuration for this channel (Vega-Lite aligned). Only meaningful on the `color` channel. `null` hides the legend (the VL idiom for `legend.show = false`); a config object merges into the top-level `legend` (top-level keys win on conflict)."
|
|
17254
|
+
},
|
|
17255
|
+
"title": {
|
|
17256
|
+
"type": "string",
|
|
17257
|
+
"description": "Display title override (Vega-Lite aligned). Used as the label in tooltips instead of the raw field name. Also usable for axis titles, but `axis.title` takes precedence there."
|
|
17258
|
+
},
|
|
17259
|
+
"format": {
|
|
17260
|
+
"type": "string",
|
|
17261
|
+
"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."
|
|
17262
|
+
},
|
|
17263
|
+
"highlight": {
|
|
17264
|
+
"anyOf": [
|
|
17265
|
+
{
|
|
17266
|
+
"type": "string"
|
|
17267
|
+
},
|
|
17268
|
+
{
|
|
17269
|
+
"type": "array",
|
|
17270
|
+
"items": {
|
|
17271
|
+
"type": "string"
|
|
17272
|
+
}
|
|
17273
|
+
}
|
|
17274
|
+
],
|
|
17275
|
+
"description": "Emphasis highlight for the color channel. Names one or more series values to visually emphasize; all other series are muted to a neutral gray.\n\nOnly meaningful on the `color` encoding channel. On other channels this property is ignored."
|
|
17276
|
+
}
|
|
17277
|
+
},
|
|
17278
|
+
"required": [
|
|
17279
|
+
"field"
|
|
17280
|
+
],
|
|
17281
|
+
"description": "Playback field. Temporal dates or years and quantitative values sort by value. Ordinal values use a `sort` array, first-seen order, or the reverse of first-seen order with `sort: \"descending\"`."
|
|
17282
|
+
},
|
|
17283
|
+
"key": {
|
|
17284
|
+
"type": "object",
|
|
17285
|
+
"additionalProperties": false,
|
|
17286
|
+
"properties": {
|
|
17287
|
+
"type": {
|
|
17288
|
+
"$ref": "#/definitions/FieldType",
|
|
17289
|
+
"description": "How to interpret the field values."
|
|
17290
|
+
},
|
|
17291
|
+
"field": {
|
|
17292
|
+
"type": "string",
|
|
17293
|
+
"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."
|
|
17294
|
+
},
|
|
17295
|
+
"interval": {
|
|
17296
|
+
"anyOf": [
|
|
17297
|
+
{
|
|
17298
|
+
"type": "string",
|
|
17299
|
+
"const": "day"
|
|
17300
|
+
},
|
|
17301
|
+
{
|
|
17302
|
+
"type": "string",
|
|
17303
|
+
"const": "week"
|
|
17304
|
+
},
|
|
17305
|
+
{
|
|
17306
|
+
"type": "string",
|
|
17307
|
+
"const": "month"
|
|
17308
|
+
},
|
|
17309
|
+
{
|
|
17310
|
+
"type": "string",
|
|
17311
|
+
"const": "quarter"
|
|
17312
|
+
},
|
|
17313
|
+
{
|
|
17314
|
+
"type": "string",
|
|
17315
|
+
"const": "year"
|
|
17316
|
+
},
|
|
17317
|
+
{
|
|
17318
|
+
"type": "number"
|
|
17319
|
+
}
|
|
17320
|
+
],
|
|
17321
|
+
"description": "Temporal bar position interval; numbers are milliseconds. Bar marks only."
|
|
17322
|
+
},
|
|
17323
|
+
"aggregate": {
|
|
17324
|
+
"$ref": "#/definitions/AggregateOp",
|
|
17325
|
+
"description": "Optional aggregate to apply before encoding."
|
|
17326
|
+
},
|
|
17327
|
+
"axis": {
|
|
17328
|
+
"anyOf": [
|
|
17329
|
+
{
|
|
17330
|
+
"$ref": "#/definitions/AxisConfig"
|
|
17331
|
+
},
|
|
17332
|
+
{
|
|
17333
|
+
"type": "boolean",
|
|
17334
|
+
"const": false
|
|
17335
|
+
},
|
|
17336
|
+
{
|
|
17337
|
+
"type": "null"
|
|
17338
|
+
}
|
|
17339
|
+
],
|
|
17340
|
+
"description": "Axis configuration. Set to `false` to suppress axis entirely (no space reserved). `null` is accepted as a VL-aligned alias for `false`."
|
|
17341
|
+
},
|
|
17342
|
+
"scale": {
|
|
17343
|
+
"$ref": "#/definitions/ScaleConfig",
|
|
17344
|
+
"description": "Scale configuration."
|
|
17345
|
+
},
|
|
17346
|
+
"stack": {
|
|
17347
|
+
"anyOf": [
|
|
17348
|
+
{
|
|
17349
|
+
"type": "boolean"
|
|
17350
|
+
},
|
|
17351
|
+
{
|
|
17352
|
+
"type": "string",
|
|
17353
|
+
"const": "zero"
|
|
17354
|
+
},
|
|
17355
|
+
{
|
|
17356
|
+
"type": "string",
|
|
17357
|
+
"const": "normalize"
|
|
17358
|
+
},
|
|
17359
|
+
{
|
|
17360
|
+
"type": "string",
|
|
17361
|
+
"const": "center"
|
|
17362
|
+
},
|
|
17363
|
+
{
|
|
17364
|
+
"type": "null"
|
|
17365
|
+
}
|
|
17366
|
+
],
|
|
17367
|
+
"description": "Stacking behavior for quantitative channels (Vega-Lite aligned).\n\nVega-Lite accepts `'zero' | 'normalize' | 'center' | null`. OpenChart adds `true` (sugar for `'zero'`) and `false` (sugar for `null`) so callers can write `stack: true` / `stack: false` without learning the string forms. The string forms are still the canonical input — the boolean shorthand is normalized to the matching string before reaching layout.\n\n- undefined: chart-type default (see below) -- stacked for bar/column/area\n- true | 'zero': stack from zero baseline\n- 'normalize': stack and normalize to fraction of total (0-1 per category)\n- 'center': center stacks around zero (streamgraph style)\n- null | false: no stacking -- renders grouped/dodged (bar) or overlap (area)\n\n**Defaults differ by chart type:**\n- **Bar/Column**: defaults to stacked (`'zero'`), Vega-Lite aligned. Use `stack: null` (or `false`) for grouped/side-by-side bars.\n- **Area**: defaults to stacked (`'zero'`), Vega-Lite aligned. Use `stack: null` (or `false`) to opt into overlap rendering, where each series renders as a translucent gradient band anchored at the y-domain baseline.\n- **Line**: stacking is not applied (lines always overlap)."
|
|
17368
|
+
},
|
|
17369
|
+
"bin": {
|
|
17370
|
+
"anyOf": [
|
|
17371
|
+
{
|
|
17372
|
+
"type": "boolean"
|
|
17373
|
+
},
|
|
17374
|
+
{
|
|
17375
|
+
"$ref": "#/definitions/BinParams"
|
|
17376
|
+
}
|
|
17377
|
+
],
|
|
17378
|
+
"description": "Encoding-level bin shorthand (Vega-Lite aligned). When set, auto-generates a BinTransform during normalization and updates the field reference to the binned output (convention: `bin_<fieldName>`).\n- true: bin with default params\n- BinParams: bin with custom params (maxbins, step, etc.)"
|
|
17379
|
+
},
|
|
17380
|
+
"timeUnit": {
|
|
17381
|
+
"$ref": "#/definitions/TimeUnit",
|
|
17382
|
+
"description": "Encoding-level timeUnit shorthand (Vega-Lite aligned). When set, auto-generates a TimeUnitTransform during normalization and updates the field reference to the output (convention: `<timeUnit>_<fieldName>`)."
|
|
17383
|
+
},
|
|
17384
|
+
"sort": {
|
|
17385
|
+
"anyOf": [
|
|
17386
|
+
{
|
|
17387
|
+
"type": "string",
|
|
17388
|
+
"const": "ascending"
|
|
17389
|
+
},
|
|
17390
|
+
{
|
|
17391
|
+
"type": "string",
|
|
17392
|
+
"const": "descending"
|
|
17393
|
+
},
|
|
17394
|
+
{
|
|
17395
|
+
"type": "null"
|
|
17396
|
+
},
|
|
17397
|
+
{
|
|
17398
|
+
"type": "string",
|
|
17399
|
+
"const": "x"
|
|
17400
|
+
},
|
|
17401
|
+
{
|
|
17402
|
+
"type": "string",
|
|
17403
|
+
"const": "-x"
|
|
17404
|
+
},
|
|
17405
|
+
{
|
|
17406
|
+
"type": "string",
|
|
17407
|
+
"const": "y"
|
|
17408
|
+
},
|
|
17409
|
+
{
|
|
17410
|
+
"type": "string",
|
|
17411
|
+
"const": "-y"
|
|
17412
|
+
},
|
|
17413
|
+
{
|
|
17414
|
+
"type": "array",
|
|
17415
|
+
"items": {
|
|
17416
|
+
"type": "string"
|
|
17417
|
+
}
|
|
17418
|
+
},
|
|
17419
|
+
{
|
|
17420
|
+
"$ref": "#/definitions/SortByField"
|
|
17421
|
+
}
|
|
17422
|
+
],
|
|
17423
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: ascending (VL default)\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field."
|
|
17424
|
+
},
|
|
17425
|
+
"legend": {
|
|
17426
|
+
"anyOf": [
|
|
17427
|
+
{
|
|
17428
|
+
"$ref": "#/definitions/LegendConfig"
|
|
17429
|
+
},
|
|
17430
|
+
{
|
|
17431
|
+
"type": "null"
|
|
17432
|
+
}
|
|
17433
|
+
],
|
|
17434
|
+
"description": "Legend configuration for this channel (Vega-Lite aligned). Only meaningful on the `color` channel. `null` hides the legend (the VL idiom for `legend.show = false`); a config object merges into the top-level `legend` (top-level keys win on conflict)."
|
|
17435
|
+
},
|
|
17436
|
+
"title": {
|
|
17437
|
+
"type": "string",
|
|
17438
|
+
"description": "Display title override (Vega-Lite aligned). Used as the label in tooltips instead of the raw field name. Also usable for axis titles, but `axis.title` takes precedence there."
|
|
17439
|
+
},
|
|
17440
|
+
"format": {
|
|
17441
|
+
"type": "string",
|
|
17442
|
+
"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."
|
|
17443
|
+
},
|
|
17444
|
+
"highlight": {
|
|
17445
|
+
"anyOf": [
|
|
17446
|
+
{
|
|
17447
|
+
"type": "string"
|
|
17448
|
+
},
|
|
17449
|
+
{
|
|
17450
|
+
"type": "array",
|
|
17451
|
+
"items": {
|
|
17452
|
+
"type": "string"
|
|
17453
|
+
}
|
|
17454
|
+
}
|
|
17455
|
+
],
|
|
17456
|
+
"description": "Emphasis highlight for the color channel. Names one or more series values to visually emphasize; all other series are muted to a neutral gray.\n\nOnly meaningful on the `color` encoding channel. On other channels this property is ignored."
|
|
17457
|
+
}
|
|
17458
|
+
},
|
|
17459
|
+
"required": [
|
|
17460
|
+
"field"
|
|
17461
|
+
],
|
|
17462
|
+
"description": "Stable identity across periods. Also the display name by default."
|
|
17463
|
+
},
|
|
17464
|
+
"value": {
|
|
17465
|
+
"type": "object",
|
|
17466
|
+
"additionalProperties": false,
|
|
17467
|
+
"properties": {
|
|
17468
|
+
"type": {
|
|
17469
|
+
"type": "string",
|
|
17470
|
+
"const": "quantitative",
|
|
17471
|
+
"description": "How to interpret the field values."
|
|
17472
|
+
},
|
|
17473
|
+
"field": {
|
|
17474
|
+
"type": "string",
|
|
17475
|
+
"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."
|
|
17476
|
+
},
|
|
17477
|
+
"interval": {
|
|
17478
|
+
"anyOf": [
|
|
17479
|
+
{
|
|
17480
|
+
"type": "string",
|
|
17481
|
+
"const": "day"
|
|
17482
|
+
},
|
|
17483
|
+
{
|
|
17484
|
+
"type": "string",
|
|
17485
|
+
"const": "week"
|
|
17486
|
+
},
|
|
17487
|
+
{
|
|
17488
|
+
"type": "string",
|
|
17489
|
+
"const": "month"
|
|
17490
|
+
},
|
|
17491
|
+
{
|
|
17492
|
+
"type": "string",
|
|
17493
|
+
"const": "quarter"
|
|
17494
|
+
},
|
|
17495
|
+
{
|
|
17496
|
+
"type": "string",
|
|
17497
|
+
"const": "year"
|
|
17498
|
+
},
|
|
17499
|
+
{
|
|
17500
|
+
"type": "number"
|
|
17501
|
+
}
|
|
17502
|
+
],
|
|
17503
|
+
"description": "Temporal bar position interval; numbers are milliseconds. Bar marks only."
|
|
17504
|
+
},
|
|
17505
|
+
"aggregate": {
|
|
17506
|
+
"$ref": "#/definitions/AggregateOp",
|
|
17507
|
+
"description": "Optional aggregate to apply before encoding."
|
|
17508
|
+
},
|
|
17509
|
+
"axis": {
|
|
17510
|
+
"anyOf": [
|
|
17511
|
+
{
|
|
17512
|
+
"$ref": "#/definitions/AxisConfig"
|
|
17513
|
+
},
|
|
17514
|
+
{
|
|
17515
|
+
"type": "boolean",
|
|
17516
|
+
"const": false
|
|
17517
|
+
},
|
|
17518
|
+
{
|
|
17519
|
+
"type": "null"
|
|
17520
|
+
}
|
|
17521
|
+
],
|
|
17522
|
+
"description": "Axis configuration. Set to `false` to suppress axis entirely (no space reserved). `null` is accepted as a VL-aligned alias for `false`."
|
|
17523
|
+
},
|
|
17524
|
+
"scale": {
|
|
17525
|
+
"$ref": "#/definitions/ScaleConfig",
|
|
17526
|
+
"description": "Scale configuration."
|
|
17527
|
+
},
|
|
17528
|
+
"stack": {
|
|
17529
|
+
"anyOf": [
|
|
17530
|
+
{
|
|
17531
|
+
"type": "boolean"
|
|
17532
|
+
},
|
|
17533
|
+
{
|
|
17534
|
+
"type": "string",
|
|
17535
|
+
"const": "zero"
|
|
17536
|
+
},
|
|
17537
|
+
{
|
|
17538
|
+
"type": "string",
|
|
17539
|
+
"const": "normalize"
|
|
17540
|
+
},
|
|
17541
|
+
{
|
|
17542
|
+
"type": "string",
|
|
17543
|
+
"const": "center"
|
|
17544
|
+
},
|
|
17545
|
+
{
|
|
17546
|
+
"type": "null"
|
|
17547
|
+
}
|
|
17548
|
+
],
|
|
17549
|
+
"description": "Stacking behavior for quantitative channels (Vega-Lite aligned).\n\nVega-Lite accepts `'zero' | 'normalize' | 'center' | null`. OpenChart adds `true` (sugar for `'zero'`) and `false` (sugar for `null`) so callers can write `stack: true` / `stack: false` without learning the string forms. The string forms are still the canonical input — the boolean shorthand is normalized to the matching string before reaching layout.\n\n- undefined: chart-type default (see below) -- stacked for bar/column/area\n- true | 'zero': stack from zero baseline\n- 'normalize': stack and normalize to fraction of total (0-1 per category)\n- 'center': center stacks around zero (streamgraph style)\n- null | false: no stacking -- renders grouped/dodged (bar) or overlap (area)\n\n**Defaults differ by chart type:**\n- **Bar/Column**: defaults to stacked (`'zero'`), Vega-Lite aligned. Use `stack: null` (or `false`) for grouped/side-by-side bars.\n- **Area**: defaults to stacked (`'zero'`), Vega-Lite aligned. Use `stack: null` (or `false`) to opt into overlap rendering, where each series renders as a translucent gradient band anchored at the y-domain baseline.\n- **Line**: stacking is not applied (lines always overlap)."
|
|
17550
|
+
},
|
|
17551
|
+
"bin": {
|
|
17552
|
+
"anyOf": [
|
|
17553
|
+
{
|
|
17554
|
+
"type": "boolean"
|
|
17555
|
+
},
|
|
17556
|
+
{
|
|
17557
|
+
"$ref": "#/definitions/BinParams"
|
|
17558
|
+
}
|
|
17559
|
+
],
|
|
17560
|
+
"description": "Encoding-level bin shorthand (Vega-Lite aligned). When set, auto-generates a BinTransform during normalization and updates the field reference to the binned output (convention: `bin_<fieldName>`).\n- true: bin with default params\n- BinParams: bin with custom params (maxbins, step, etc.)"
|
|
17561
|
+
},
|
|
17562
|
+
"timeUnit": {
|
|
17563
|
+
"$ref": "#/definitions/TimeUnit",
|
|
17564
|
+
"description": "Encoding-level timeUnit shorthand (Vega-Lite aligned). When set, auto-generates a TimeUnitTransform during normalization and updates the field reference to the output (convention: `<timeUnit>_<fieldName>`)."
|
|
17565
|
+
},
|
|
17566
|
+
"sort": {
|
|
17567
|
+
"anyOf": [
|
|
17568
|
+
{
|
|
17569
|
+
"type": "string",
|
|
17570
|
+
"const": "ascending"
|
|
17571
|
+
},
|
|
17572
|
+
{
|
|
17573
|
+
"type": "string",
|
|
17574
|
+
"const": "descending"
|
|
17575
|
+
},
|
|
17576
|
+
{
|
|
17577
|
+
"type": "null"
|
|
17578
|
+
},
|
|
17579
|
+
{
|
|
17580
|
+
"type": "string",
|
|
17581
|
+
"const": "x"
|
|
17582
|
+
},
|
|
17583
|
+
{
|
|
17584
|
+
"type": "string",
|
|
17585
|
+
"const": "-x"
|
|
17586
|
+
},
|
|
17587
|
+
{
|
|
17588
|
+
"type": "string",
|
|
17589
|
+
"const": "y"
|
|
17590
|
+
},
|
|
17591
|
+
{
|
|
17592
|
+
"type": "string",
|
|
17593
|
+
"const": "-y"
|
|
17594
|
+
},
|
|
17595
|
+
{
|
|
17596
|
+
"type": "array",
|
|
17597
|
+
"items": {
|
|
17598
|
+
"type": "string"
|
|
17599
|
+
}
|
|
17600
|
+
},
|
|
17601
|
+
{
|
|
17602
|
+
"$ref": "#/definitions/SortByField"
|
|
17603
|
+
}
|
|
17604
|
+
],
|
|
17605
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: ascending (VL default)\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field."
|
|
17606
|
+
},
|
|
17607
|
+
"legend": {
|
|
17608
|
+
"anyOf": [
|
|
17609
|
+
{
|
|
17610
|
+
"$ref": "#/definitions/LegendConfig"
|
|
17611
|
+
},
|
|
17612
|
+
{
|
|
17613
|
+
"type": "null"
|
|
17614
|
+
}
|
|
17615
|
+
],
|
|
17616
|
+
"description": "Legend configuration for this channel (Vega-Lite aligned). Only meaningful on the `color` channel. `null` hides the legend (the VL idiom for `legend.show = false`); a config object merges into the top-level `legend` (top-level keys win on conflict)."
|
|
17617
|
+
},
|
|
17618
|
+
"title": {
|
|
17619
|
+
"type": "string",
|
|
17620
|
+
"description": "Display title override (Vega-Lite aligned). Used as the label in tooltips instead of the raw field name. Also usable for axis titles, but `axis.title` takes precedence there."
|
|
17621
|
+
},
|
|
17622
|
+
"format": {
|
|
17623
|
+
"type": "string",
|
|
17624
|
+
"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."
|
|
17625
|
+
},
|
|
17626
|
+
"highlight": {
|
|
17627
|
+
"anyOf": [
|
|
17628
|
+
{
|
|
17629
|
+
"type": "string"
|
|
17630
|
+
},
|
|
17631
|
+
{
|
|
17632
|
+
"type": "array",
|
|
17633
|
+
"items": {
|
|
17634
|
+
"type": "string"
|
|
17635
|
+
}
|
|
17636
|
+
}
|
|
17637
|
+
],
|
|
17638
|
+
"description": "Emphasis highlight for the color channel. Names one or more series values to visually emphasize; all other series are muted to a neutral gray.\n\nOnly meaningful on the `color` encoding channel. On other channels this property is ignored."
|
|
17639
|
+
}
|
|
17640
|
+
},
|
|
17641
|
+
"required": [
|
|
17642
|
+
"field"
|
|
17643
|
+
],
|
|
17644
|
+
"description": "Numeric field to rank and draw. Defaults to quantitative."
|
|
17645
|
+
},
|
|
17646
|
+
"color": {
|
|
17647
|
+
"anyOf": [
|
|
17648
|
+
{
|
|
17649
|
+
"type": "object",
|
|
17650
|
+
"additionalProperties": false,
|
|
17651
|
+
"properties": {
|
|
17652
|
+
"type": {
|
|
17653
|
+
"$ref": "#/definitions/FieldType",
|
|
17654
|
+
"description": "How to interpret the field values."
|
|
17655
|
+
},
|
|
17656
|
+
"field": {
|
|
17657
|
+
"type": "string",
|
|
17658
|
+
"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."
|
|
17659
|
+
},
|
|
17660
|
+
"interval": {
|
|
17661
|
+
"anyOf": [
|
|
17662
|
+
{
|
|
17663
|
+
"type": "string",
|
|
17664
|
+
"const": "day"
|
|
17665
|
+
},
|
|
17666
|
+
{
|
|
17667
|
+
"type": "string",
|
|
17668
|
+
"const": "week"
|
|
17669
|
+
},
|
|
17670
|
+
{
|
|
17671
|
+
"type": "string",
|
|
17672
|
+
"const": "month"
|
|
17673
|
+
},
|
|
17674
|
+
{
|
|
17675
|
+
"type": "string",
|
|
17676
|
+
"const": "quarter"
|
|
17677
|
+
},
|
|
17678
|
+
{
|
|
17679
|
+
"type": "string",
|
|
17680
|
+
"const": "year"
|
|
17681
|
+
},
|
|
17682
|
+
{
|
|
17683
|
+
"type": "number"
|
|
17684
|
+
}
|
|
17685
|
+
],
|
|
17686
|
+
"description": "Temporal bar position interval; numbers are milliseconds. Bar marks only."
|
|
17687
|
+
},
|
|
17688
|
+
"aggregate": {
|
|
17689
|
+
"$ref": "#/definitions/AggregateOp",
|
|
17690
|
+
"description": "Optional aggregate to apply before encoding."
|
|
17691
|
+
},
|
|
17692
|
+
"axis": {
|
|
17693
|
+
"anyOf": [
|
|
17694
|
+
{
|
|
17695
|
+
"$ref": "#/definitions/AxisConfig"
|
|
17696
|
+
},
|
|
17697
|
+
{
|
|
17698
|
+
"type": "boolean",
|
|
17699
|
+
"const": false
|
|
17700
|
+
},
|
|
17701
|
+
{
|
|
17702
|
+
"type": "null"
|
|
17703
|
+
}
|
|
17704
|
+
],
|
|
17705
|
+
"description": "Axis configuration. Set to `false` to suppress axis entirely (no space reserved). `null` is accepted as a VL-aligned alias for `false`."
|
|
17706
|
+
},
|
|
17707
|
+
"scale": {
|
|
17708
|
+
"$ref": "#/definitions/ScaleConfig",
|
|
17709
|
+
"description": "Scale configuration."
|
|
17710
|
+
},
|
|
17711
|
+
"stack": {
|
|
17712
|
+
"anyOf": [
|
|
17713
|
+
{
|
|
17714
|
+
"type": "boolean"
|
|
17715
|
+
},
|
|
17716
|
+
{
|
|
17717
|
+
"type": "string",
|
|
17718
|
+
"const": "zero"
|
|
17719
|
+
},
|
|
17720
|
+
{
|
|
17721
|
+
"type": "string",
|
|
17722
|
+
"const": "normalize"
|
|
17723
|
+
},
|
|
17724
|
+
{
|
|
17725
|
+
"type": "string",
|
|
17726
|
+
"const": "center"
|
|
17727
|
+
},
|
|
17728
|
+
{
|
|
17729
|
+
"type": "null"
|
|
17730
|
+
}
|
|
17731
|
+
],
|
|
17732
|
+
"description": "Stacking behavior for quantitative channels (Vega-Lite aligned).\n\nVega-Lite accepts `'zero' | 'normalize' | 'center' | null`. OpenChart adds `true` (sugar for `'zero'`) and `false` (sugar for `null`) so callers can write `stack: true` / `stack: false` without learning the string forms. The string forms are still the canonical input — the boolean shorthand is normalized to the matching string before reaching layout.\n\n- undefined: chart-type default (see below) -- stacked for bar/column/area\n- true | 'zero': stack from zero baseline\n- 'normalize': stack and normalize to fraction of total (0-1 per category)\n- 'center': center stacks around zero (streamgraph style)\n- null | false: no stacking -- renders grouped/dodged (bar) or overlap (area)\n\n**Defaults differ by chart type:**\n- **Bar/Column**: defaults to stacked (`'zero'`), Vega-Lite aligned. Use `stack: null` (or `false`) for grouped/side-by-side bars.\n- **Area**: defaults to stacked (`'zero'`), Vega-Lite aligned. Use `stack: null` (or `false`) to opt into overlap rendering, where each series renders as a translucent gradient band anchored at the y-domain baseline.\n- **Line**: stacking is not applied (lines always overlap)."
|
|
17733
|
+
},
|
|
17734
|
+
"bin": {
|
|
17735
|
+
"anyOf": [
|
|
17736
|
+
{
|
|
17737
|
+
"type": "boolean"
|
|
17738
|
+
},
|
|
17739
|
+
{
|
|
17740
|
+
"$ref": "#/definitions/BinParams"
|
|
17741
|
+
}
|
|
17742
|
+
],
|
|
17743
|
+
"description": "Encoding-level bin shorthand (Vega-Lite aligned). When set, auto-generates a BinTransform during normalization and updates the field reference to the binned output (convention: `bin_<fieldName>`).\n- true: bin with default params\n- BinParams: bin with custom params (maxbins, step, etc.)"
|
|
17744
|
+
},
|
|
17745
|
+
"timeUnit": {
|
|
17746
|
+
"$ref": "#/definitions/TimeUnit",
|
|
17747
|
+
"description": "Encoding-level timeUnit shorthand (Vega-Lite aligned). When set, auto-generates a TimeUnitTransform during normalization and updates the field reference to the output (convention: `<timeUnit>_<fieldName>`)."
|
|
17748
|
+
},
|
|
17749
|
+
"sort": {
|
|
17750
|
+
"anyOf": [
|
|
17751
|
+
{
|
|
17752
|
+
"type": "string",
|
|
17753
|
+
"const": "ascending"
|
|
17754
|
+
},
|
|
17755
|
+
{
|
|
17756
|
+
"type": "string",
|
|
17757
|
+
"const": "descending"
|
|
17758
|
+
},
|
|
17759
|
+
{
|
|
17760
|
+
"type": "null"
|
|
17761
|
+
},
|
|
17762
|
+
{
|
|
17763
|
+
"type": "string",
|
|
17764
|
+
"const": "x"
|
|
17765
|
+
},
|
|
17766
|
+
{
|
|
17767
|
+
"type": "string",
|
|
17768
|
+
"const": "-x"
|
|
17769
|
+
},
|
|
17770
|
+
{
|
|
17771
|
+
"type": "string",
|
|
17772
|
+
"const": "y"
|
|
17773
|
+
},
|
|
17774
|
+
{
|
|
17775
|
+
"type": "string",
|
|
17776
|
+
"const": "-y"
|
|
17777
|
+
},
|
|
17778
|
+
{
|
|
17779
|
+
"type": "array",
|
|
17780
|
+
"items": {
|
|
17781
|
+
"type": "string"
|
|
17782
|
+
}
|
|
17783
|
+
},
|
|
17784
|
+
{
|
|
17785
|
+
"$ref": "#/definitions/SortByField"
|
|
17786
|
+
}
|
|
17787
|
+
],
|
|
17788
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: ascending (VL default)\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field."
|
|
17789
|
+
},
|
|
17790
|
+
"legend": {
|
|
17791
|
+
"anyOf": [
|
|
17792
|
+
{
|
|
17793
|
+
"$ref": "#/definitions/LegendConfig"
|
|
17794
|
+
},
|
|
17795
|
+
{
|
|
17796
|
+
"type": "null"
|
|
17797
|
+
}
|
|
17798
|
+
],
|
|
17799
|
+
"description": "Legend configuration for this channel (Vega-Lite aligned). Only meaningful on the `color` channel. `null` hides the legend (the VL idiom for `legend.show = false`); a config object merges into the top-level `legend` (top-level keys win on conflict)."
|
|
17800
|
+
},
|
|
17801
|
+
"title": {
|
|
17802
|
+
"type": "string",
|
|
17803
|
+
"description": "Display title override (Vega-Lite aligned). Used as the label in tooltips instead of the raw field name. Also usable for axis titles, but `axis.title` takes precedence there."
|
|
17804
|
+
},
|
|
17805
|
+
"format": {
|
|
17806
|
+
"type": "string",
|
|
17807
|
+
"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."
|
|
17808
|
+
},
|
|
17809
|
+
"highlight": {
|
|
17810
|
+
"anyOf": [
|
|
17811
|
+
{
|
|
17812
|
+
"type": "string"
|
|
17813
|
+
},
|
|
17814
|
+
{
|
|
17815
|
+
"type": "array",
|
|
17816
|
+
"items": {
|
|
17817
|
+
"type": "string"
|
|
17818
|
+
}
|
|
17819
|
+
}
|
|
17820
|
+
],
|
|
17821
|
+
"description": "Emphasis highlight for the color channel. Names one or more series values to visually emphasize; all other series are muted to a neutral gray.\n\nOnly meaningful on the `color` encoding channel. On other channels this property is ignored."
|
|
17822
|
+
}
|
|
17823
|
+
},
|
|
17824
|
+
"required": [
|
|
17825
|
+
"field"
|
|
17826
|
+
]
|
|
17827
|
+
},
|
|
17828
|
+
{
|
|
17829
|
+
"type": "object",
|
|
17830
|
+
"properties": {
|
|
17831
|
+
"value": {
|
|
17832
|
+
"type": "string"
|
|
17833
|
+
}
|
|
17834
|
+
},
|
|
17835
|
+
"required": [
|
|
17836
|
+
"value"
|
|
17837
|
+
],
|
|
17838
|
+
"additionalProperties": false
|
|
17839
|
+
}
|
|
17840
|
+
],
|
|
17841
|
+
"description": "Field or constant CSS color. Defaults to coloring by key in order of first appearance in the top N."
|
|
17842
|
+
},
|
|
17843
|
+
"label": {
|
|
17844
|
+
"type": "object",
|
|
17845
|
+
"additionalProperties": false,
|
|
17846
|
+
"properties": {
|
|
17847
|
+
"type": {
|
|
17848
|
+
"type": "string",
|
|
17849
|
+
"const": "nominal",
|
|
17850
|
+
"description": "How to interpret the field values."
|
|
17851
|
+
},
|
|
17852
|
+
"field": {
|
|
17853
|
+
"type": "string",
|
|
17854
|
+
"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."
|
|
17855
|
+
},
|
|
17856
|
+
"interval": {
|
|
17857
|
+
"anyOf": [
|
|
17858
|
+
{
|
|
17859
|
+
"type": "string",
|
|
17860
|
+
"const": "day"
|
|
17861
|
+
},
|
|
17862
|
+
{
|
|
17863
|
+
"type": "string",
|
|
17864
|
+
"const": "week"
|
|
17865
|
+
},
|
|
17866
|
+
{
|
|
17867
|
+
"type": "string",
|
|
17868
|
+
"const": "month"
|
|
17869
|
+
},
|
|
17870
|
+
{
|
|
17871
|
+
"type": "string",
|
|
17872
|
+
"const": "quarter"
|
|
17873
|
+
},
|
|
17874
|
+
{
|
|
17875
|
+
"type": "string",
|
|
17876
|
+
"const": "year"
|
|
17877
|
+
},
|
|
17878
|
+
{
|
|
17879
|
+
"type": "number"
|
|
17880
|
+
}
|
|
17881
|
+
],
|
|
17882
|
+
"description": "Temporal bar position interval; numbers are milliseconds. Bar marks only."
|
|
17883
|
+
},
|
|
17884
|
+
"aggregate": {
|
|
17885
|
+
"$ref": "#/definitions/AggregateOp",
|
|
17886
|
+
"description": "Optional aggregate to apply before encoding."
|
|
17887
|
+
},
|
|
17888
|
+
"axis": {
|
|
17889
|
+
"anyOf": [
|
|
17890
|
+
{
|
|
17891
|
+
"$ref": "#/definitions/AxisConfig"
|
|
17892
|
+
},
|
|
17893
|
+
{
|
|
17894
|
+
"type": "boolean",
|
|
17895
|
+
"const": false
|
|
17896
|
+
},
|
|
17897
|
+
{
|
|
17898
|
+
"type": "null"
|
|
17899
|
+
}
|
|
17900
|
+
],
|
|
17901
|
+
"description": "Axis configuration. Set to `false` to suppress axis entirely (no space reserved). `null` is accepted as a VL-aligned alias for `false`."
|
|
17902
|
+
},
|
|
17903
|
+
"scale": {
|
|
17904
|
+
"$ref": "#/definitions/ScaleConfig",
|
|
17905
|
+
"description": "Scale configuration."
|
|
17906
|
+
},
|
|
17907
|
+
"stack": {
|
|
17908
|
+
"anyOf": [
|
|
17909
|
+
{
|
|
17910
|
+
"type": "boolean"
|
|
17911
|
+
},
|
|
17912
|
+
{
|
|
17913
|
+
"type": "string",
|
|
17914
|
+
"const": "zero"
|
|
17915
|
+
},
|
|
17916
|
+
{
|
|
17917
|
+
"type": "string",
|
|
17918
|
+
"const": "normalize"
|
|
17919
|
+
},
|
|
17920
|
+
{
|
|
17921
|
+
"type": "string",
|
|
17922
|
+
"const": "center"
|
|
17923
|
+
},
|
|
17924
|
+
{
|
|
17925
|
+
"type": "null"
|
|
17926
|
+
}
|
|
17927
|
+
],
|
|
17928
|
+
"description": "Stacking behavior for quantitative channels (Vega-Lite aligned).\n\nVega-Lite accepts `'zero' | 'normalize' | 'center' | null`. OpenChart adds `true` (sugar for `'zero'`) and `false` (sugar for `null`) so callers can write `stack: true` / `stack: false` without learning the string forms. The string forms are still the canonical input — the boolean shorthand is normalized to the matching string before reaching layout.\n\n- undefined: chart-type default (see below) -- stacked for bar/column/area\n- true | 'zero': stack from zero baseline\n- 'normalize': stack and normalize to fraction of total (0-1 per category)\n- 'center': center stacks around zero (streamgraph style)\n- null | false: no stacking -- renders grouped/dodged (bar) or overlap (area)\n\n**Defaults differ by chart type:**\n- **Bar/Column**: defaults to stacked (`'zero'`), Vega-Lite aligned. Use `stack: null` (or `false`) for grouped/side-by-side bars.\n- **Area**: defaults to stacked (`'zero'`), Vega-Lite aligned. Use `stack: null` (or `false`) to opt into overlap rendering, where each series renders as a translucent gradient band anchored at the y-domain baseline.\n- **Line**: stacking is not applied (lines always overlap)."
|
|
17929
|
+
},
|
|
17930
|
+
"bin": {
|
|
17931
|
+
"anyOf": [
|
|
17932
|
+
{
|
|
17933
|
+
"type": "boolean"
|
|
17934
|
+
},
|
|
17935
|
+
{
|
|
17936
|
+
"$ref": "#/definitions/BinParams"
|
|
17937
|
+
}
|
|
17938
|
+
],
|
|
17939
|
+
"description": "Encoding-level bin shorthand (Vega-Lite aligned). When set, auto-generates a BinTransform during normalization and updates the field reference to the binned output (convention: `bin_<fieldName>`).\n- true: bin with default params\n- BinParams: bin with custom params (maxbins, step, etc.)"
|
|
17940
|
+
},
|
|
17941
|
+
"timeUnit": {
|
|
17942
|
+
"$ref": "#/definitions/TimeUnit",
|
|
17943
|
+
"description": "Encoding-level timeUnit shorthand (Vega-Lite aligned). When set, auto-generates a TimeUnitTransform during normalization and updates the field reference to the output (convention: `<timeUnit>_<fieldName>`)."
|
|
17944
|
+
},
|
|
17945
|
+
"sort": {
|
|
17946
|
+
"anyOf": [
|
|
17947
|
+
{
|
|
17948
|
+
"type": "string",
|
|
17949
|
+
"const": "ascending"
|
|
17950
|
+
},
|
|
17951
|
+
{
|
|
17952
|
+
"type": "string",
|
|
17953
|
+
"const": "descending"
|
|
17954
|
+
},
|
|
17955
|
+
{
|
|
17956
|
+
"type": "null"
|
|
17957
|
+
},
|
|
17958
|
+
{
|
|
17959
|
+
"type": "string",
|
|
17960
|
+
"const": "x"
|
|
17961
|
+
},
|
|
17962
|
+
{
|
|
17963
|
+
"type": "string",
|
|
17964
|
+
"const": "-x"
|
|
17965
|
+
},
|
|
17966
|
+
{
|
|
17967
|
+
"type": "string",
|
|
17968
|
+
"const": "y"
|
|
17969
|
+
},
|
|
17970
|
+
{
|
|
17971
|
+
"type": "string",
|
|
17972
|
+
"const": "-y"
|
|
17973
|
+
},
|
|
17974
|
+
{
|
|
17975
|
+
"type": "array",
|
|
17976
|
+
"items": {
|
|
17977
|
+
"type": "string"
|
|
17978
|
+
}
|
|
17979
|
+
},
|
|
17980
|
+
{
|
|
17981
|
+
"$ref": "#/definitions/SortByField"
|
|
17982
|
+
}
|
|
17983
|
+
],
|
|
17984
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: ascending (VL default)\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field."
|
|
17985
|
+
},
|
|
17986
|
+
"legend": {
|
|
17987
|
+
"anyOf": [
|
|
17988
|
+
{
|
|
17989
|
+
"$ref": "#/definitions/LegendConfig"
|
|
17990
|
+
},
|
|
17991
|
+
{
|
|
17992
|
+
"type": "null"
|
|
17993
|
+
}
|
|
17994
|
+
],
|
|
17995
|
+
"description": "Legend configuration for this channel (Vega-Lite aligned). Only meaningful on the `color` channel. `null` hides the legend (the VL idiom for `legend.show = false`); a config object merges into the top-level `legend` (top-level keys win on conflict)."
|
|
17996
|
+
},
|
|
17997
|
+
"title": {
|
|
17998
|
+
"type": "string",
|
|
17999
|
+
"description": "Display title override (Vega-Lite aligned). Used as the label in tooltips instead of the raw field name. Also usable for axis titles, but `axis.title` takes precedence there."
|
|
18000
|
+
},
|
|
18001
|
+
"format": {
|
|
18002
|
+
"type": "string",
|
|
18003
|
+
"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."
|
|
18004
|
+
},
|
|
18005
|
+
"highlight": {
|
|
18006
|
+
"anyOf": [
|
|
18007
|
+
{
|
|
18008
|
+
"type": "string"
|
|
18009
|
+
},
|
|
18010
|
+
{
|
|
18011
|
+
"type": "array",
|
|
18012
|
+
"items": {
|
|
18013
|
+
"type": "string"
|
|
18014
|
+
}
|
|
18015
|
+
}
|
|
18016
|
+
],
|
|
18017
|
+
"description": "Emphasis highlight for the color channel. Names one or more series values to visually emphasize; all other series are muted to a neutral gray.\n\nOnly meaningful on the `color` encoding channel. On other channels this property is ignored."
|
|
18018
|
+
}
|
|
18019
|
+
},
|
|
18020
|
+
"required": [
|
|
18021
|
+
"field"
|
|
18022
|
+
],
|
|
18023
|
+
"description": "Nominal display label. The last non-null label wins per key. Defaults to the key."
|
|
18024
|
+
}
|
|
18025
|
+
},
|
|
18026
|
+
"required": [
|
|
18027
|
+
"time",
|
|
18028
|
+
"key",
|
|
18029
|
+
"value"
|
|
18030
|
+
],
|
|
18031
|
+
"additionalProperties": false,
|
|
18032
|
+
"description": "Field mappings shared by bar, line, and table races."
|
|
18033
|
+
},
|
|
18034
|
+
"RaceConfig": {
|
|
18035
|
+
"type": "object",
|
|
18036
|
+
"properties": {
|
|
18037
|
+
"top": {
|
|
18038
|
+
"type": "number",
|
|
18039
|
+
"description": "Number of visible slots. Defaults to 10."
|
|
18040
|
+
},
|
|
18041
|
+
"duration": {
|
|
18042
|
+
"type": "number",
|
|
18043
|
+
"description": "Total playback duration in milliseconds at 1× speed. Defaults to 700ms per period, clamped to 8000–90000ms. Mutually exclusive with `step`."
|
|
18044
|
+
},
|
|
18045
|
+
"step": {
|
|
18046
|
+
"type": "number",
|
|
18047
|
+
"description": "Duration per period in milliseconds. Omitted by default and mutually exclusive with `duration`."
|
|
18048
|
+
},
|
|
18049
|
+
"swap": {
|
|
18050
|
+
"type": "number",
|
|
18051
|
+
"description": "Reorder duration in milliseconds. Defaults to 400."
|
|
18052
|
+
},
|
|
18053
|
+
"rescale": {
|
|
18054
|
+
"anyOf": [
|
|
18055
|
+
{
|
|
18056
|
+
"type": "string",
|
|
18057
|
+
"const": "frame"
|
|
18058
|
+
},
|
|
18059
|
+
{
|
|
18060
|
+
"type": "string",
|
|
18061
|
+
"const": "fixed"
|
|
18062
|
+
},
|
|
18063
|
+
{
|
|
18064
|
+
"type": "object",
|
|
18065
|
+
"properties": {
|
|
18066
|
+
"min": {
|
|
18067
|
+
"type": "number"
|
|
18068
|
+
}
|
|
18069
|
+
},
|
|
18070
|
+
"required": [
|
|
18071
|
+
"min"
|
|
18072
|
+
],
|
|
18073
|
+
"additionalProperties": false
|
|
18074
|
+
}
|
|
18075
|
+
],
|
|
18076
|
+
"description": "Value domain policy. Defaults to `frame` for the visible items. Use `fixed` for the full run or `{ min }` for a floor on the frame maximum."
|
|
18077
|
+
},
|
|
18078
|
+
"gaps": {
|
|
18079
|
+
"type": "string",
|
|
18080
|
+
"enum": [
|
|
18081
|
+
"interpolate",
|
|
18082
|
+
"hold",
|
|
18083
|
+
"drop"
|
|
18084
|
+
],
|
|
18085
|
+
"description": "Interior gap policy. Defaults to `interpolate`. Use `hold` to carry the previous value or `drop` to leave the value absent."
|
|
18086
|
+
},
|
|
18087
|
+
"holdEnd": {
|
|
18088
|
+
"type": "number",
|
|
18089
|
+
"description": "Time to dwell on the final frame in milliseconds. Defaults to 1500."
|
|
18090
|
+
},
|
|
18091
|
+
"loop": {
|
|
18092
|
+
"type": "boolean",
|
|
18093
|
+
"description": "Restart after the final hold. Defaults to false."
|
|
18094
|
+
},
|
|
18095
|
+
"autoplay": {
|
|
18096
|
+
"anyOf": [
|
|
18097
|
+
{
|
|
18098
|
+
"type": "string",
|
|
18099
|
+
"const": "visible"
|
|
18100
|
+
},
|
|
18101
|
+
{
|
|
18102
|
+
"type": "boolean"
|
|
18103
|
+
}
|
|
18104
|
+
],
|
|
18105
|
+
"description": "Start when 25% visible (`visible`, the default), immediately (`true`), or on demand (`false`). Reduced motion disables autoplay."
|
|
18106
|
+
},
|
|
18107
|
+
"controls": {
|
|
18108
|
+
"type": "boolean",
|
|
18109
|
+
"description": "Show play/pause, scrubber, and period readout. Defaults to true."
|
|
18110
|
+
},
|
|
18111
|
+
"period": {
|
|
18112
|
+
"anyOf": [
|
|
18113
|
+
{
|
|
18114
|
+
"type": "boolean",
|
|
18115
|
+
"const": false
|
|
18116
|
+
},
|
|
18117
|
+
{
|
|
18118
|
+
"type": "object",
|
|
18119
|
+
"properties": {
|
|
18120
|
+
"format": {
|
|
18121
|
+
"type": "string",
|
|
18122
|
+
"description": "Overrides the time channel's format."
|
|
18123
|
+
}
|
|
18124
|
+
},
|
|
18125
|
+
"additionalProperties": false
|
|
18126
|
+
}
|
|
18127
|
+
],
|
|
18128
|
+
"description": "Large period label. On by default with automatic placement and the time channel's format. Set false to hide it."
|
|
18129
|
+
},
|
|
18130
|
+
"summary": {
|
|
18131
|
+
"type": [
|
|
18132
|
+
"string",
|
|
18133
|
+
"boolean"
|
|
18134
|
+
],
|
|
18135
|
+
"enum": [
|
|
18136
|
+
"sum",
|
|
18137
|
+
false
|
|
18138
|
+
],
|
|
18139
|
+
"description": "Show the sum of the top N values. Defaults to false."
|
|
18140
|
+
}
|
|
18141
|
+
},
|
|
18142
|
+
"additionalProperties": false,
|
|
18143
|
+
"description": "Ranking and playback options for a race."
|
|
18144
|
+
},
|
|
18145
|
+
"PlaybackTimingConfig": {
|
|
18146
|
+
"type": "object",
|
|
18147
|
+
"properties": {
|
|
18148
|
+
"duration": {
|
|
18149
|
+
"type": "number",
|
|
18150
|
+
"description": "Total playback duration in milliseconds at 1× speed. Defaults to 700ms per period, clamped to 8000–90000ms. Mutually exclusive with `step`."
|
|
18151
|
+
},
|
|
18152
|
+
"step": {
|
|
18153
|
+
"type": "number",
|
|
18154
|
+
"description": "Duration per period in milliseconds. Omitted by default and mutually exclusive with `duration`."
|
|
18155
|
+
},
|
|
18156
|
+
"gaps": {
|
|
18157
|
+
"type": "string",
|
|
18158
|
+
"enum": [
|
|
18159
|
+
"interpolate",
|
|
18160
|
+
"hold",
|
|
18161
|
+
"drop"
|
|
18162
|
+
],
|
|
18163
|
+
"description": "Interior gap policy. Defaults to `interpolate`. Use `hold` to carry the previous value or `drop` to leave the value absent."
|
|
18164
|
+
},
|
|
18165
|
+
"holdEnd": {
|
|
18166
|
+
"type": "number",
|
|
18167
|
+
"description": "Time to dwell on the final frame in milliseconds. Defaults to 1500."
|
|
18168
|
+
},
|
|
18169
|
+
"loop": {
|
|
18170
|
+
"type": "boolean",
|
|
18171
|
+
"description": "Restart after the final hold. Defaults to false."
|
|
18172
|
+
},
|
|
18173
|
+
"autoplay": {
|
|
18174
|
+
"anyOf": [
|
|
18175
|
+
{
|
|
18176
|
+
"type": "string",
|
|
18177
|
+
"const": "visible"
|
|
18178
|
+
},
|
|
18179
|
+
{
|
|
18180
|
+
"type": "boolean"
|
|
18181
|
+
}
|
|
18182
|
+
],
|
|
18183
|
+
"description": "Start when 25% visible (`visible`, the default), immediately (`true`), or on demand (`false`). Reduced motion disables autoplay."
|
|
18184
|
+
},
|
|
18185
|
+
"controls": {
|
|
18186
|
+
"type": "boolean",
|
|
18187
|
+
"description": "Show play/pause, scrubber, and period readout. Defaults to true."
|
|
18188
|
+
},
|
|
18189
|
+
"period": {
|
|
18190
|
+
"anyOf": [
|
|
18191
|
+
{
|
|
18192
|
+
"type": "boolean",
|
|
18193
|
+
"const": false
|
|
18194
|
+
},
|
|
18195
|
+
{
|
|
18196
|
+
"type": "object",
|
|
18197
|
+
"properties": {
|
|
18198
|
+
"format": {
|
|
18199
|
+
"type": "string",
|
|
18200
|
+
"description": "Overrides the time channel's format."
|
|
18201
|
+
},
|
|
18202
|
+
"position": {
|
|
18203
|
+
"$ref": "#/definitions/PlaybackPeriodPosition",
|
|
18204
|
+
"description": "Where the label sits. Defaults to `auto`: centered for point charts, upper right for bars, and the corner that covers the least geography on maps."
|
|
18205
|
+
}
|
|
18206
|
+
},
|
|
18207
|
+
"additionalProperties": false
|
|
18208
|
+
}
|
|
18209
|
+
],
|
|
18210
|
+
"description": "Large period label. On by default with automatic placement and the time channel's format. Set false to hide it."
|
|
18211
|
+
}
|
|
18212
|
+
},
|
|
18213
|
+
"additionalProperties": false,
|
|
18214
|
+
"description": "The playback timing fields a race accepts in its top-level `playback` block."
|
|
18215
|
+
},
|
|
18216
|
+
"ChartSpecBase": {
|
|
18217
|
+
"type": "object",
|
|
18218
|
+
"additionalProperties": false,
|
|
18219
|
+
"properties": {
|
|
18220
|
+
"mark": {
|
|
18221
|
+
"description": "Mark type (string shorthand or MarkDef object)."
|
|
18222
|
+
},
|
|
18223
|
+
"encoding": {
|
|
16534
18224
|
"description": "Encoding channel map."
|
|
16535
18225
|
},
|
|
16536
18226
|
"frame": {
|
|
@@ -16701,7 +18391,7 @@
|
|
|
16701
18391
|
},
|
|
16702
18392
|
"animation": {
|
|
16703
18393
|
"$ref": "#/definitions/AnimationSpec",
|
|
16704
|
-
"description": "
|
|
18394
|
+
"description": "Motion. On by default: the entrance plays once the visualization scrolls into view, and data updates animate. Set false to turn all motion off, or pass an object to configure each phase. Static rendering and exports never animate, and prefers-reduced-motion always wins."
|
|
16705
18395
|
},
|
|
16706
18396
|
"crosshair": {
|
|
16707
18397
|
"type": "boolean",
|
|
@@ -16733,6 +18423,10 @@
|
|
|
16733
18423
|
"zIndex": {
|
|
16734
18424
|
"type": "number",
|
|
16735
18425
|
"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."
|
|
18426
|
+
},
|
|
18427
|
+
"playback": {
|
|
18428
|
+
"$ref": "#/definitions/PlaybackConfig",
|
|
18429
|
+
"description": "Playback timing, controls and period label for a chart with `encoding.time` (point, circle and bar marks). Ignored with a warning when the chart has no time channel."
|
|
16736
18430
|
}
|
|
16737
18431
|
}
|
|
16738
18432
|
}
|