@opendata-ai/openchart-core 8.9.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.
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "darkMode": {
60
60
  "$ref": "#/definitions/DarkMode",
61
- "description": "Dark mode behavior."
61
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
62
62
  },
63
63
  "watermark": {
64
64
  "type": "boolean",
@@ -664,6 +664,34 @@
664
664
  "$ref": "#/definitions/TokenValue",
665
665
  "description": "Annotation text color. Accepts a TokenValue for light/dark pairs."
666
666
  },
667
+ "annotationLabel": {
668
+ "$ref": "#/definitions/TokenValue",
669
+ "description": "Annotation label color. Accepts a TokenValue light/dark pair."
670
+ },
671
+ "annotationMuted": {
672
+ "$ref": "#/definitions/TokenValue",
673
+ "description": "Annotation muted color. Accepts a TokenValue light/dark pair."
674
+ },
675
+ "annotationLeader": {
676
+ "$ref": "#/definitions/TokenValue",
677
+ "description": "Annotation leader color. Accepts a TokenValue light/dark pair."
678
+ },
679
+ "annotationRule": {
680
+ "$ref": "#/definitions/TokenValue",
681
+ "description": "Annotation rule color. Accepts a TokenValue light/dark pair."
682
+ },
683
+ "annotationRangeFill": {
684
+ "$ref": "#/definitions/TokenValue",
685
+ "description": "Annotation rangefill color. Accepts a TokenValue light/dark pair."
686
+ },
687
+ "annotationMarkerFill": {
688
+ "$ref": "#/definitions/TokenValue",
689
+ "description": "Annotation markerfill color. Accepts a TokenValue light/dark pair."
690
+ },
691
+ "annotationPlate": {
692
+ "$ref": "#/definitions/TokenValue",
693
+ "description": "Annotation plate color. Accepts a TokenValue light/dark pair."
694
+ },
667
695
  "positive": {
668
696
  "$ref": "#/definitions/TokenValue",
669
697
  "description": "Semantic color for positive/up-trend values. Accepts a TokenValue for light/dark pairs."
@@ -796,10 +824,10 @@
796
824
  "eyebrow": {
797
825
  "anyOf": [
798
826
  {
799
- "type": "string"
827
+ "$ref": "#/definitions/ChromeThemeOverride"
800
828
  },
801
829
  {
802
- "$ref": "#/definitions/ChromeThemeOverride"
830
+ "type": "string"
803
831
  }
804
832
  ],
805
833
  "description": "Eyebrow (kicker) style override."
@@ -807,10 +835,10 @@
807
835
  "title": {
808
836
  "anyOf": [
809
837
  {
810
- "type": "string"
838
+ "$ref": "#/definitions/ChromeThemeOverride"
811
839
  },
812
840
  {
813
- "$ref": "#/definitions/ChromeThemeOverride"
841
+ "type": "string"
814
842
  }
815
843
  ],
816
844
  "description": "Title style override."
@@ -818,10 +846,10 @@
818
846
  "subtitle": {
819
847
  "anyOf": [
820
848
  {
821
- "type": "string"
849
+ "$ref": "#/definitions/ChromeThemeOverride"
822
850
  },
823
851
  {
824
- "$ref": "#/definitions/ChromeThemeOverride"
852
+ "type": "string"
825
853
  }
826
854
  ],
827
855
  "description": "Subtitle style override."
@@ -829,10 +857,10 @@
829
857
  "source": {
830
858
  "anyOf": [
831
859
  {
832
- "type": "string"
860
+ "$ref": "#/definitions/ChromeThemeOverride"
833
861
  },
834
862
  {
835
- "$ref": "#/definitions/ChromeThemeOverride"
863
+ "type": "string"
836
864
  }
837
865
  ],
838
866
  "description": "Source/attribution style override."
@@ -840,10 +868,10 @@
840
868
  "byline": {
841
869
  "anyOf": [
842
870
  {
843
- "type": "string"
871
+ "$ref": "#/definitions/ChromeThemeOverride"
844
872
  },
845
873
  {
846
- "$ref": "#/definitions/ChromeThemeOverride"
874
+ "type": "string"
847
875
  }
848
876
  ],
849
877
  "description": "Byline style override."
@@ -851,10 +879,10 @@
851
879
  "footer": {
852
880
  "anyOf": [
853
881
  {
854
- "type": "string"
882
+ "$ref": "#/definitions/ChromeThemeOverride"
855
883
  },
856
884
  {
857
- "$ref": "#/definitions/ChromeThemeOverride"
885
+ "type": "string"
858
886
  }
859
887
  ],
860
888
  "description": "Footer style override."
@@ -1012,7 +1040,7 @@
1012
1040
  "subtle",
1013
1041
  "legacy"
1014
1042
  ],
1015
- "description": "Opt-in motion language. `legacy` preserves the v8 tween timing."
1043
+ "description": "Opt-in motion language."
1016
1044
  },
1017
1045
  "AnimationConfig": {
1018
1046
  "type": "object",
@@ -8151,6 +8151,17 @@
8151
8151
  "type": "string",
8152
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."
8153
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
+ },
8154
8165
  "dot": {
8155
8166
  "anyOf": [
8156
8167
  {
@@ -8283,6 +8294,10 @@
8283
8294
  "$ref": "#/definitions/ConnectorType",
8284
8295
  "description": "Connector style."
8285
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
+ },
8286
8301
  "arrow": {
8287
8302
  "type": "boolean",
8288
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."
@@ -8458,6 +8473,16 @@
8458
8473
  "$ref": "#/definitions/AnnotationOffset",
8459
8474
  "description": "Pixel offset for the reference line label."
8460
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
+ },
8461
8486
  "labelAnchor": {
8462
8487
  "$ref": "#/definitions/AnnotationAnchor",
8463
8488
  "description": "Anchor direction for the reference line label."
@@ -8631,6 +8656,13 @@
8631
8656
  "ResponsiveConfig": {
8632
8657
  "type": "object",
8633
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
+ },
8634
8666
  "preserveEnd": {
8635
8667
  "type": "boolean",
8636
8668
  "description": "Preserve the final temporal boundary before thinning interior ticks."
@@ -8723,6 +8755,34 @@
8723
8755
  "$ref": "#/definitions/TokenValue",
8724
8756
  "description": "Annotation text color. Accepts a TokenValue for light/dark pairs."
8725
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
+ },
8726
8786
  "positive": {
8727
8787
  "$ref": "#/definitions/TokenValue",
8728
8788
  "description": "Semantic color for positive/up-trend values. Accepts a TokenValue for light/dark pairs."
@@ -8855,10 +8915,10 @@
8855
8915
  "eyebrow": {
8856
8916
  "anyOf": [
8857
8917
  {
8858
- "type": "string"
8918
+ "$ref": "#/definitions/ChromeThemeOverride"
8859
8919
  },
8860
8920
  {
8861
- "$ref": "#/definitions/ChromeThemeOverride"
8921
+ "type": "string"
8862
8922
  }
8863
8923
  ],
8864
8924
  "description": "Eyebrow (kicker) style override."
@@ -8866,10 +8926,10 @@
8866
8926
  "title": {
8867
8927
  "anyOf": [
8868
8928
  {
8869
- "type": "string"
8929
+ "$ref": "#/definitions/ChromeThemeOverride"
8870
8930
  },
8871
8931
  {
8872
- "$ref": "#/definitions/ChromeThemeOverride"
8932
+ "type": "string"
8873
8933
  }
8874
8934
  ],
8875
8935
  "description": "Title style override."
@@ -8877,10 +8937,10 @@
8877
8937
  "subtitle": {
8878
8938
  "anyOf": [
8879
8939
  {
8880
- "type": "string"
8940
+ "$ref": "#/definitions/ChromeThemeOverride"
8881
8941
  },
8882
8942
  {
8883
- "$ref": "#/definitions/ChromeThemeOverride"
8943
+ "type": "string"
8884
8944
  }
8885
8945
  ],
8886
8946
  "description": "Subtitle style override."
@@ -8888,10 +8948,10 @@
8888
8948
  "source": {
8889
8949
  "anyOf": [
8890
8950
  {
8891
- "type": "string"
8951
+ "$ref": "#/definitions/ChromeThemeOverride"
8892
8952
  },
8893
8953
  {
8894
- "$ref": "#/definitions/ChromeThemeOverride"
8954
+ "type": "string"
8895
8955
  }
8896
8956
  ],
8897
8957
  "description": "Source/attribution style override."
@@ -8899,10 +8959,10 @@
8899
8959
  "byline": {
8900
8960
  "anyOf": [
8901
8961
  {
8902
- "type": "string"
8962
+ "$ref": "#/definitions/ChromeThemeOverride"
8903
8963
  },
8904
8964
  {
8905
- "$ref": "#/definitions/ChromeThemeOverride"
8965
+ "type": "string"
8906
8966
  }
8907
8967
  ],
8908
8968
  "description": "Byline style override."
@@ -8910,10 +8970,10 @@
8910
8970
  "footer": {
8911
8971
  "anyOf": [
8912
8972
  {
8913
- "type": "string"
8973
+ "$ref": "#/definitions/ChromeThemeOverride"
8914
8974
  },
8915
8975
  {
8916
- "$ref": "#/definitions/ChromeThemeOverride"
8976
+ "type": "string"
8917
8977
  }
8918
8978
  ],
8919
8979
  "description": "Footer style override."
@@ -9109,7 +9169,7 @@
9109
9169
  "subtle",
9110
9170
  "legacy"
9111
9171
  ],
9112
- "description": "Opt-in motion language. `legacy` preserves the v8 tween timing."
9172
+ "description": "Opt-in motion language."
9113
9173
  },
9114
9174
  "AnimationConfig": {
9115
9175
  "type": "object",
@@ -11492,7 +11552,7 @@
11492
11552
  },
11493
11553
  "darkMode": {
11494
11554
  "$ref": "#/definitions/DarkMode",
11495
- "description": "Dark mode behavior. Defaults to \"off\"."
11555
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
11496
11556
  },
11497
11557
  "watermark": {
11498
11558
  "type": "boolean",
@@ -11996,7 +12056,7 @@
11996
12056
  },
11997
12057
  "darkMode": {
11998
12058
  "$ref": "#/definitions/DarkMode",
11999
- "description": "Dark mode behavior. Defaults to \"off\"."
12059
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
12000
12060
  },
12001
12061
  "watermark": {
12002
12062
  "type": "boolean",
@@ -12537,7 +12597,7 @@
12537
12597
  },
12538
12598
  "darkMode": {
12539
12599
  "$ref": "#/definitions/DarkMode",
12540
- "description": "Dark mode behavior. Defaults to \"off\"."
12600
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
12541
12601
  },
12542
12602
  "watermark": {
12543
12603
  "type": "boolean",
@@ -13078,7 +13138,7 @@
13078
13138
  },
13079
13139
  "darkMode": {
13080
13140
  "$ref": "#/definitions/DarkMode",
13081
- "description": "Dark mode behavior. Defaults to \"off\"."
13141
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
13082
13142
  },
13083
13143
  "watermark": {
13084
13144
  "type": "boolean",
@@ -13619,7 +13679,7 @@
13619
13679
  },
13620
13680
  "darkMode": {
13621
13681
  "$ref": "#/definitions/DarkMode",
13622
- "description": "Dark mode behavior. Defaults to \"off\"."
13682
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
13623
13683
  },
13624
13684
  "watermark": {
13625
13685
  "type": "boolean",
@@ -14160,7 +14220,7 @@
14160
14220
  },
14161
14221
  "darkMode": {
14162
14222
  "$ref": "#/definitions/DarkMode",
14163
- "description": "Dark mode behavior. Defaults to \"off\"."
14223
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
14164
14224
  },
14165
14225
  "watermark": {
14166
14226
  "type": "boolean",
@@ -14701,7 +14761,7 @@
14701
14761
  },
14702
14762
  "darkMode": {
14703
14763
  "$ref": "#/definitions/DarkMode",
14704
- "description": "Dark mode behavior. Defaults to \"off\"."
14764
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
14705
14765
  },
14706
14766
  "watermark": {
14707
14767
  "type": "boolean",
@@ -15242,7 +15302,7 @@
15242
15302
  },
15243
15303
  "darkMode": {
15244
15304
  "$ref": "#/definitions/DarkMode",
15245
- "description": "Dark mode behavior. Defaults to \"off\"."
15305
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
15246
15306
  },
15247
15307
  "watermark": {
15248
15308
  "type": "boolean",
@@ -15783,7 +15843,7 @@
15783
15843
  },
15784
15844
  "darkMode": {
15785
15845
  "$ref": "#/definitions/DarkMode",
15786
- "description": "Dark mode behavior. Defaults to \"off\"."
15846
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
15787
15847
  },
15788
15848
  "watermark": {
15789
15849
  "type": "boolean",
@@ -16324,7 +16384,7 @@
16324
16384
  },
16325
16385
  "darkMode": {
16326
16386
  "$ref": "#/definitions/DarkMode",
16327
- "description": "Dark mode behavior. Defaults to \"off\"."
16387
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
16328
16388
  },
16329
16389
  "watermark": {
16330
16390
  "type": "boolean",
@@ -16865,7 +16925,7 @@
16865
16925
  },
16866
16926
  "darkMode": {
16867
16927
  "$ref": "#/definitions/DarkMode",
16868
- "description": "Dark mode behavior. Defaults to \"off\"."
16928
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
16869
16929
  },
16870
16930
  "watermark": {
16871
16931
  "type": "boolean",
@@ -17406,7 +17466,7 @@
17406
17466
  },
17407
17467
  "darkMode": {
17408
17468
  "$ref": "#/definitions/DarkMode",
17409
- "description": "Dark mode behavior. Defaults to \"off\"."
17469
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
17410
17470
  },
17411
17471
  "watermark": {
17412
17472
  "type": "boolean",
@@ -17947,7 +18007,7 @@
17947
18007
  },
17948
18008
  "darkMode": {
17949
18009
  "$ref": "#/definitions/DarkMode",
17950
- "description": "Dark mode behavior. Defaults to \"off\"."
18010
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
17951
18011
  },
17952
18012
  "watermark": {
17953
18013
  "type": "boolean",
@@ -18488,7 +18548,7 @@
18488
18548
  },
18489
18549
  "darkMode": {
18490
18550
  "$ref": "#/definitions/DarkMode",
18491
- "description": "Dark mode behavior. Defaults to \"off\"."
18551
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
18492
18552
  },
18493
18553
  "watermark": {
18494
18554
  "type": "boolean",
@@ -19029,7 +19089,7 @@
19029
19089
  },
19030
19090
  "darkMode": {
19031
19091
  "$ref": "#/definitions/DarkMode",
19032
- "description": "Dark mode behavior. Defaults to \"off\"."
19092
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
19033
19093
  },
19034
19094
  "watermark": {
19035
19095
  "type": "boolean",
@@ -19570,7 +19630,7 @@
19570
19630
  },
19571
19631
  "darkMode": {
19572
19632
  "$ref": "#/definitions/DarkMode",
19573
- "description": "Dark mode behavior. Defaults to \"off\"."
19633
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
19574
19634
  },
19575
19635
  "watermark": {
19576
19636
  "type": "boolean",
@@ -20111,7 +20171,7 @@
20111
20171
  },
20112
20172
  "darkMode": {
20113
20173
  "$ref": "#/definitions/DarkMode",
20114
- "description": "Dark mode behavior. Defaults to \"off\"."
20174
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
20115
20175
  },
20116
20176
  "watermark": {
20117
20177
  "type": "boolean",
@@ -20652,7 +20712,7 @@
20652
20712
  },
20653
20713
  "darkMode": {
20654
20714
  "$ref": "#/definitions/DarkMode",
20655
- "description": "Dark mode behavior. Defaults to \"off\"."
20715
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
20656
20716
  },
20657
20717
  "watermark": {
20658
20718
  "type": "boolean",
@@ -21193,7 +21253,7 @@
21193
21253
  },
21194
21254
  "darkMode": {
21195
21255
  "$ref": "#/definitions/DarkMode",
21196
- "description": "Dark mode behavior. Defaults to \"off\"."
21256
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
21197
21257
  },
21198
21258
  "watermark": {
21199
21259
  "type": "boolean",
@@ -21377,7 +21437,7 @@
21377
21437
  },
21378
21438
  "darkMode": {
21379
21439
  "$ref": "#/definitions/DarkMode",
21380
- "description": "Dark mode behavior. Defaults to \"off\"."
21440
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
21381
21441
  },
21382
21442
  "watermark": {
21383
21443
  "type": "boolean",
@@ -21468,7 +21528,7 @@
21468
21528
  },
21469
21529
  "darkMode": {
21470
21530
  "$ref": "#/definitions/DarkMode",
21471
- "description": "Dark mode behavior."
21531
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
21472
21532
  },
21473
21533
  "watermark": {
21474
21534
  "type": "boolean",
@@ -21893,7 +21953,7 @@
21893
21953
  },
21894
21954
  "darkMode": {
21895
21955
  "$ref": "#/definitions/DarkMode",
21896
- "description": "Dark mode behavior."
21956
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
21897
21957
  },
21898
21958
  "animation": {
21899
21959
  "$ref": "#/definitions/GraphAnimationSpec",
@@ -22433,7 +22493,7 @@
22433
22493
  },
22434
22494
  "darkMode": {
22435
22495
  "$ref": "#/definitions/DarkMode",
22436
- "description": "Dark mode behavior. Defaults to \"off\"."
22496
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
22437
22497
  },
22438
22498
  "watermark": {
22439
22499
  "type": "boolean",
@@ -22730,7 +22790,7 @@
22730
22790
  },
22731
22791
  "darkMode": {
22732
22792
  "$ref": "#/definitions/DarkMode",
22733
- "description": "Dark mode behavior. Defaults to \"off\"."
22793
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
22734
22794
  },
22735
22795
  "watermark": {
22736
22796
  "type": "boolean",
@@ -22742,8 +22802,7 @@
22742
22802
  },
22743
22803
  "valueFormat": {
22744
22804
  "type": "string",
22745
- "description": "d3-format string applied to tile values, legend labels, and tooltips. Examples: \".1f\" for one decimal, \"$,.0f\" for currency, \"~s\" for SI.",
22746
- "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."
22747
22806
  }
22748
22807
  },
22749
22808
  "required": [
@@ -22844,7 +22903,7 @@
22844
22903
  },
22845
22904
  "darkMode": {
22846
22905
  "$ref": "#/definitions/DarkMode",
22847
- "description": "Dark mode behavior. Defaults to \"off\"."
22906
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
22848
22907
  },
22849
22908
  "watermark": {
22850
22909
  "type": "boolean",
@@ -23168,7 +23227,7 @@
23168
23227
  },
23169
23228
  "darkMode": {
23170
23229
  "$ref": "#/definitions/DarkMode",
23171
- "description": "Dark mode behavior. Defaults to \"off\"."
23230
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
23172
23231
  },
23173
23232
  "watermark": {
23174
23233
  "type": "boolean",
@@ -23372,7 +23431,7 @@
23372
23431
  },
23373
23432
  "darkMode": {
23374
23433
  "$ref": "#/definitions/DarkMode",
23375
- "description": "Dark mode behavior. Defaults to \"off\"."
23434
+ "deprecated": "Use the mount darkMode option; the spec field has no effect."
23376
23435
  },
23377
23436
  "watermark": {
23378
23437
  "type": "boolean",