@opendata-ai/openchart-core 8.3.0 → 8.4.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.
@@ -97,6 +97,29 @@
97
97
  "type": "number",
98
98
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
99
99
  },
100
+ "centerLabel": {
101
+ "anyOf": [
102
+ {
103
+ "type": "string"
104
+ },
105
+ {
106
+ "type": "object",
107
+ "properties": {
108
+ "text": {
109
+ "type": "string"
110
+ },
111
+ "subtitle": {
112
+ "type": "string"
113
+ }
114
+ },
115
+ "required": [
116
+ "text"
117
+ ],
118
+ "additionalProperties": false
119
+ }
120
+ ],
121
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
122
+ },
100
123
  "cornerRadius": {
101
124
  "anyOf": [
102
125
  {
@@ -221,6 +244,29 @@
221
244
  "type": "number",
222
245
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
223
246
  },
247
+ "other": {
248
+ "anyOf": [
249
+ {
250
+ "type": "number"
251
+ },
252
+ {
253
+ "type": "object",
254
+ "properties": {
255
+ "threshold": {
256
+ "type": "number"
257
+ },
258
+ "label": {
259
+ "type": "string"
260
+ }
261
+ },
262
+ "required": [
263
+ "threshold"
264
+ ],
265
+ "additionalProperties": false
266
+ }
267
+ ],
268
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
269
+ },
224
270
  "weekStart": {
225
271
  "type": "string",
226
272
  "enum": [
@@ -231,7 +277,7 @@
231
277
  },
232
278
  "cellRadius": {
233
279
  "type": "number",
234
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
280
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
235
281
  },
236
282
  "shape": {
237
283
  "type": "string",
@@ -373,6 +419,29 @@
373
419
  "type": "number",
374
420
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
375
421
  },
422
+ "centerLabel": {
423
+ "anyOf": [
424
+ {
425
+ "type": "string"
426
+ },
427
+ {
428
+ "type": "object",
429
+ "properties": {
430
+ "text": {
431
+ "type": "string"
432
+ },
433
+ "subtitle": {
434
+ "type": "string"
435
+ }
436
+ },
437
+ "required": [
438
+ "text"
439
+ ],
440
+ "additionalProperties": false
441
+ }
442
+ ],
443
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
444
+ },
376
445
  "cornerRadius": {
377
446
  "anyOf": [
378
447
  {
@@ -497,6 +566,29 @@
497
566
  "type": "number",
498
567
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
499
568
  },
569
+ "other": {
570
+ "anyOf": [
571
+ {
572
+ "type": "number"
573
+ },
574
+ {
575
+ "type": "object",
576
+ "properties": {
577
+ "threshold": {
578
+ "type": "number"
579
+ },
580
+ "label": {
581
+ "type": "string"
582
+ }
583
+ },
584
+ "required": [
585
+ "threshold"
586
+ ],
587
+ "additionalProperties": false
588
+ }
589
+ ],
590
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
591
+ },
500
592
  "weekStart": {
501
593
  "type": "string",
502
594
  "enum": [
@@ -507,7 +599,7 @@
507
599
  },
508
600
  "cellRadius": {
509
601
  "type": "number",
510
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
602
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
511
603
  },
512
604
  "shape": {
513
605
  "type": "string",
@@ -649,6 +741,29 @@
649
741
  "type": "number",
650
742
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
651
743
  },
744
+ "centerLabel": {
745
+ "anyOf": [
746
+ {
747
+ "type": "string"
748
+ },
749
+ {
750
+ "type": "object",
751
+ "properties": {
752
+ "text": {
753
+ "type": "string"
754
+ },
755
+ "subtitle": {
756
+ "type": "string"
757
+ }
758
+ },
759
+ "required": [
760
+ "text"
761
+ ],
762
+ "additionalProperties": false
763
+ }
764
+ ],
765
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
766
+ },
652
767
  "cornerRadius": {
653
768
  "anyOf": [
654
769
  {
@@ -773,6 +888,29 @@
773
888
  "type": "number",
774
889
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
775
890
  },
891
+ "other": {
892
+ "anyOf": [
893
+ {
894
+ "type": "number"
895
+ },
896
+ {
897
+ "type": "object",
898
+ "properties": {
899
+ "threshold": {
900
+ "type": "number"
901
+ },
902
+ "label": {
903
+ "type": "string"
904
+ }
905
+ },
906
+ "required": [
907
+ "threshold"
908
+ ],
909
+ "additionalProperties": false
910
+ }
911
+ ],
912
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
913
+ },
776
914
  "weekStart": {
777
915
  "type": "string",
778
916
  "enum": [
@@ -783,7 +921,7 @@
783
921
  },
784
922
  "cellRadius": {
785
923
  "type": "number",
786
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
924
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
787
925
  },
788
926
  "shape": {
789
927
  "type": "string",
@@ -925,6 +1063,29 @@
925
1063
  "type": "number",
926
1064
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
927
1065
  },
1066
+ "centerLabel": {
1067
+ "anyOf": [
1068
+ {
1069
+ "type": "string"
1070
+ },
1071
+ {
1072
+ "type": "object",
1073
+ "properties": {
1074
+ "text": {
1075
+ "type": "string"
1076
+ },
1077
+ "subtitle": {
1078
+ "type": "string"
1079
+ }
1080
+ },
1081
+ "required": [
1082
+ "text"
1083
+ ],
1084
+ "additionalProperties": false
1085
+ }
1086
+ ],
1087
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
1088
+ },
928
1089
  "cornerRadius": {
929
1090
  "anyOf": [
930
1091
  {
@@ -1049,6 +1210,29 @@
1049
1210
  "type": "number",
1050
1211
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
1051
1212
  },
1213
+ "other": {
1214
+ "anyOf": [
1215
+ {
1216
+ "type": "number"
1217
+ },
1218
+ {
1219
+ "type": "object",
1220
+ "properties": {
1221
+ "threshold": {
1222
+ "type": "number"
1223
+ },
1224
+ "label": {
1225
+ "type": "string"
1226
+ }
1227
+ },
1228
+ "required": [
1229
+ "threshold"
1230
+ ],
1231
+ "additionalProperties": false
1232
+ }
1233
+ ],
1234
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
1235
+ },
1052
1236
  "weekStart": {
1053
1237
  "type": "string",
1054
1238
  "enum": [
@@ -1059,7 +1243,7 @@
1059
1243
  },
1060
1244
  "cellRadius": {
1061
1245
  "type": "number",
1062
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
1246
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
1063
1247
  },
1064
1248
  "shape": {
1065
1249
  "type": "string",
@@ -1201,6 +1385,29 @@
1201
1385
  "type": "number",
1202
1386
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
1203
1387
  },
1388
+ "centerLabel": {
1389
+ "anyOf": [
1390
+ {
1391
+ "type": "string"
1392
+ },
1393
+ {
1394
+ "type": "object",
1395
+ "properties": {
1396
+ "text": {
1397
+ "type": "string"
1398
+ },
1399
+ "subtitle": {
1400
+ "type": "string"
1401
+ }
1402
+ },
1403
+ "required": [
1404
+ "text"
1405
+ ],
1406
+ "additionalProperties": false
1407
+ }
1408
+ ],
1409
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
1410
+ },
1204
1411
  "cornerRadius": {
1205
1412
  "anyOf": [
1206
1413
  {
@@ -1325,6 +1532,29 @@
1325
1532
  "type": "number",
1326
1533
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
1327
1534
  },
1535
+ "other": {
1536
+ "anyOf": [
1537
+ {
1538
+ "type": "number"
1539
+ },
1540
+ {
1541
+ "type": "object",
1542
+ "properties": {
1543
+ "threshold": {
1544
+ "type": "number"
1545
+ },
1546
+ "label": {
1547
+ "type": "string"
1548
+ }
1549
+ },
1550
+ "required": [
1551
+ "threshold"
1552
+ ],
1553
+ "additionalProperties": false
1554
+ }
1555
+ ],
1556
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
1557
+ },
1328
1558
  "weekStart": {
1329
1559
  "type": "string",
1330
1560
  "enum": [
@@ -1335,7 +1565,7 @@
1335
1565
  },
1336
1566
  "cellRadius": {
1337
1567
  "type": "number",
1338
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
1568
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
1339
1569
  },
1340
1570
  "shape": {
1341
1571
  "type": "string",
@@ -1477,6 +1707,29 @@
1477
1707
  "type": "number",
1478
1708
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
1479
1709
  },
1710
+ "centerLabel": {
1711
+ "anyOf": [
1712
+ {
1713
+ "type": "string"
1714
+ },
1715
+ {
1716
+ "type": "object",
1717
+ "properties": {
1718
+ "text": {
1719
+ "type": "string"
1720
+ },
1721
+ "subtitle": {
1722
+ "type": "string"
1723
+ }
1724
+ },
1725
+ "required": [
1726
+ "text"
1727
+ ],
1728
+ "additionalProperties": false
1729
+ }
1730
+ ],
1731
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
1732
+ },
1480
1733
  "cornerRadius": {
1481
1734
  "anyOf": [
1482
1735
  {
@@ -1601,6 +1854,29 @@
1601
1854
  "type": "number",
1602
1855
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
1603
1856
  },
1857
+ "other": {
1858
+ "anyOf": [
1859
+ {
1860
+ "type": "number"
1861
+ },
1862
+ {
1863
+ "type": "object",
1864
+ "properties": {
1865
+ "threshold": {
1866
+ "type": "number"
1867
+ },
1868
+ "label": {
1869
+ "type": "string"
1870
+ }
1871
+ },
1872
+ "required": [
1873
+ "threshold"
1874
+ ],
1875
+ "additionalProperties": false
1876
+ }
1877
+ ],
1878
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
1879
+ },
1604
1880
  "weekStart": {
1605
1881
  "type": "string",
1606
1882
  "enum": [
@@ -1611,7 +1887,7 @@
1611
1887
  },
1612
1888
  "cellRadius": {
1613
1889
  "type": "number",
1614
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
1890
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
1615
1891
  },
1616
1892
  "shape": {
1617
1893
  "type": "string",
@@ -1753,6 +2029,29 @@
1753
2029
  "type": "number",
1754
2030
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
1755
2031
  },
2032
+ "centerLabel": {
2033
+ "anyOf": [
2034
+ {
2035
+ "type": "string"
2036
+ },
2037
+ {
2038
+ "type": "object",
2039
+ "properties": {
2040
+ "text": {
2041
+ "type": "string"
2042
+ },
2043
+ "subtitle": {
2044
+ "type": "string"
2045
+ }
2046
+ },
2047
+ "required": [
2048
+ "text"
2049
+ ],
2050
+ "additionalProperties": false
2051
+ }
2052
+ ],
2053
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
2054
+ },
1756
2055
  "cornerRadius": {
1757
2056
  "anyOf": [
1758
2057
  {
@@ -1877,6 +2176,29 @@
1877
2176
  "type": "number",
1878
2177
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
1879
2178
  },
2179
+ "other": {
2180
+ "anyOf": [
2181
+ {
2182
+ "type": "number"
2183
+ },
2184
+ {
2185
+ "type": "object",
2186
+ "properties": {
2187
+ "threshold": {
2188
+ "type": "number"
2189
+ },
2190
+ "label": {
2191
+ "type": "string"
2192
+ }
2193
+ },
2194
+ "required": [
2195
+ "threshold"
2196
+ ],
2197
+ "additionalProperties": false
2198
+ }
2199
+ ],
2200
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
2201
+ },
1880
2202
  "weekStart": {
1881
2203
  "type": "string",
1882
2204
  "enum": [
@@ -1887,7 +2209,7 @@
1887
2209
  },
1888
2210
  "cellRadius": {
1889
2211
  "type": "number",
1890
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
2212
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
1891
2213
  },
1892
2214
  "shape": {
1893
2215
  "type": "string",
@@ -2029,6 +2351,29 @@
2029
2351
  "type": "number",
2030
2352
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
2031
2353
  },
2354
+ "centerLabel": {
2355
+ "anyOf": [
2356
+ {
2357
+ "type": "string"
2358
+ },
2359
+ {
2360
+ "type": "object",
2361
+ "properties": {
2362
+ "text": {
2363
+ "type": "string"
2364
+ },
2365
+ "subtitle": {
2366
+ "type": "string"
2367
+ }
2368
+ },
2369
+ "required": [
2370
+ "text"
2371
+ ],
2372
+ "additionalProperties": false
2373
+ }
2374
+ ],
2375
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
2376
+ },
2032
2377
  "cornerRadius": {
2033
2378
  "anyOf": [
2034
2379
  {
@@ -2153,6 +2498,29 @@
2153
2498
  "type": "number",
2154
2499
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
2155
2500
  },
2501
+ "other": {
2502
+ "anyOf": [
2503
+ {
2504
+ "type": "number"
2505
+ },
2506
+ {
2507
+ "type": "object",
2508
+ "properties": {
2509
+ "threshold": {
2510
+ "type": "number"
2511
+ },
2512
+ "label": {
2513
+ "type": "string"
2514
+ }
2515
+ },
2516
+ "required": [
2517
+ "threshold"
2518
+ ],
2519
+ "additionalProperties": false
2520
+ }
2521
+ ],
2522
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
2523
+ },
2156
2524
  "weekStart": {
2157
2525
  "type": "string",
2158
2526
  "enum": [
@@ -2163,7 +2531,7 @@
2163
2531
  },
2164
2532
  "cellRadius": {
2165
2533
  "type": "number",
2166
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
2534
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
2167
2535
  },
2168
2536
  "shape": {
2169
2537
  "type": "string",
@@ -2305,6 +2673,29 @@
2305
2673
  "type": "number",
2306
2674
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
2307
2675
  },
2676
+ "centerLabel": {
2677
+ "anyOf": [
2678
+ {
2679
+ "type": "string"
2680
+ },
2681
+ {
2682
+ "type": "object",
2683
+ "properties": {
2684
+ "text": {
2685
+ "type": "string"
2686
+ },
2687
+ "subtitle": {
2688
+ "type": "string"
2689
+ }
2690
+ },
2691
+ "required": [
2692
+ "text"
2693
+ ],
2694
+ "additionalProperties": false
2695
+ }
2696
+ ],
2697
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
2698
+ },
2308
2699
  "cornerRadius": {
2309
2700
  "anyOf": [
2310
2701
  {
@@ -2429,6 +2820,29 @@
2429
2820
  "type": "number",
2430
2821
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
2431
2822
  },
2823
+ "other": {
2824
+ "anyOf": [
2825
+ {
2826
+ "type": "number"
2827
+ },
2828
+ {
2829
+ "type": "object",
2830
+ "properties": {
2831
+ "threshold": {
2832
+ "type": "number"
2833
+ },
2834
+ "label": {
2835
+ "type": "string"
2836
+ }
2837
+ },
2838
+ "required": [
2839
+ "threshold"
2840
+ ],
2841
+ "additionalProperties": false
2842
+ }
2843
+ ],
2844
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
2845
+ },
2432
2846
  "weekStart": {
2433
2847
  "type": "string",
2434
2848
  "enum": [
@@ -2439,7 +2853,7 @@
2439
2853
  },
2440
2854
  "cellRadius": {
2441
2855
  "type": "number",
2442
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
2856
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
2443
2857
  },
2444
2858
  "shape": {
2445
2859
  "type": "string",
@@ -2581,6 +2995,29 @@
2581
2995
  "type": "number",
2582
2996
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
2583
2997
  },
2998
+ "centerLabel": {
2999
+ "anyOf": [
3000
+ {
3001
+ "type": "string"
3002
+ },
3003
+ {
3004
+ "type": "object",
3005
+ "properties": {
3006
+ "text": {
3007
+ "type": "string"
3008
+ },
3009
+ "subtitle": {
3010
+ "type": "string"
3011
+ }
3012
+ },
3013
+ "required": [
3014
+ "text"
3015
+ ],
3016
+ "additionalProperties": false
3017
+ }
3018
+ ],
3019
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
3020
+ },
2584
3021
  "cornerRadius": {
2585
3022
  "anyOf": [
2586
3023
  {
@@ -2705,6 +3142,29 @@
2705
3142
  "type": "number",
2706
3143
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
2707
3144
  },
3145
+ "other": {
3146
+ "anyOf": [
3147
+ {
3148
+ "type": "number"
3149
+ },
3150
+ {
3151
+ "type": "object",
3152
+ "properties": {
3153
+ "threshold": {
3154
+ "type": "number"
3155
+ },
3156
+ "label": {
3157
+ "type": "string"
3158
+ }
3159
+ },
3160
+ "required": [
3161
+ "threshold"
3162
+ ],
3163
+ "additionalProperties": false
3164
+ }
3165
+ ],
3166
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
3167
+ },
2708
3168
  "weekStart": {
2709
3169
  "type": "string",
2710
3170
  "enum": [
@@ -2715,7 +3175,7 @@
2715
3175
  },
2716
3176
  "cellRadius": {
2717
3177
  "type": "number",
2718
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
3178
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
2719
3179
  },
2720
3180
  "shape": {
2721
3181
  "type": "string",
@@ -2857,6 +3317,29 @@
2857
3317
  "type": "number",
2858
3318
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
2859
3319
  },
3320
+ "centerLabel": {
3321
+ "anyOf": [
3322
+ {
3323
+ "type": "string"
3324
+ },
3325
+ {
3326
+ "type": "object",
3327
+ "properties": {
3328
+ "text": {
3329
+ "type": "string"
3330
+ },
3331
+ "subtitle": {
3332
+ "type": "string"
3333
+ }
3334
+ },
3335
+ "required": [
3336
+ "text"
3337
+ ],
3338
+ "additionalProperties": false
3339
+ }
3340
+ ],
3341
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
3342
+ },
2860
3343
  "cornerRadius": {
2861
3344
  "anyOf": [
2862
3345
  {
@@ -2981,6 +3464,29 @@
2981
3464
  "type": "number",
2982
3465
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
2983
3466
  },
3467
+ "other": {
3468
+ "anyOf": [
3469
+ {
3470
+ "type": "number"
3471
+ },
3472
+ {
3473
+ "type": "object",
3474
+ "properties": {
3475
+ "threshold": {
3476
+ "type": "number"
3477
+ },
3478
+ "label": {
3479
+ "type": "string"
3480
+ }
3481
+ },
3482
+ "required": [
3483
+ "threshold"
3484
+ ],
3485
+ "additionalProperties": false
3486
+ }
3487
+ ],
3488
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
3489
+ },
2984
3490
  "weekStart": {
2985
3491
  "type": "string",
2986
3492
  "enum": [
@@ -2991,7 +3497,7 @@
2991
3497
  },
2992
3498
  "cellRadius": {
2993
3499
  "type": "number",
2994
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
3500
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
2995
3501
  },
2996
3502
  "shape": {
2997
3503
  "type": "string",
@@ -3133,6 +3639,29 @@
3133
3639
  "type": "number",
3134
3640
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
3135
3641
  },
3642
+ "centerLabel": {
3643
+ "anyOf": [
3644
+ {
3645
+ "type": "string"
3646
+ },
3647
+ {
3648
+ "type": "object",
3649
+ "properties": {
3650
+ "text": {
3651
+ "type": "string"
3652
+ },
3653
+ "subtitle": {
3654
+ "type": "string"
3655
+ }
3656
+ },
3657
+ "required": [
3658
+ "text"
3659
+ ],
3660
+ "additionalProperties": false
3661
+ }
3662
+ ],
3663
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
3664
+ },
3136
3665
  "cornerRadius": {
3137
3666
  "anyOf": [
3138
3667
  {
@@ -3257,6 +3786,29 @@
3257
3786
  "type": "number",
3258
3787
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
3259
3788
  },
3789
+ "other": {
3790
+ "anyOf": [
3791
+ {
3792
+ "type": "number"
3793
+ },
3794
+ {
3795
+ "type": "object",
3796
+ "properties": {
3797
+ "threshold": {
3798
+ "type": "number"
3799
+ },
3800
+ "label": {
3801
+ "type": "string"
3802
+ }
3803
+ },
3804
+ "required": [
3805
+ "threshold"
3806
+ ],
3807
+ "additionalProperties": false
3808
+ }
3809
+ ],
3810
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
3811
+ },
3260
3812
  "weekStart": {
3261
3813
  "type": "string",
3262
3814
  "enum": [
@@ -3267,7 +3819,7 @@
3267
3819
  },
3268
3820
  "cellRadius": {
3269
3821
  "type": "number",
3270
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
3822
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
3271
3823
  },
3272
3824
  "shape": {
3273
3825
  "type": "string",
@@ -3409,6 +3961,29 @@
3409
3961
  "type": "number",
3410
3962
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
3411
3963
  },
3964
+ "centerLabel": {
3965
+ "anyOf": [
3966
+ {
3967
+ "type": "string"
3968
+ },
3969
+ {
3970
+ "type": "object",
3971
+ "properties": {
3972
+ "text": {
3973
+ "type": "string"
3974
+ },
3975
+ "subtitle": {
3976
+ "type": "string"
3977
+ }
3978
+ },
3979
+ "required": [
3980
+ "text"
3981
+ ],
3982
+ "additionalProperties": false
3983
+ }
3984
+ ],
3985
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
3986
+ },
3412
3987
  "cornerRadius": {
3413
3988
  "anyOf": [
3414
3989
  {
@@ -3533,6 +4108,29 @@
3533
4108
  "type": "number",
3534
4109
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
3535
4110
  },
4111
+ "other": {
4112
+ "anyOf": [
4113
+ {
4114
+ "type": "number"
4115
+ },
4116
+ {
4117
+ "type": "object",
4118
+ "properties": {
4119
+ "threshold": {
4120
+ "type": "number"
4121
+ },
4122
+ "label": {
4123
+ "type": "string"
4124
+ }
4125
+ },
4126
+ "required": [
4127
+ "threshold"
4128
+ ],
4129
+ "additionalProperties": false
4130
+ }
4131
+ ],
4132
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
4133
+ },
3536
4134
  "weekStart": {
3537
4135
  "type": "string",
3538
4136
  "enum": [
@@ -3543,7 +4141,7 @@
3543
4141
  },
3544
4142
  "cellRadius": {
3545
4143
  "type": "number",
3546
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
4144
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
3547
4145
  },
3548
4146
  "shape": {
3549
4147
  "type": "string",
@@ -3685,6 +4283,29 @@
3685
4283
  "type": "number",
3686
4284
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
3687
4285
  },
4286
+ "centerLabel": {
4287
+ "anyOf": [
4288
+ {
4289
+ "type": "string"
4290
+ },
4291
+ {
4292
+ "type": "object",
4293
+ "properties": {
4294
+ "text": {
4295
+ "type": "string"
4296
+ },
4297
+ "subtitle": {
4298
+ "type": "string"
4299
+ }
4300
+ },
4301
+ "required": [
4302
+ "text"
4303
+ ],
4304
+ "additionalProperties": false
4305
+ }
4306
+ ],
4307
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
4308
+ },
3688
4309
  "cornerRadius": {
3689
4310
  "anyOf": [
3690
4311
  {
@@ -3809,6 +4430,29 @@
3809
4430
  "type": "number",
3810
4431
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
3811
4432
  },
4433
+ "other": {
4434
+ "anyOf": [
4435
+ {
4436
+ "type": "number"
4437
+ },
4438
+ {
4439
+ "type": "object",
4440
+ "properties": {
4441
+ "threshold": {
4442
+ "type": "number"
4443
+ },
4444
+ "label": {
4445
+ "type": "string"
4446
+ }
4447
+ },
4448
+ "required": [
4449
+ "threshold"
4450
+ ],
4451
+ "additionalProperties": false
4452
+ }
4453
+ ],
4454
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
4455
+ },
3812
4456
  "weekStart": {
3813
4457
  "type": "string",
3814
4458
  "enum": [
@@ -3819,7 +4463,7 @@
3819
4463
  },
3820
4464
  "cellRadius": {
3821
4465
  "type": "number",
3822
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
4466
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
3823
4467
  },
3824
4468
  "shape": {
3825
4469
  "type": "string",
@@ -3961,6 +4605,29 @@
3961
4605
  "type": "number",
3962
4606
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
3963
4607
  },
4608
+ "centerLabel": {
4609
+ "anyOf": [
4610
+ {
4611
+ "type": "string"
4612
+ },
4613
+ {
4614
+ "type": "object",
4615
+ "properties": {
4616
+ "text": {
4617
+ "type": "string"
4618
+ },
4619
+ "subtitle": {
4620
+ "type": "string"
4621
+ }
4622
+ },
4623
+ "required": [
4624
+ "text"
4625
+ ],
4626
+ "additionalProperties": false
4627
+ }
4628
+ ],
4629
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
4630
+ },
3964
4631
  "cornerRadius": {
3965
4632
  "anyOf": [
3966
4633
  {
@@ -4085,6 +4752,29 @@
4085
4752
  "type": "number",
4086
4753
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
4087
4754
  },
4755
+ "other": {
4756
+ "anyOf": [
4757
+ {
4758
+ "type": "number"
4759
+ },
4760
+ {
4761
+ "type": "object",
4762
+ "properties": {
4763
+ "threshold": {
4764
+ "type": "number"
4765
+ },
4766
+ "label": {
4767
+ "type": "string"
4768
+ }
4769
+ },
4770
+ "required": [
4771
+ "threshold"
4772
+ ],
4773
+ "additionalProperties": false
4774
+ }
4775
+ ],
4776
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
4777
+ },
4088
4778
  "weekStart": {
4089
4779
  "type": "string",
4090
4780
  "enum": [
@@ -4095,7 +4785,7 @@
4095
4785
  },
4096
4786
  "cellRadius": {
4097
4787
  "type": "number",
4098
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
4788
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
4099
4789
  },
4100
4790
  "shape": {
4101
4791
  "type": "string",
@@ -4237,6 +4927,29 @@
4237
4927
  "type": "number",
4238
4928
  "description": "End angle in radians for arc marks. Defaults to 2*Math.PI (full pie/donut). See `startAngle`. Only meaningful when `type` is `'arc'`."
4239
4929
  },
4930
+ "centerLabel": {
4931
+ "anyOf": [
4932
+ {
4933
+ "type": "string"
4934
+ },
4935
+ {
4936
+ "type": "object",
4937
+ "properties": {
4938
+ "text": {
4939
+ "type": "string"
4940
+ },
4941
+ "subtitle": {
4942
+ "type": "string"
4943
+ }
4944
+ },
4945
+ "required": [
4946
+ "text"
4947
+ ],
4948
+ "additionalProperties": false
4949
+ }
4950
+ ],
4951
+ "description": "Donut center stat. A string renders one line; the object form adds a caption under it. Decorative (the number is already in the slices), and only meaningful when `type` is `'arc'` with an inner radius."
4952
+ },
4240
4953
  "cornerRadius": {
4241
4954
  "anyOf": [
4242
4955
  {
@@ -4361,6 +5074,29 @@
4361
5074
  "type": "number",
4362
5075
  "description": "Number of columns in a waffle grid. Only meaningful when `type` is `'waffle'`. Rows derive from `units / columns`. Default 10."
4363
5076
  },
5077
+ "other": {
5078
+ "anyOf": [
5079
+ {
5080
+ "type": "number"
5081
+ },
5082
+ {
5083
+ "type": "object",
5084
+ "properties": {
5085
+ "threshold": {
5086
+ "type": "number"
5087
+ },
5088
+ "label": {
5089
+ "type": "string"
5090
+ }
5091
+ },
5092
+ "required": [
5093
+ "threshold"
5094
+ ],
5095
+ "additionalProperties": false
5096
+ }
5097
+ ],
5098
+ "description": "Opt-in \"Other\" bucketing for waffle grids. Only meaningful when `type` is `'waffle'`. Categories whose share of the total falls below `threshold` (a fraction, so `0.05` is 5%) merge into one trailing category. Off by default: bucketing is an editorial decision, not a layout default. Same shape as `SankeySpec.other`."
5099
+ },
4364
5100
  "weekStart": {
4365
5101
  "type": "string",
4366
5102
  "enum": [
@@ -4371,7 +5107,7 @@
4371
5107
  },
4372
5108
  "cellRadius": {
4373
5109
  "type": "number",
4374
- "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 1."
5110
+ "description": "Corner radius in pixels for calendar day cells. Only meaningful when `type` is `'calendar'`. Defaults to 2."
4375
5111
  },
4376
5112
  "shape": {
4377
5113
  "type": "string",
@@ -5958,7 +6694,7 @@
5958
6694
  "$ref": "#/definitions/ChromeText"
5959
6695
  }
5960
6696
  ],
5961
- "description": "Right-anchored brand block on the footer row, paired with a small accent dot to its left. Visually balances the source/byline left-anchored text. When set, suppresses the default `tryOpenData.ai` watermark for this chart."
6697
+ "description": "Right-anchored brand block on the footer row, paired with a small accent dot to its left. Visually balances the source/byline left-anchored text. When set, suppresses the default `OpenData` watermark for this chart."
5962
6698
  }
5963
6699
  },
5964
6700
  "additionalProperties": false,
@@ -6645,7 +7381,18 @@
6645
7381
  "items": {
6646
7382
  "type": "string"
6647
7383
  },
6648
- "description": "Categorical palette for nominal data (array of CSS color strings)."
7384
+ "description": "Categorical stroke palette for nominal data (array of CSS color strings)."
7385
+ },
7386
+ "categoricalFill": {
7387
+ "type": "array",
7388
+ "items": {
7389
+ "type": "string"
7390
+ },
7391
+ "description": "Categorical palette for area-filling marks (bar, area, arc, waffle, calendar, rect). Defaults to `categorical` when only that is set."
7392
+ },
7393
+ "hairline": {
7394
+ "$ref": "#/definitions/TokenValue",
7395
+ "description": "Hairline color for axis lines and separators. Accepts a TokenValue for light/dark pairs."
6649
7396
  },
6650
7397
  "sequential": {
6651
7398
  "type": "object",
@@ -6756,15 +7503,15 @@
6756
7503
  "properties": {
6757
7504
  "normal": {
6758
7505
  "type": "number",
6759
- "description": "Normal text weight. Default: 450."
7506
+ "description": "Normal text weight. Default: 400."
6760
7507
  },
6761
7508
  "medium": {
6762
7509
  "type": "number",
6763
- "description": "Medium text weight. Default: 550."
7510
+ "description": "Medium text weight. Default: 500."
6764
7511
  },
6765
7512
  "semibold": {
6766
7513
  "type": "number",
6767
- "description": "Semibold text weight. Default: 590."
7514
+ "description": "Semibold text weight. Default: 600."
6768
7515
  },
6769
7516
  "bold": {
6770
7517
  "type": "number",
@@ -6890,6 +7637,30 @@
6890
7637
  "additionalProperties": false,
6891
7638
  "description": "Per-element chrome style overrides. Pass a plain string for color-only (backward-compatible), or a ChromeThemeOverride object for full typography control (color, fontSize, fontWeight, lineHeight)."
6892
7639
  },
7640
+ "rule": {
7641
+ "type": "object",
7642
+ "properties": {
7643
+ "color": {
7644
+ "$ref": "#/definitions/TokenValue",
7645
+ "description": "Rule color. Accepts a TokenValue for light/dark pairs."
7646
+ },
7647
+ "width": {
7648
+ "type": "number",
7649
+ "description": "Rule length in pixels."
7650
+ },
7651
+ "thickness": {
7652
+ "type": "number",
7653
+ "description": "Rule height in pixels."
7654
+ }
7655
+ },
7656
+ "required": [
7657
+ "color",
7658
+ "width",
7659
+ "thickness"
7660
+ ],
7661
+ "additionalProperties": false,
7662
+ "description": "Editorial rule above the chrome block: a short colored bar (the Economist/FT masthead device). Omit for no rule."
7663
+ },
6893
7664
  "seriesStrategy": {
6894
7665
  "$ref": "#/definitions/SeriesStrategy",
6895
7666
  "description": "Series color assignment strategy. Default: 'palette' (full categorical palette always, zero visual drift)."
@@ -9190,7 +9961,7 @@
9190
9961
  },
9191
9962
  "watermark": {
9192
9963
  "type": "boolean",
9193
- "description": "Whether to show the tryOpenData.ai watermark. Defaults to true; auto-hides when the container is under 200px tall (the cramped height class) unless explicitly set."
9964
+ "description": "Whether to show the OpenData watermark. Defaults to true; auto-hides when the container is under 200px tall (the cramped height class) unless explicitly set."
9194
9965
  },
9195
9966
  "hiddenSeries": {
9196
9967
  "type": "array",