@opendata-ai/openchart-core 8.8.0 → 8.9.1

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.
@@ -7415,6 +7415,67 @@
7415
7415
  "additionalProperties": false,
7416
7416
  "description": "Facet channel definition: partitions data into small-multiple panels.\n\nUnlike positional channels, facet only needs a field, a categorical type, and optional layout hints (columns, sort). It does not carry scale/axis config because it produces a grid, not a visual encoding."
7417
7417
  },
7418
+ "FieldMetadata": {
7419
+ "type": "object",
7420
+ "properties": {
7421
+ "type": {
7422
+ "type": "string",
7423
+ "enum": [
7424
+ "text",
7425
+ "number",
7426
+ "date"
7427
+ ],
7428
+ "description": "Explicit imported field type; preserved with the portable document."
7429
+ },
7430
+ "role": {
7431
+ "type": "string",
7432
+ "const": "identity",
7433
+ "description": "Identifies an internal, persistent row identity column."
7434
+ },
7435
+ "label": {
7436
+ "type": "string"
7437
+ },
7438
+ "unit": {
7439
+ "type": "string"
7440
+ },
7441
+ "measure": {
7442
+ "type": "string"
7443
+ },
7444
+ "provenance": {
7445
+ "type": "string"
7446
+ },
7447
+ "representation": {
7448
+ "type": "string",
7449
+ "enum": [
7450
+ "number",
7451
+ "percent",
7452
+ "proportion"
7453
+ ],
7454
+ "description": "Percent is encoded 0–100; proportion is encoded 0–1."
7455
+ },
7456
+ "interval": {
7457
+ "type": "object",
7458
+ "properties": {
7459
+ "lower": {
7460
+ "type": "string"
7461
+ },
7462
+ "upper": {
7463
+ "type": "string"
7464
+ }
7465
+ },
7466
+ "required": [
7467
+ "lower",
7468
+ "upper"
7469
+ ],
7470
+ "additionalProperties": false
7471
+ },
7472
+ "statusField": {
7473
+ "type": "string"
7474
+ }
7475
+ },
7476
+ "additionalProperties": false,
7477
+ "description": "Supplied semantics; the library never invents a measure or uncertainty."
7478
+ },
7418
7479
  "DataRow": {
7419
7480
  "type": "object",
7420
7481
  "additionalProperties": {},
@@ -8090,6 +8151,17 @@
8090
8151
  "type": "string",
8091
8152
  "description": "Optional muted second-tone text rendered below the primary `text`. Used for supporting context (e.g. methodology, source). Newlines in `text` still produce multi-line primary; subtitle is a separate block.\n\nSupports the same inline `**bold**` spans as `text`. When a subtitle is present and no `fontWeight` is set, the primary `text` resolves to weight 700 — the lede + context stack."
8092
8153
  },
8154
+ "subtitleFontSize": {
8155
+ "type": "number",
8156
+ "description": "Subtitle size in pixels. Default: round(fontSize * 0.85)."
8157
+ },
8158
+ "maxWidth": {
8159
+ "type": [
8160
+ "number",
8161
+ "null"
8162
+ ],
8163
+ "description": "Optional display wrap width in pixels. Omitted or null keeps unbounded lines."
8164
+ },
8093
8165
  "dot": {
8094
8166
  "anyOf": [
8095
8167
  {
@@ -8222,6 +8294,10 @@
8222
8294
  "$ref": "#/definitions/ConnectorType",
8223
8295
  "description": "Connector style."
8224
8296
  },
8297
+ "bend": {
8298
+ "type": "number",
8299
+ "description": "Curve displacement along the chord normal, from -1 to 1. Omitted or zero preserves the automatic curve. Ignored for other connector types."
8300
+ },
8225
8301
  "arrow": {
8226
8302
  "type": "boolean",
8227
8303
  "description": "Whether to draw an arrowhead at the data-point end. Default: true for curve, false for straight. Drop-line never takes a head."
@@ -8397,6 +8473,16 @@
8397
8473
  "$ref": "#/definitions/AnnotationOffset",
8398
8474
  "description": "Pixel offset for the reference line label."
8399
8475
  },
8476
+ "labelPlacement": {
8477
+ "type": "string",
8478
+ "enum": [
8479
+ "auto",
8480
+ "start",
8481
+ "end",
8482
+ "outside"
8483
+ ],
8484
+ "description": "Opt-in screen-space label placement. Outside reserves a right gutter or top lane; omission preserves legacy labelAnchor behavior."
8485
+ },
8400
8486
  "labelAnchor": {
8401
8487
  "$ref": "#/definitions/AnnotationAnchor",
8402
8488
  "description": "Anchor direction for the reference line label."
@@ -8570,6 +8656,21 @@
8570
8656
  "ResponsiveConfig": {
8571
8657
  "type": "object",
8572
8658
  "properties": {
8659
+ "compactAnnotationLimit": {
8660
+ "type": [
8661
+ "number",
8662
+ "null"
8663
+ ],
8664
+ "description": "Maximum eligible inline callouts below 400px container width; null or omitted is unlimited. Pinned annotations are exempt."
8665
+ },
8666
+ "preserveEnd": {
8667
+ "type": "boolean",
8668
+ "description": "Preserve the final temporal boundary before thinning interior ticks."
8669
+ },
8670
+ "labelSummary": {
8671
+ "type": "boolean",
8672
+ "description": "Move direct series labels into a keyed list when the inline column cannot fit."
8673
+ },
8573
8674
  "autoThin": {
8574
8675
  "type": "boolean",
8575
8676
  "description": "Automatic annotation thinning at narrow widths. When true (default), annotations that can't be placed without overlap are demoted to numbered dot markers with footnote text below the chart. Set false to restore the pre-auto-thinning behavior (annotations hidden at compact breakpoints)."
@@ -8654,6 +8755,34 @@
8654
8755
  "$ref": "#/definitions/TokenValue",
8655
8756
  "description": "Annotation text color. Accepts a TokenValue for light/dark pairs."
8656
8757
  },
8758
+ "annotationLabel": {
8759
+ "$ref": "#/definitions/TokenValue",
8760
+ "description": "Annotation label color. Accepts a TokenValue light/dark pair."
8761
+ },
8762
+ "annotationMuted": {
8763
+ "$ref": "#/definitions/TokenValue",
8764
+ "description": "Annotation muted color. Accepts a TokenValue light/dark pair."
8765
+ },
8766
+ "annotationLeader": {
8767
+ "$ref": "#/definitions/TokenValue",
8768
+ "description": "Annotation leader color. Accepts a TokenValue light/dark pair."
8769
+ },
8770
+ "annotationRule": {
8771
+ "$ref": "#/definitions/TokenValue",
8772
+ "description": "Annotation rule color. Accepts a TokenValue light/dark pair."
8773
+ },
8774
+ "annotationRangeFill": {
8775
+ "$ref": "#/definitions/TokenValue",
8776
+ "description": "Annotation rangefill color. Accepts a TokenValue light/dark pair."
8777
+ },
8778
+ "annotationMarkerFill": {
8779
+ "$ref": "#/definitions/TokenValue",
8780
+ "description": "Annotation markerfill color. Accepts a TokenValue light/dark pair."
8781
+ },
8782
+ "annotationPlate": {
8783
+ "$ref": "#/definitions/TokenValue",
8784
+ "description": "Annotation plate color. Accepts a TokenValue light/dark pair."
8785
+ },
8657
8786
  "positive": {
8658
8787
  "$ref": "#/definitions/TokenValue",
8659
8788
  "description": "Semantic color for positive/up-trend values. Accepts a TokenValue for light/dark pairs."
@@ -8786,10 +8915,10 @@
8786
8915
  "eyebrow": {
8787
8916
  "anyOf": [
8788
8917
  {
8789
- "type": "string"
8918
+ "$ref": "#/definitions/ChromeThemeOverride"
8790
8919
  },
8791
8920
  {
8792
- "$ref": "#/definitions/ChromeThemeOverride"
8921
+ "type": "string"
8793
8922
  }
8794
8923
  ],
8795
8924
  "description": "Eyebrow (kicker) style override."
@@ -8797,10 +8926,10 @@
8797
8926
  "title": {
8798
8927
  "anyOf": [
8799
8928
  {
8800
- "type": "string"
8929
+ "$ref": "#/definitions/ChromeThemeOverride"
8801
8930
  },
8802
8931
  {
8803
- "$ref": "#/definitions/ChromeThemeOverride"
8932
+ "type": "string"
8804
8933
  }
8805
8934
  ],
8806
8935
  "description": "Title style override."
@@ -8808,10 +8937,10 @@
8808
8937
  "subtitle": {
8809
8938
  "anyOf": [
8810
8939
  {
8811
- "type": "string"
8940
+ "$ref": "#/definitions/ChromeThemeOverride"
8812
8941
  },
8813
8942
  {
8814
- "$ref": "#/definitions/ChromeThemeOverride"
8943
+ "type": "string"
8815
8944
  }
8816
8945
  ],
8817
8946
  "description": "Subtitle style override."
@@ -8819,10 +8948,10 @@
8819
8948
  "source": {
8820
8949
  "anyOf": [
8821
8950
  {
8822
- "type": "string"
8951
+ "$ref": "#/definitions/ChromeThemeOverride"
8823
8952
  },
8824
8953
  {
8825
- "$ref": "#/definitions/ChromeThemeOverride"
8954
+ "type": "string"
8826
8955
  }
8827
8956
  ],
8828
8957
  "description": "Source/attribution style override."
@@ -8830,10 +8959,10 @@
8830
8959
  "byline": {
8831
8960
  "anyOf": [
8832
8961
  {
8833
- "type": "string"
8962
+ "$ref": "#/definitions/ChromeThemeOverride"
8834
8963
  },
8835
8964
  {
8836
- "$ref": "#/definitions/ChromeThemeOverride"
8965
+ "type": "string"
8837
8966
  }
8838
8967
  ],
8839
8968
  "description": "Byline style override."
@@ -8841,10 +8970,10 @@
8841
8970
  "footer": {
8842
8971
  "anyOf": [
8843
8972
  {
8844
- "type": "string"
8973
+ "$ref": "#/definitions/ChromeThemeOverride"
8845
8974
  },
8846
8975
  {
8847
- "$ref": "#/definitions/ChromeThemeOverride"
8976
+ "type": "string"
8848
8977
  }
8849
8978
  ],
8850
8979
  "description": "Footer style override."
@@ -9024,15 +9153,31 @@
9024
9153
  {
9025
9154
  "type": "boolean"
9026
9155
  },
9156
+ {
9157
+ "$ref": "#/definitions/AnimationPreset"
9158
+ },
9027
9159
  {
9028
9160
  "$ref": "#/definitions/AnimationConfig"
9029
9161
  }
9030
9162
  ],
9031
9163
  "description": "Animation spec property.\n- true: enable entrance animation with sensible defaults\n- false/omitted: no animation (current behavior)\n- AnimationConfig: full control via enter/update/exit phases"
9032
9164
  },
9165
+ "AnimationPreset": {
9166
+ "type": "string",
9167
+ "enum": [
9168
+ "fluid",
9169
+ "subtle",
9170
+ "legacy"
9171
+ ],
9172
+ "description": "Opt-in motion language."
9173
+ },
9033
9174
  "AnimationConfig": {
9034
9175
  "type": "object",
9035
9176
  "properties": {
9177
+ "preset": {
9178
+ "$ref": "#/definitions/AnimationPreset",
9179
+ "description": "Base preset; explicit phase settings take precedence."
9180
+ },
9036
9181
  "enter": {
9037
9182
  "anyOf": [
9038
9183
  {
@@ -9077,6 +9222,10 @@
9077
9222
  "AnimationPhaseConfig": {
9078
9223
  "type": "object",
9079
9224
  "properties": {
9225
+ "spring": {
9226
+ "$ref": "#/definitions/SpringConfig",
9227
+ "description": "Spring mode. Cannot be combined with duration or ease in this phase."
9228
+ },
9080
9229
  "duration": {
9081
9230
  "type": "number",
9082
9231
  "description": "Duration in ms. Default: 500 for enter."
@@ -9100,6 +9249,22 @@
9100
9249
  "additionalProperties": false,
9101
9250
  "description": "Animation phase config. Follows Vega's enter/update/exit model. Each phase can be true (use defaults) or a config object."
9102
9251
  },
9252
+ "SpringConfig": {
9253
+ "type": "object",
9254
+ "properties": {
9255
+ "stiffness": {
9256
+ "type": "number"
9257
+ },
9258
+ "damping": {
9259
+ "type": "number"
9260
+ },
9261
+ "mass": {
9262
+ "type": "number"
9263
+ }
9264
+ },
9265
+ "additionalProperties": false,
9266
+ "description": "Physical spring parameters. Quantitative motion is bounded at critical damping."
9267
+ },
9103
9268
  "AnimationEase": {
9104
9269
  "type": "string",
9105
9270
  "enum": [
@@ -9131,6 +9296,10 @@
9131
9296
  "UpdatePhaseConfig": {
9132
9297
  "type": "object",
9133
9298
  "properties": {
9299
+ "spring": {
9300
+ "$ref": "#/definitions/SpringConfig",
9301
+ "description": "Spring mode. Cannot be combined with duration or ease in this phase."
9302
+ },
9134
9303
  "duration": {
9135
9304
  "type": "number",
9136
9305
  "description": "Duration in ms. Default: 500 for enter."
@@ -11383,7 +11552,7 @@
11383
11552
  },
11384
11553
  "darkMode": {
11385
11554
  "$ref": "#/definitions/DarkMode",
11386
- "description": "Dark mode behavior. Defaults to \"off\"."
11555
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
11387
11556
  },
11388
11557
  "watermark": {
11389
11558
  "type": "boolean",
@@ -11757,6 +11926,13 @@
11757
11926
  "encoding": {
11758
11927
  "$ref": "#/definitions/ArcEncoding%3CDataRow%3E"
11759
11928
  },
11929
+ "fields": {
11930
+ "type": "object",
11931
+ "additionalProperties": {
11932
+ "$ref": "#/definitions/FieldMetadata"
11933
+ },
11934
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
11935
+ },
11760
11936
  "data": {
11761
11937
  "type": "array",
11762
11938
  "items": {
@@ -11880,7 +12056,7 @@
11880
12056
  },
11881
12057
  "darkMode": {
11882
12058
  "$ref": "#/definitions/DarkMode",
11883
- "description": "Dark mode behavior. Defaults to \"off\"."
12059
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
11884
12060
  },
11885
12061
  "watermark": {
11886
12062
  "type": "boolean",
@@ -12291,6 +12467,13 @@
12291
12467
  "encoding": {
12292
12468
  "$ref": "#/definitions/LineEncoding%3CDataRow%3E"
12293
12469
  },
12470
+ "fields": {
12471
+ "type": "object",
12472
+ "additionalProperties": {
12473
+ "$ref": "#/definitions/FieldMetadata"
12474
+ },
12475
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
12476
+ },
12294
12477
  "data": {
12295
12478
  "type": "array",
12296
12479
  "items": {
@@ -12414,7 +12597,7 @@
12414
12597
  },
12415
12598
  "darkMode": {
12416
12599
  "$ref": "#/definitions/DarkMode",
12417
- "description": "Dark mode behavior. Defaults to \"off\"."
12600
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
12418
12601
  },
12419
12602
  "watermark": {
12420
12603
  "type": "boolean",
@@ -12825,6 +13008,13 @@
12825
13008
  "encoding": {
12826
13009
  "$ref": "#/definitions/BarEncoding%3CDataRow%3E"
12827
13010
  },
13011
+ "fields": {
13012
+ "type": "object",
13013
+ "additionalProperties": {
13014
+ "$ref": "#/definitions/FieldMetadata"
13015
+ },
13016
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
13017
+ },
12828
13018
  "data": {
12829
13019
  "type": "array",
12830
13020
  "items": {
@@ -12948,7 +13138,7 @@
12948
13138
  },
12949
13139
  "darkMode": {
12950
13140
  "$ref": "#/definitions/DarkMode",
12951
- "description": "Dark mode behavior. Defaults to \"off\"."
13141
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
12952
13142
  },
12953
13143
  "watermark": {
12954
13144
  "type": "boolean",
@@ -13359,6 +13549,13 @@
13359
13549
  "encoding": {
13360
13550
  "$ref": "#/definitions/AreaEncoding%3CDataRow%3E"
13361
13551
  },
13552
+ "fields": {
13553
+ "type": "object",
13554
+ "additionalProperties": {
13555
+ "$ref": "#/definitions/FieldMetadata"
13556
+ },
13557
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
13558
+ },
13362
13559
  "data": {
13363
13560
  "type": "array",
13364
13561
  "items": {
@@ -13482,7 +13679,7 @@
13482
13679
  },
13483
13680
  "darkMode": {
13484
13681
  "$ref": "#/definitions/DarkMode",
13485
- "description": "Dark mode behavior. Defaults to \"off\"."
13682
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
13486
13683
  },
13487
13684
  "watermark": {
13488
13685
  "type": "boolean",
@@ -13893,6 +14090,13 @@
13893
14090
  "encoding": {
13894
14091
  "$ref": "#/definitions/PointEncoding%3CDataRow%3E"
13895
14092
  },
14093
+ "fields": {
14094
+ "type": "object",
14095
+ "additionalProperties": {
14096
+ "$ref": "#/definitions/FieldMetadata"
14097
+ },
14098
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
14099
+ },
13896
14100
  "data": {
13897
14101
  "type": "array",
13898
14102
  "items": {
@@ -14016,7 +14220,7 @@
14016
14220
  },
14017
14221
  "darkMode": {
14018
14222
  "$ref": "#/definitions/DarkMode",
14019
- "description": "Dark mode behavior. Defaults to \"off\"."
14223
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
14020
14224
  },
14021
14225
  "watermark": {
14022
14226
  "type": "boolean",
@@ -14427,6 +14631,13 @@
14427
14631
  "encoding": {
14428
14632
  "$ref": "#/definitions/CircleEncoding%3CDataRow%3E"
14429
14633
  },
14634
+ "fields": {
14635
+ "type": "object",
14636
+ "additionalProperties": {
14637
+ "$ref": "#/definitions/FieldMetadata"
14638
+ },
14639
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
14640
+ },
14430
14641
  "data": {
14431
14642
  "type": "array",
14432
14643
  "items": {
@@ -14550,7 +14761,7 @@
14550
14761
  },
14551
14762
  "darkMode": {
14552
14763
  "$ref": "#/definitions/DarkMode",
14553
- "description": "Dark mode behavior. Defaults to \"off\"."
14764
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
14554
14765
  },
14555
14766
  "watermark": {
14556
14767
  "type": "boolean",
@@ -14961,6 +15172,13 @@
14961
15172
  "encoding": {
14962
15173
  "$ref": "#/definitions/LollipopEncoding%3CDataRow%3E"
14963
15174
  },
15175
+ "fields": {
15176
+ "type": "object",
15177
+ "additionalProperties": {
15178
+ "$ref": "#/definitions/FieldMetadata"
15179
+ },
15180
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
15181
+ },
14964
15182
  "data": {
14965
15183
  "type": "array",
14966
15184
  "items": {
@@ -15084,7 +15302,7 @@
15084
15302
  },
15085
15303
  "darkMode": {
15086
15304
  "$ref": "#/definitions/DarkMode",
15087
- "description": "Dark mode behavior. Defaults to \"off\"."
15305
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
15088
15306
  },
15089
15307
  "watermark": {
15090
15308
  "type": "boolean",
@@ -15495,6 +15713,13 @@
15495
15713
  "encoding": {
15496
15714
  "$ref": "#/definitions/BeeswarmEncoding%3CDataRow%3E"
15497
15715
  },
15716
+ "fields": {
15717
+ "type": "object",
15718
+ "additionalProperties": {
15719
+ "$ref": "#/definitions/FieldMetadata"
15720
+ },
15721
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
15722
+ },
15498
15723
  "data": {
15499
15724
  "type": "array",
15500
15725
  "items": {
@@ -15618,7 +15843,7 @@
15618
15843
  },
15619
15844
  "darkMode": {
15620
15845
  "$ref": "#/definitions/DarkMode",
15621
- "description": "Dark mode behavior. Defaults to \"off\"."
15846
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
15622
15847
  },
15623
15848
  "watermark": {
15624
15849
  "type": "boolean",
@@ -16029,6 +16254,13 @@
16029
16254
  "encoding": {
16030
16255
  "$ref": "#/definitions/RangeEncoding%3CDataRow%3E"
16031
16256
  },
16257
+ "fields": {
16258
+ "type": "object",
16259
+ "additionalProperties": {
16260
+ "$ref": "#/definitions/FieldMetadata"
16261
+ },
16262
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
16263
+ },
16032
16264
  "data": {
16033
16265
  "type": "array",
16034
16266
  "items": {
@@ -16152,7 +16384,7 @@
16152
16384
  },
16153
16385
  "darkMode": {
16154
16386
  "$ref": "#/definitions/DarkMode",
16155
- "description": "Dark mode behavior. Defaults to \"off\"."
16387
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
16156
16388
  },
16157
16389
  "watermark": {
16158
16390
  "type": "boolean",
@@ -16563,6 +16795,13 @@
16563
16795
  "encoding": {
16564
16796
  "$ref": "#/definitions/WaffleEncoding%3CDataRow%3E"
16565
16797
  },
16798
+ "fields": {
16799
+ "type": "object",
16800
+ "additionalProperties": {
16801
+ "$ref": "#/definitions/FieldMetadata"
16802
+ },
16803
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
16804
+ },
16566
16805
  "data": {
16567
16806
  "type": "array",
16568
16807
  "items": {
@@ -16686,7 +16925,7 @@
16686
16925
  },
16687
16926
  "darkMode": {
16688
16927
  "$ref": "#/definitions/DarkMode",
16689
- "description": "Dark mode behavior. Defaults to \"off\"."
16928
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
16690
16929
  },
16691
16930
  "watermark": {
16692
16931
  "type": "boolean",
@@ -17097,6 +17336,13 @@
17097
17336
  "encoding": {
17098
17337
  "$ref": "#/definitions/TextEncoding%3CDataRow%3E"
17099
17338
  },
17339
+ "fields": {
17340
+ "type": "object",
17341
+ "additionalProperties": {
17342
+ "$ref": "#/definitions/FieldMetadata"
17343
+ },
17344
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
17345
+ },
17100
17346
  "data": {
17101
17347
  "type": "array",
17102
17348
  "items": {
@@ -17220,7 +17466,7 @@
17220
17466
  },
17221
17467
  "darkMode": {
17222
17468
  "$ref": "#/definitions/DarkMode",
17223
- "description": "Dark mode behavior. Defaults to \"off\"."
17469
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
17224
17470
  },
17225
17471
  "watermark": {
17226
17472
  "type": "boolean",
@@ -17631,6 +17877,13 @@
17631
17877
  "encoding": {
17632
17878
  "$ref": "#/definitions/TickEncoding%3CDataRow%3E"
17633
17879
  },
17880
+ "fields": {
17881
+ "type": "object",
17882
+ "additionalProperties": {
17883
+ "$ref": "#/definitions/FieldMetadata"
17884
+ },
17885
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
17886
+ },
17634
17887
  "data": {
17635
17888
  "type": "array",
17636
17889
  "items": {
@@ -17754,7 +18007,7 @@
17754
18007
  },
17755
18008
  "darkMode": {
17756
18009
  "$ref": "#/definitions/DarkMode",
17757
- "description": "Dark mode behavior. Defaults to \"off\"."
18010
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
17758
18011
  },
17759
18012
  "watermark": {
17760
18013
  "type": "boolean",
@@ -18165,6 +18418,13 @@
18165
18418
  "encoding": {
18166
18419
  "$ref": "#/definitions/RectEncoding%3CDataRow%3E"
18167
18420
  },
18421
+ "fields": {
18422
+ "type": "object",
18423
+ "additionalProperties": {
18424
+ "$ref": "#/definitions/FieldMetadata"
18425
+ },
18426
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
18427
+ },
18168
18428
  "data": {
18169
18429
  "type": "array",
18170
18430
  "items": {
@@ -18288,7 +18548,7 @@
18288
18548
  },
18289
18549
  "darkMode": {
18290
18550
  "$ref": "#/definitions/DarkMode",
18291
- "description": "Dark mode behavior. Defaults to \"off\"."
18551
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
18292
18552
  },
18293
18553
  "watermark": {
18294
18554
  "type": "boolean",
@@ -18699,6 +18959,13 @@
18699
18959
  "encoding": {
18700
18960
  "$ref": "#/definitions/Encoding%3CDataRow%3E"
18701
18961
  },
18962
+ "fields": {
18963
+ "type": "object",
18964
+ "additionalProperties": {
18965
+ "$ref": "#/definitions/FieldMetadata"
18966
+ },
18967
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
18968
+ },
18702
18969
  "data": {
18703
18970
  "type": "array",
18704
18971
  "items": {
@@ -18822,7 +19089,7 @@
18822
19089
  },
18823
19090
  "darkMode": {
18824
19091
  "$ref": "#/definitions/DarkMode",
18825
- "description": "Dark mode behavior. Defaults to \"off\"."
19092
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
18826
19093
  },
18827
19094
  "watermark": {
18828
19095
  "type": "boolean",
@@ -19233,6 +19500,13 @@
19233
19500
  "encoding": {
19234
19501
  "$ref": "#/definitions/CalendarEncoding%3CDataRow%3E"
19235
19502
  },
19503
+ "fields": {
19504
+ "type": "object",
19505
+ "additionalProperties": {
19506
+ "$ref": "#/definitions/FieldMetadata"
19507
+ },
19508
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
19509
+ },
19236
19510
  "data": {
19237
19511
  "type": "array",
19238
19512
  "items": {
@@ -19356,7 +19630,7 @@
19356
19630
  },
19357
19631
  "darkMode": {
19358
19632
  "$ref": "#/definitions/DarkMode",
19359
- "description": "Dark mode behavior. Defaults to \"off\"."
19633
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
19360
19634
  },
19361
19635
  "watermark": {
19362
19636
  "type": "boolean",
@@ -19767,6 +20041,13 @@
19767
20041
  "encoding": {
19768
20042
  "$ref": "#/definitions/ParliamentEncoding%3CDataRow%3E"
19769
20043
  },
20044
+ "fields": {
20045
+ "type": "object",
20046
+ "additionalProperties": {
20047
+ "$ref": "#/definitions/FieldMetadata"
20048
+ },
20049
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
20050
+ },
19770
20051
  "data": {
19771
20052
  "type": "array",
19772
20053
  "items": {
@@ -19890,7 +20171,7 @@
19890
20171
  },
19891
20172
  "darkMode": {
19892
20173
  "$ref": "#/definitions/DarkMode",
19893
- "description": "Dark mode behavior. Defaults to \"off\"."
20174
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
19894
20175
  },
19895
20176
  "watermark": {
19896
20177
  "type": "boolean",
@@ -20301,6 +20582,13 @@
20301
20582
  "encoding": {
20302
20583
  "$ref": "#/definitions/HistogramEncoding%3CDataRow%3E"
20303
20584
  },
20585
+ "fields": {
20586
+ "type": "object",
20587
+ "additionalProperties": {
20588
+ "$ref": "#/definitions/FieldMetadata"
20589
+ },
20590
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
20591
+ },
20304
20592
  "data": {
20305
20593
  "type": "array",
20306
20594
  "items": {
@@ -20424,7 +20712,7 @@
20424
20712
  },
20425
20713
  "darkMode": {
20426
20714
  "$ref": "#/definitions/DarkMode",
20427
- "description": "Dark mode behavior. Defaults to \"off\"."
20715
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
20428
20716
  },
20429
20717
  "watermark": {
20430
20718
  "type": "boolean",
@@ -20835,6 +21123,13 @@
20835
21123
  "encoding": {
20836
21124
  "$ref": "#/definitions/DensityEncoding%3CDataRow%3E"
20837
21125
  },
21126
+ "fields": {
21127
+ "type": "object",
21128
+ "additionalProperties": {
21129
+ "$ref": "#/definitions/FieldMetadata"
21130
+ },
21131
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
21132
+ },
20838
21133
  "data": {
20839
21134
  "type": "array",
20840
21135
  "items": {
@@ -20958,7 +21253,7 @@
20958
21253
  },
20959
21254
  "darkMode": {
20960
21255
  "$ref": "#/definitions/DarkMode",
20961
- "description": "Dark mode behavior. Defaults to \"off\"."
21256
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
20962
21257
  },
20963
21258
  "watermark": {
20964
21259
  "type": "boolean",
@@ -21142,7 +21437,7 @@
21142
21437
  },
21143
21438
  "darkMode": {
21144
21439
  "$ref": "#/definitions/DarkMode",
21145
- "description": "Dark mode behavior. Defaults to \"off\"."
21440
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
21146
21441
  },
21147
21442
  "watermark": {
21148
21443
  "type": "boolean",
@@ -21184,6 +21479,22 @@
21184
21479
  "TableSpec": {
21185
21480
  "type": "object",
21186
21481
  "properties": {
21482
+ "mobileLayout": {
21483
+ "type": "string",
21484
+ "enum": [
21485
+ "cards",
21486
+ "priority",
21487
+ "scroll"
21488
+ ],
21489
+ "description": "Compact layout. v8 defaults to cards; priority retains comparable columns with expandable details."
21490
+ },
21491
+ "fields": {
21492
+ "type": "object",
21493
+ "additionalProperties": {
21494
+ "$ref": "#/definitions/FieldMetadata"
21495
+ },
21496
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
21497
+ },
21187
21498
  "type": {
21188
21499
  "type": "string",
21189
21500
  "const": "table",
@@ -21217,7 +21528,7 @@
21217
21528
  },
21218
21529
  "darkMode": {
21219
21530
  "$ref": "#/definitions/DarkMode",
21220
- "description": "Dark mode behavior."
21531
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
21221
21532
  },
21222
21533
  "watermark": {
21223
21534
  "type": "boolean",
@@ -21642,7 +21953,7 @@
21642
21953
  },
21643
21954
  "darkMode": {
21644
21955
  "$ref": "#/definitions/DarkMode",
21645
- "description": "Dark mode behavior."
21956
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
21646
21957
  },
21647
21958
  "animation": {
21648
21959
  "$ref": "#/definitions/GraphAnimationSpec",
@@ -22182,7 +22493,7 @@
22182
22493
  },
22183
22494
  "darkMode": {
22184
22495
  "$ref": "#/definitions/DarkMode",
22185
- "description": "Dark mode behavior. Defaults to \"off\"."
22496
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
22186
22497
  },
22187
22498
  "watermark": {
22188
22499
  "type": "boolean",
@@ -22479,7 +22790,7 @@
22479
22790
  },
22480
22791
  "darkMode": {
22481
22792
  "$ref": "#/definitions/DarkMode",
22482
- "description": "Dark mode behavior. Defaults to \"off\"."
22793
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
22483
22794
  },
22484
22795
  "watermark": {
22485
22796
  "type": "boolean",
@@ -22491,8 +22802,7 @@
22491
22802
  },
22492
22803
  "valueFormat": {
22493
22804
  "type": "string",
22494
- "description": "d3-format string applied to tile values, legend labels, and tooltips. Examples: \".1f\" for one decimal, \"$,.0f\" for currency, \"~s\" for SI.",
22495
- "deprecated": "Use the encoding channel's `format` field instead. This\nproperty is expanded into the encoding during compilation."
22805
+ "description": "d3-format string applied to tile values, legend labels, and tooltips. Examples: \".1f\" for one decimal, \"$,.0f\" for currency, \"~s\" for SI."
22496
22806
  }
22497
22807
  },
22498
22808
  "required": [
@@ -22552,6 +22862,13 @@
22552
22862
  "GeoMapSpec": {
22553
22863
  "type": "object",
22554
22864
  "properties": {
22865
+ "fields": {
22866
+ "type": "object",
22867
+ "additionalProperties": {
22868
+ "$ref": "#/definitions/FieldMetadata"
22869
+ },
22870
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
22871
+ },
22555
22872
  "type": {
22556
22873
  "type": "string",
22557
22874
  "const": "map",
@@ -22586,7 +22903,7 @@
22586
22903
  },
22587
22904
  "darkMode": {
22588
22905
  "$ref": "#/definitions/DarkMode",
22589
- "description": "Dark mode behavior. Defaults to \"off\"."
22906
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
22590
22907
  },
22591
22908
  "watermark": {
22592
22909
  "type": "boolean",
@@ -22910,7 +23227,7 @@
22910
23227
  },
22911
23228
  "darkMode": {
22912
23229
  "$ref": "#/definitions/DarkMode",
22913
- "description": "Dark mode behavior. Defaults to \"off\"."
23230
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
22914
23231
  },
22915
23232
  "watermark": {
22916
23233
  "type": "boolean",
@@ -22984,6 +23301,13 @@
22984
23301
  "encoding": {
22985
23302
  "description": "Encoding channel map."
22986
23303
  },
23304
+ "fields": {
23305
+ "type": "object",
23306
+ "additionalProperties": {
23307
+ "$ref": "#/definitions/FieldMetadata"
23308
+ },
23309
+ "description": "Optional authored measure, unit, provenance, and supplied interval metadata."
23310
+ },
22987
23311
  "data": {
22988
23312
  "type": "array",
22989
23313
  "items": {
@@ -23107,7 +23431,7 @@
23107
23431
  },
23108
23432
  "darkMode": {
23109
23433
  "$ref": "#/definitions/DarkMode",
23110
- "description": "Dark mode behavior. Defaults to \"off\"."
23434
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
23111
23435
  },
23112
23436
  "watermark": {
23113
23437
  "type": "boolean",