@opendata-ai/openchart-core 9.2.3 → 9.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.
@@ -132,7 +132,7 @@
132
132
  "properties": {
133
133
  "innerRadius": {
134
134
  "type": "number",
135
- "description": "Inner radius for arc marks. >0 produces a donut, 0 or omitted produces a pie."
135
+ "description": "Inner radius for arc marks: 0 for a pie; a value below 1 is a fraction of the outer radius (0.6 = 60%); 1 or more is pixels."
136
136
  },
137
137
  "outerRadius": {
138
138
  "type": "number",
@@ -2698,6 +2698,17 @@
2698
2698
  "type": "number",
2699
2699
  "description": "Override tick count. Engine picks a sensible default if omitted."
2700
2700
  },
2701
+ "tickStep": {
2702
+ "anyOf": [
2703
+ {
2704
+ "type": "number"
2705
+ },
2706
+ {
2707
+ "$ref": "#/definitions/TimeTickStep"
2708
+ }
2709
+ ],
2710
+ "description": "Distance between ticks: a number in data units on a quantitative axis, a `TimeTickStep` on a temporal axis. `values` wins over `tickStep`, which wins over `tickCount`."
2711
+ },
2701
2712
  "grid": {
2702
2713
  "type": "boolean",
2703
2714
  "description": "Whether to show gridlines for this axis."
@@ -2778,9 +2789,13 @@
2778
2789
  "type": "string",
2779
2790
  "description": "Color override for axis tick labels and title. Useful in dual-axis charts to match axis color to its series."
2780
2791
  },
2792
+ "labelPrefix": {
2793
+ "type": "string",
2794
+ "description": "Text before every tick label, e.g. \"$\". Also shown before this channel's values in tooltips."
2795
+ },
2781
2796
  "labelSuffix": {
2782
2797
  "type": "string",
2783
- "description": "Literal string appended to every formatted tick label. e.g. \"B\" gives \"$4.5B\" when format is \"$,.1~f\"."
2798
+ "description": "Literal string appended to every formatted tick label. e.g. \"B\" gives \"$4.5B\" when format is \"$,.1~f\". Also shown after this channel's values in tooltips."
2784
2799
  },
2785
2800
  "labelField": {
2786
2801
  "type": "string",
@@ -2798,6 +2813,35 @@
2798
2813
  "additionalProperties": false,
2799
2814
  "description": "Axis configuration for an encoding channel."
2800
2815
  },
2816
+ "TimeTickStep": {
2817
+ "type": "object",
2818
+ "properties": {
2819
+ "interval": {
2820
+ "$ref": "#/definitions/TimeTickInterval"
2821
+ },
2822
+ "step": {
2823
+ "type": "number"
2824
+ }
2825
+ },
2826
+ "required": [
2827
+ "interval"
2828
+ ],
2829
+ "additionalProperties": false,
2830
+ "description": "A tick every `step` intervals, e.g. `{ interval: 'month', step: 3 }`. `step` defaults to 1."
2831
+ },
2832
+ "TimeTickInterval": {
2833
+ "type": "string",
2834
+ "enum": [
2835
+ "year",
2836
+ "quarter",
2837
+ "month",
2838
+ "week",
2839
+ "day",
2840
+ "hour",
2841
+ "minute"
2842
+ ],
2843
+ "description": "A time interval for temporal axis ticks. `quarter` is three months."
2844
+ },
2801
2845
  "ScaleConfig": {
2802
2846
  "type": "object",
2803
2847
  "properties": {
@@ -2818,6 +2862,14 @@
2818
2862
  ],
2819
2863
  "description": "Explicit domain override. Auto-derived from data if omitted. Continuous scales take `[min, max]`; threshold scales take the full list of class break values; categorical scales take the value list."
2820
2864
  },
2865
+ "domainMin": {
2866
+ "type": "number",
2867
+ "description": "Fixed lower end of a quantitative scale. The upper end still fits the data (with `zero` and `nice` applied to it). Ignored when `domain` is set; validation rejects both together."
2868
+ },
2869
+ "domainMax": {
2870
+ "type": "number",
2871
+ "description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
2872
+ },
2821
2873
  "type": {
2822
2874
  "$ref": "#/definitions/ScaleType",
2823
2875
  "description": "Scale type override. Usually inferred from field type."
@@ -4519,11 +4571,15 @@
4519
4571
  },
4520
4572
  "prefix": {
4521
4573
  "type": "string",
4522
- "description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\")."
4574
+ "description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\"). Applies to bar, column and arc (pie, donut) labels."
4523
4575
  },
4524
4576
  "suffix": {
4525
4577
  "type": "string",
4526
- "description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\")."
4578
+ "description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\"). Applies to bar, column and arc (pie, donut) labels."
4579
+ },
4580
+ "highlightedOnly": {
4581
+ "type": "boolean",
4582
+ "description": "Bar and column value labels: label only the values named in `encoding.color.highlight`."
4527
4583
  },
4528
4584
  "color": {
4529
4585
  "type": "string",
@@ -4619,6 +4675,14 @@
4619
4675
  "type": "string",
4620
4676
  "description": "d3-format string for the value. Defaults to `encoding.y.axis.format`."
4621
4677
  },
4678
+ "prefix": {
4679
+ "type": "string",
4680
+ "description": "Text before the formatted value, e.g. \"$\"."
4681
+ },
4682
+ "suffix": {
4683
+ "type": "string",
4684
+ "description": "Text after the formatted value, e.g. \"bn\"."
4685
+ },
4622
4686
  "width": {
4623
4687
  "type": "number",
4624
4688
  "description": "Max wrap width in pixels for long series names. Default 96."
@@ -4764,6 +4828,10 @@
4764
4828
  "$ref": "#/definitions/TokenValue",
4765
4829
  "description": "Annotation muted color. Accepts a TokenValue light/dark pair."
4766
4830
  },
4831
+ "muted": {
4832
+ "$ref": "#/definitions/TokenValue",
4833
+ "description": "Color for values that highlight mutes. Accepts a TokenValue for light/dark pairs."
4834
+ },
4767
4835
  "annotationLeader": {
4768
4836
  "$ref": "#/definitions/TokenValue",
4769
4837
  "description": "Annotation leader color. Accepts a TokenValue light/dark pair."
@@ -5131,6 +5199,14 @@
5131
5199
  ],
5132
5200
  "description": "Explicit domain override. Auto-derived from data if omitted. Continuous scales take `[min, max]`; threshold scales take the full list of class break values; categorical scales take the value list."
5133
5201
  },
5202
+ "domainMin": {
5203
+ "type": "number",
5204
+ "description": "Fixed lower end of a quantitative scale. The upper end still fits the data (with `zero` and `nice` applied to it). Ignored when `domain` is set; validation rejects both together."
5205
+ },
5206
+ "domainMax": {
5207
+ "type": "number",
5208
+ "description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
5209
+ },
5134
5210
  "type": {
5135
5211
  "$ref": "#/definitions/ScaleType",
5136
5212
  "description": "Scale type override. Usually inferred from field type."
@@ -5220,6 +5296,14 @@
5220
5296
  ],
5221
5297
  "description": "Explicit domain override. Auto-derived from data if omitted. Continuous scales take `[min, max]`; threshold scales take the full list of class break values; categorical scales take the value list."
5222
5298
  },
5299
+ "domainMin": {
5300
+ "type": "number",
5301
+ "description": "Fixed lower end of a quantitative scale. The upper end still fits the data (with `zero` and `nice` applied to it). Ignored when `domain` is set; validation rejects both together."
5302
+ },
5303
+ "domainMax": {
5304
+ "type": "number",
5305
+ "description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
5306
+ },
5223
5307
  "type": {
5224
5308
  "$ref": "#/definitions/ScaleType",
5225
5309
  "description": "Scale type override. Usually inferred from field type."
@@ -5309,6 +5393,14 @@
5309
5393
  ],
5310
5394
  "description": "Explicit domain override. Auto-derived from data if omitted. Continuous scales take `[min, max]`; threshold scales take the full list of class break values; categorical scales take the value list."
5311
5395
  },
5396
+ "domainMin": {
5397
+ "type": "number",
5398
+ "description": "Fixed lower end of a quantitative scale. The upper end still fits the data (with `zero` and `nice` applied to it). Ignored when `domain` is set; validation rejects both together."
5399
+ },
5400
+ "domainMax": {
5401
+ "type": "number",
5402
+ "description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
5403
+ },
5312
5404
  "type": {
5313
5405
  "$ref": "#/definitions/ScaleType",
5314
5406
  "description": "Scale type override. Usually inferred from field type."
@@ -5398,6 +5490,14 @@
5398
5490
  ],
5399
5491
  "description": "Explicit domain override. Auto-derived from data if omitted. Continuous scales take `[min, max]`; threshold scales take the full list of class break values; categorical scales take the value list."
5400
5492
  },
5493
+ "domainMin": {
5494
+ "type": "number",
5495
+ "description": "Fixed lower end of a quantitative scale. The upper end still fits the data (with `zero` and `nice` applied to it). Ignored when `domain` is set; validation rejects both together."
5496
+ },
5497
+ "domainMax": {
5498
+ "type": "number",
5499
+ "description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
5500
+ },
5401
5501
  "type": {
5402
5502
  "$ref": "#/definitions/ScaleType",
5403
5503
  "description": "Scale type override. Usually inferred from field type."
@@ -664,6 +664,10 @@
664
664
  "$ref": "#/definitions/TokenValue",
665
665
  "description": "Annotation muted color. Accepts a TokenValue light/dark pair."
666
666
  },
667
+ "muted": {
668
+ "$ref": "#/definitions/TokenValue",
669
+ "description": "Color for values that highlight mutes. Accepts a TokenValue for light/dark pairs."
670
+ },
667
671
  "annotationLeader": {
668
672
  "$ref": "#/definitions/TokenValue",
669
673
  "description": "Annotation leader color. Accepts a TokenValue light/dark pair."
@@ -164,7 +164,7 @@
164
164
  "properties": {
165
165
  "innerRadius": {
166
166
  "type": "number",
167
- "description": "Inner radius for arc marks. >0 produces a donut, 0 or omitted produces a pie."
167
+ "description": "Inner radius for arc marks: 0 for a pie; a value below 1 is a fraction of the outer radius (0.6 = 60%); 1 or more is pixels."
168
168
  },
169
169
  "outerRadius": {
170
170
  "type": "number",
@@ -2730,6 +2730,17 @@
2730
2730
  "type": "number",
2731
2731
  "description": "Override tick count. Engine picks a sensible default if omitted."
2732
2732
  },
2733
+ "tickStep": {
2734
+ "anyOf": [
2735
+ {
2736
+ "type": "number"
2737
+ },
2738
+ {
2739
+ "$ref": "#/definitions/TimeTickStep"
2740
+ }
2741
+ ],
2742
+ "description": "Distance between ticks: a number in data units on a quantitative axis, a `TimeTickStep` on a temporal axis. `values` wins over `tickStep`, which wins over `tickCount`."
2743
+ },
2733
2744
  "grid": {
2734
2745
  "type": "boolean",
2735
2746
  "description": "Whether to show gridlines for this axis."
@@ -2810,9 +2821,13 @@
2810
2821
  "type": "string",
2811
2822
  "description": "Color override for axis tick labels and title. Useful in dual-axis charts to match axis color to its series."
2812
2823
  },
2824
+ "labelPrefix": {
2825
+ "type": "string",
2826
+ "description": "Text before every tick label, e.g. \"$\". Also shown before this channel's values in tooltips."
2827
+ },
2813
2828
  "labelSuffix": {
2814
2829
  "type": "string",
2815
- "description": "Literal string appended to every formatted tick label. e.g. \"B\" gives \"$4.5B\" when format is \"$,.1~f\"."
2830
+ "description": "Literal string appended to every formatted tick label. e.g. \"B\" gives \"$4.5B\" when format is \"$,.1~f\". Also shown after this channel's values in tooltips."
2816
2831
  },
2817
2832
  "labelField": {
2818
2833
  "type": "string",
@@ -2830,6 +2845,35 @@
2830
2845
  "additionalProperties": false,
2831
2846
  "description": "Axis configuration for an encoding channel."
2832
2847
  },
2848
+ "TimeTickStep": {
2849
+ "type": "object",
2850
+ "properties": {
2851
+ "interval": {
2852
+ "$ref": "#/definitions/TimeTickInterval"
2853
+ },
2854
+ "step": {
2855
+ "type": "number"
2856
+ }
2857
+ },
2858
+ "required": [
2859
+ "interval"
2860
+ ],
2861
+ "additionalProperties": false,
2862
+ "description": "A tick every `step` intervals, e.g. `{ interval: 'month', step: 3 }`. `step` defaults to 1."
2863
+ },
2864
+ "TimeTickInterval": {
2865
+ "type": "string",
2866
+ "enum": [
2867
+ "year",
2868
+ "quarter",
2869
+ "month",
2870
+ "week",
2871
+ "day",
2872
+ "hour",
2873
+ "minute"
2874
+ ],
2875
+ "description": "A time interval for temporal axis ticks. `quarter` is three months."
2876
+ },
2833
2877
  "ScaleConfig": {
2834
2878
  "type": "object",
2835
2879
  "properties": {
@@ -2850,6 +2894,14 @@
2850
2894
  ],
2851
2895
  "description": "Explicit domain override. Auto-derived from data if omitted. Continuous scales take `[min, max]`; threshold scales take the full list of class break values; categorical scales take the value list."
2852
2896
  },
2897
+ "domainMin": {
2898
+ "type": "number",
2899
+ "description": "Fixed lower end of a quantitative scale. The upper end still fits the data (with `zero` and `nice` applied to it). Ignored when `domain` is set; validation rejects both together."
2900
+ },
2901
+ "domainMax": {
2902
+ "type": "number",
2903
+ "description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
2904
+ },
2853
2905
  "type": {
2854
2906
  "$ref": "#/definitions/ScaleType",
2855
2907
  "description": "Scale type override. Usually inferred from field type."
@@ -4551,11 +4603,15 @@
4551
4603
  },
4552
4604
  "prefix": {
4553
4605
  "type": "string",
4554
- "description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\")."
4606
+ "description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\"). Applies to bar, column and arc (pie, donut) labels."
4555
4607
  },
4556
4608
  "suffix": {
4557
4609
  "type": "string",
4558
- "description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\")."
4610
+ "description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\"). Applies to bar, column and arc (pie, donut) labels."
4611
+ },
4612
+ "highlightedOnly": {
4613
+ "type": "boolean",
4614
+ "description": "Bar and column value labels: label only the values named in `encoding.color.highlight`."
4559
4615
  },
4560
4616
  "color": {
4561
4617
  "type": "string",
@@ -4651,6 +4707,14 @@
4651
4707
  "type": "string",
4652
4708
  "description": "d3-format string for the value. Defaults to `encoding.y.axis.format`."
4653
4709
  },
4710
+ "prefix": {
4711
+ "type": "string",
4712
+ "description": "Text before the formatted value, e.g. \"$\"."
4713
+ },
4714
+ "suffix": {
4715
+ "type": "string",
4716
+ "description": "Text after the formatted value, e.g. \"bn\"."
4717
+ },
4654
4718
  "width": {
4655
4719
  "type": "number",
4656
4720
  "description": "Max wrap width in pixels for long series names. Default 96."
@@ -4796,6 +4860,10 @@
4796
4860
  "$ref": "#/definitions/TokenValue",
4797
4861
  "description": "Annotation muted color. Accepts a TokenValue light/dark pair."
4798
4862
  },
4863
+ "muted": {
4864
+ "$ref": "#/definitions/TokenValue",
4865
+ "description": "Color for values that highlight mutes. Accepts a TokenValue for light/dark pairs."
4866
+ },
4799
4867
  "annotationLeader": {
4800
4868
  "$ref": "#/definitions/TokenValue",
4801
4869
  "description": "Annotation leader color. Accepts a TokenValue light/dark pair."
@@ -5163,6 +5231,14 @@
5163
5231
  ],
5164
5232
  "description": "Explicit domain override. Auto-derived from data if omitted. Continuous scales take `[min, max]`; threshold scales take the full list of class break values; categorical scales take the value list."
5165
5233
  },
5234
+ "domainMin": {
5235
+ "type": "number",
5236
+ "description": "Fixed lower end of a quantitative scale. The upper end still fits the data (with `zero` and `nice` applied to it). Ignored when `domain` is set; validation rejects both together."
5237
+ },
5238
+ "domainMax": {
5239
+ "type": "number",
5240
+ "description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
5241
+ },
5166
5242
  "type": {
5167
5243
  "$ref": "#/definitions/ScaleType",
5168
5244
  "description": "Scale type override. Usually inferred from field type."
@@ -5252,6 +5328,14 @@
5252
5328
  ],
5253
5329
  "description": "Explicit domain override. Auto-derived from data if omitted. Continuous scales take `[min, max]`; threshold scales take the full list of class break values; categorical scales take the value list."
5254
5330
  },
5331
+ "domainMin": {
5332
+ "type": "number",
5333
+ "description": "Fixed lower end of a quantitative scale. The upper end still fits the data (with `zero` and `nice` applied to it). Ignored when `domain` is set; validation rejects both together."
5334
+ },
5335
+ "domainMax": {
5336
+ "type": "number",
5337
+ "description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
5338
+ },
5255
5339
  "type": {
5256
5340
  "$ref": "#/definitions/ScaleType",
5257
5341
  "description": "Scale type override. Usually inferred from field type."
@@ -5341,6 +5425,14 @@
5341
5425
  ],
5342
5426
  "description": "Explicit domain override. Auto-derived from data if omitted. Continuous scales take `[min, max]`; threshold scales take the full list of class break values; categorical scales take the value list."
5343
5427
  },
5428
+ "domainMin": {
5429
+ "type": "number",
5430
+ "description": "Fixed lower end of a quantitative scale. The upper end still fits the data (with `zero` and `nice` applied to it). Ignored when `domain` is set; validation rejects both together."
5431
+ },
5432
+ "domainMax": {
5433
+ "type": "number",
5434
+ "description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
5435
+ },
5344
5436
  "type": {
5345
5437
  "$ref": "#/definitions/ScaleType",
5346
5438
  "description": "Scale type override. Usually inferred from field type."
@@ -5430,6 +5522,14 @@
5430
5522
  ],
5431
5523
  "description": "Explicit domain override. Auto-derived from data if omitted. Continuous scales take `[min, max]`; threshold scales take the full list of class break values; categorical scales take the value list."
5432
5524
  },
5525
+ "domainMin": {
5526
+ "type": "number",
5527
+ "description": "Fixed lower end of a quantitative scale. The upper end still fits the data (with `zero` and `nice` applied to it). Ignored when `domain` is set; validation rejects both together."
5528
+ },
5529
+ "domainMax": {
5530
+ "type": "number",
5531
+ "description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
5532
+ },
5433
5533
  "type": {
5434
5534
  "$ref": "#/definitions/ScaleType",
5435
5535
  "description": "Scale type override. Usually inferred from field type."
@@ -8674,7 +8774,7 @@
8674
8774
  "properties": {
8675
8775
  "innerRadius": {
8676
8776
  "type": "number",
8677
- "description": "Inner radius for arc marks. >0 produces a donut, 0 or omitted produces a pie."
8777
+ "description": "Inner radius for arc marks: 0 for a pie; a value below 1 is a fraction of the outer radius (0.6 = 60%); 1 or more is pixels."
8678
8778
  },
8679
8779
  "outerRadius": {
8680
8780
  "type": "number",
@@ -16763,11 +16863,11 @@
16763
16863
  },
16764
16864
  "prefix": {
16765
16865
  "type": "string",
16766
- "description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\")."
16866
+ "description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\"). Applies to bar, column and arc (pie, donut) labels."
16767
16867
  },
16768
16868
  "suffix": {
16769
16869
  "type": "string",
16770
- "description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\")."
16870
+ "description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\"). Applies to bar, column and arc (pie, donut) labels."
16771
16871
  }
16772
16872
  },
16773
16873
  "additionalProperties": false,