@opendata-ai/openchart-core 9.3.0 → 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +100 -15
- package/dist/index.js +36 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/schema/chart.schema.json +139 -11
- package/schema/table.schema.json +23 -0
- package/schema/vizspec.schema.json +177 -22
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"properties": {
|
|
165
165
|
"innerRadius": {
|
|
166
166
|
"type": "number",
|
|
167
|
-
"description": "Inner radius for arc marks
|
|
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",
|
|
@@ -2655,7 +2655,7 @@
|
|
|
2655
2655
|
"$ref": "#/definitions/SortByField"
|
|
2656
2656
|
}
|
|
2657
2657
|
],
|
|
2658
|
-
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined:
|
|
2658
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: keep data order\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field. On a categorical (band or point) `y`, the first domain value is drawn at the top, so data order and `sort: '-x'` (largest first) read top to bottom. `scale.reverse` flips it."
|
|
2659
2659
|
},
|
|
2660
2660
|
"legend": {
|
|
2661
2661
|
"anyOf": [
|
|
@@ -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."
|
|
@@ -3991,6 +4043,10 @@
|
|
|
3991
4043
|
"ChromeText": {
|
|
3992
4044
|
"type": "object",
|
|
3993
4045
|
"properties": {
|
|
4046
|
+
"href": {
|
|
4047
|
+
"type": "string",
|
|
4048
|
+
"description": "Makes the text a link. http, https and mailto only; opens in a new tab."
|
|
4049
|
+
},
|
|
3994
4050
|
"text": {
|
|
3995
4051
|
"type": "string",
|
|
3996
4052
|
"description": "The text content to display."
|
|
@@ -4129,8 +4185,16 @@
|
|
|
4129
4185
|
"description": "Z-index for render ordering. Higher values render on top."
|
|
4130
4186
|
},
|
|
4131
4187
|
"responsive": {
|
|
4132
|
-
"
|
|
4133
|
-
|
|
4188
|
+
"anyOf": [
|
|
4189
|
+
{
|
|
4190
|
+
"type": "boolean"
|
|
4191
|
+
},
|
|
4192
|
+
{
|
|
4193
|
+
"type": "string",
|
|
4194
|
+
"const": "hide"
|
|
4195
|
+
}
|
|
4196
|
+
],
|
|
4197
|
+
"description": "At compact widths (below 400 px): true (default) thins or demotes the note to a footnote, false always shows it, 'hide' leaves it out entirely."
|
|
4134
4198
|
},
|
|
4135
4199
|
"type": {
|
|
4136
4200
|
"type": "string",
|
|
@@ -4344,8 +4408,16 @@
|
|
|
4344
4408
|
"description": "Z-index for render ordering. Higher values render on top."
|
|
4345
4409
|
},
|
|
4346
4410
|
"responsive": {
|
|
4347
|
-
"
|
|
4348
|
-
|
|
4411
|
+
"anyOf": [
|
|
4412
|
+
{
|
|
4413
|
+
"type": "boolean"
|
|
4414
|
+
},
|
|
4415
|
+
{
|
|
4416
|
+
"type": "string",
|
|
4417
|
+
"const": "hide"
|
|
4418
|
+
}
|
|
4419
|
+
],
|
|
4420
|
+
"description": "At compact widths (below 400 px): true (default) thins or demotes the note to a footnote, false always shows it, 'hide' leaves it out entirely."
|
|
4349
4421
|
},
|
|
4350
4422
|
"type": {
|
|
4351
4423
|
"type": "string",
|
|
@@ -4434,8 +4506,16 @@
|
|
|
4434
4506
|
"description": "Z-index for render ordering. Higher values render on top."
|
|
4435
4507
|
},
|
|
4436
4508
|
"responsive": {
|
|
4437
|
-
"
|
|
4438
|
-
|
|
4509
|
+
"anyOf": [
|
|
4510
|
+
{
|
|
4511
|
+
"type": "boolean"
|
|
4512
|
+
},
|
|
4513
|
+
{
|
|
4514
|
+
"type": "string",
|
|
4515
|
+
"const": "hide"
|
|
4516
|
+
}
|
|
4517
|
+
],
|
|
4518
|
+
"description": "At compact widths (below 400 px): true (default) thins or demotes the note to a footnote, false always shows it, 'hide' leaves it out entirely."
|
|
4439
4519
|
},
|
|
4440
4520
|
"type": {
|
|
4441
4521
|
"type": "string",
|
|
@@ -4551,11 +4631,15 @@
|
|
|
4551
4631
|
},
|
|
4552
4632
|
"prefix": {
|
|
4553
4633
|
"type": "string",
|
|
4554
|
-
"description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\")."
|
|
4634
|
+
"description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\"). Applies to bar, column and arc (pie, donut) labels."
|
|
4555
4635
|
},
|
|
4556
4636
|
"suffix": {
|
|
4557
4637
|
"type": "string",
|
|
4558
|
-
"description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\")."
|
|
4638
|
+
"description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\"). Applies to bar, column and arc (pie, donut) labels."
|
|
4639
|
+
},
|
|
4640
|
+
"highlightedOnly": {
|
|
4641
|
+
"type": "boolean",
|
|
4642
|
+
"description": "Label only the series or values named in `encoding.color.highlight`: bar and column value labels, and the endpoint labels of line and area charts, which otherwise also name muted series in a quieter ink."
|
|
4559
4643
|
},
|
|
4560
4644
|
"color": {
|
|
4561
4645
|
"type": "string",
|
|
@@ -4651,6 +4735,14 @@
|
|
|
4651
4735
|
"type": "string",
|
|
4652
4736
|
"description": "d3-format string for the value. Defaults to `encoding.y.axis.format`."
|
|
4653
4737
|
},
|
|
4738
|
+
"prefix": {
|
|
4739
|
+
"type": "string",
|
|
4740
|
+
"description": "Text before the formatted value, e.g. \"$\"."
|
|
4741
|
+
},
|
|
4742
|
+
"suffix": {
|
|
4743
|
+
"type": "string",
|
|
4744
|
+
"description": "Text after the formatted value, e.g. \"bn\"."
|
|
4745
|
+
},
|
|
4654
4746
|
"width": {
|
|
4655
4747
|
"type": "number",
|
|
4656
4748
|
"description": "Max wrap width in pixels for long series names. Default 96."
|
|
@@ -4796,6 +4888,10 @@
|
|
|
4796
4888
|
"$ref": "#/definitions/TokenValue",
|
|
4797
4889
|
"description": "Annotation muted color. Accepts a TokenValue light/dark pair."
|
|
4798
4890
|
},
|
|
4891
|
+
"muted": {
|
|
4892
|
+
"$ref": "#/definitions/TokenValue",
|
|
4893
|
+
"description": "Color for values that highlight mutes. Accepts a TokenValue for light/dark pairs."
|
|
4894
|
+
},
|
|
4799
4895
|
"annotationLeader": {
|
|
4800
4896
|
"$ref": "#/definitions/TokenValue",
|
|
4801
4897
|
"description": "Annotation leader color. Accepts a TokenValue light/dark pair."
|
|
@@ -5163,6 +5259,14 @@
|
|
|
5163
5259
|
],
|
|
5164
5260
|
"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
5261
|
},
|
|
5262
|
+
"domainMin": {
|
|
5263
|
+
"type": "number",
|
|
5264
|
+
"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."
|
|
5265
|
+
},
|
|
5266
|
+
"domainMax": {
|
|
5267
|
+
"type": "number",
|
|
5268
|
+
"description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
|
|
5269
|
+
},
|
|
5166
5270
|
"type": {
|
|
5167
5271
|
"$ref": "#/definitions/ScaleType",
|
|
5168
5272
|
"description": "Scale type override. Usually inferred from field type."
|
|
@@ -5252,6 +5356,14 @@
|
|
|
5252
5356
|
],
|
|
5253
5357
|
"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
5358
|
},
|
|
5359
|
+
"domainMin": {
|
|
5360
|
+
"type": "number",
|
|
5361
|
+
"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."
|
|
5362
|
+
},
|
|
5363
|
+
"domainMax": {
|
|
5364
|
+
"type": "number",
|
|
5365
|
+
"description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
|
|
5366
|
+
},
|
|
5255
5367
|
"type": {
|
|
5256
5368
|
"$ref": "#/definitions/ScaleType",
|
|
5257
5369
|
"description": "Scale type override. Usually inferred from field type."
|
|
@@ -5341,6 +5453,14 @@
|
|
|
5341
5453
|
],
|
|
5342
5454
|
"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
5455
|
},
|
|
5456
|
+
"domainMin": {
|
|
5457
|
+
"type": "number",
|
|
5458
|
+
"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."
|
|
5459
|
+
},
|
|
5460
|
+
"domainMax": {
|
|
5461
|
+
"type": "number",
|
|
5462
|
+
"description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
|
|
5463
|
+
},
|
|
5344
5464
|
"type": {
|
|
5345
5465
|
"$ref": "#/definitions/ScaleType",
|
|
5346
5466
|
"description": "Scale type override. Usually inferred from field type."
|
|
@@ -5430,6 +5550,14 @@
|
|
|
5430
5550
|
],
|
|
5431
5551
|
"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
5552
|
},
|
|
5553
|
+
"domainMin": {
|
|
5554
|
+
"type": "number",
|
|
5555
|
+
"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."
|
|
5556
|
+
},
|
|
5557
|
+
"domainMax": {
|
|
5558
|
+
"type": "number",
|
|
5559
|
+
"description": "Fixed upper end of a quantitative scale; the lower end still fits the data."
|
|
5560
|
+
},
|
|
5433
5561
|
"type": {
|
|
5434
5562
|
"$ref": "#/definitions/ScaleType",
|
|
5435
5563
|
"description": "Scale type override. Usually inferred from field type."
|
|
@@ -8674,7 +8802,7 @@
|
|
|
8674
8802
|
"properties": {
|
|
8675
8803
|
"innerRadius": {
|
|
8676
8804
|
"type": "number",
|
|
8677
|
-
"description": "Inner radius for arc marks
|
|
8805
|
+
"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
8806
|
},
|
|
8679
8807
|
"outerRadius": {
|
|
8680
8808
|
"type": "number",
|
|
@@ -14488,6 +14616,10 @@
|
|
|
14488
14616
|
"TableSpec": {
|
|
14489
14617
|
"type": "object",
|
|
14490
14618
|
"properties": {
|
|
14619
|
+
"a11y": {
|
|
14620
|
+
"$ref": "#/definitions/A11yDescriptionConfig",
|
|
14621
|
+
"description": "An author-written description for assistive technology."
|
|
14622
|
+
},
|
|
14491
14623
|
"mobileLayout": {
|
|
14492
14624
|
"type": "string",
|
|
14493
14625
|
"enum": [
|
|
@@ -14613,6 +14745,17 @@
|
|
|
14613
14745
|
"additionalProperties": false,
|
|
14614
14746
|
"description": "Table specification: input for data table visualizations.\n\nTables are a visualization type, not just an HTML grid. They support heatmap coloring, inline sparklines, sorted columns, search, and pagination."
|
|
14615
14747
|
},
|
|
14748
|
+
"A11yDescriptionConfig": {
|
|
14749
|
+
"type": "object",
|
|
14750
|
+
"properties": {
|
|
14751
|
+
"description": {
|
|
14752
|
+
"type": "string",
|
|
14753
|
+
"description": "Alt text announced by screen readers for the chart as a whole. Replaces the auto-generated description. Also settable via the top-level `description` field (Vega-Lite convention); this field wins when both are present."
|
|
14754
|
+
}
|
|
14755
|
+
},
|
|
14756
|
+
"additionalProperties": false,
|
|
14757
|
+
"description": "An author-written description for assistive technology."
|
|
14758
|
+
},
|
|
14616
14759
|
"ColumnConfig": {
|
|
14617
14760
|
"type": "object",
|
|
14618
14761
|
"properties": {
|
|
@@ -15756,7 +15899,7 @@
|
|
|
15756
15899
|
"$ref": "#/definitions/SortByField"
|
|
15757
15900
|
}
|
|
15758
15901
|
],
|
|
15759
|
-
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined:
|
|
15902
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: keep data order\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field. On a categorical (band or point) `y`, the first domain value is drawn at the top, so data order and `sort: '-x'` (largest first) read top to bottom. `scale.reverse` flips it."
|
|
15760
15903
|
},
|
|
15761
15904
|
"legend": {
|
|
15762
15905
|
"anyOf": [
|
|
@@ -16007,6 +16150,10 @@
|
|
|
16007
16150
|
"GeoMapSpec": {
|
|
16008
16151
|
"type": "object",
|
|
16009
16152
|
"properties": {
|
|
16153
|
+
"a11y": {
|
|
16154
|
+
"$ref": "#/definitions/A11yDescriptionConfig",
|
|
16155
|
+
"description": "An author-written description for assistive technology."
|
|
16156
|
+
},
|
|
16010
16157
|
"fields": {
|
|
16011
16158
|
"type": "object",
|
|
16012
16159
|
"additionalProperties": {
|
|
@@ -16743,8 +16890,16 @@
|
|
|
16743
16890
|
"description": "Z-index for render ordering. Higher values render on top."
|
|
16744
16891
|
},
|
|
16745
16892
|
"responsive": {
|
|
16746
|
-
"
|
|
16747
|
-
|
|
16893
|
+
"anyOf": [
|
|
16894
|
+
{
|
|
16895
|
+
"type": "boolean"
|
|
16896
|
+
},
|
|
16897
|
+
{
|
|
16898
|
+
"type": "string",
|
|
16899
|
+
"const": "hide"
|
|
16900
|
+
}
|
|
16901
|
+
],
|
|
16902
|
+
"description": "At compact widths (below 400 px): true (default) thins or demotes the note to a footnote, false always shows it, 'hide' leaves it out entirely."
|
|
16748
16903
|
}
|
|
16749
16904
|
},
|
|
16750
16905
|
"required": [
|
|
@@ -16763,11 +16918,11 @@
|
|
|
16763
16918
|
},
|
|
16764
16919
|
"prefix": {
|
|
16765
16920
|
"type": "string",
|
|
16766
|
-
"description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\")."
|
|
16921
|
+
"description": "Literal string prepended to each formatted label value (e.g. \"-\" or \"$\"). Applies to bar, column and arc (pie, donut) labels."
|
|
16767
16922
|
},
|
|
16768
16923
|
"suffix": {
|
|
16769
16924
|
"type": "string",
|
|
16770
|
-
"description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\")."
|
|
16925
|
+
"description": "Literal string appended to each formatted label value (e.g. \"%\" or \"x\"). Applies to bar, column and arc (pie, donut) labels."
|
|
16771
16926
|
}
|
|
16772
16927
|
},
|
|
16773
16928
|
"additionalProperties": false,
|
|
@@ -17239,7 +17394,7 @@
|
|
|
17239
17394
|
"$ref": "#/definitions/SortByField"
|
|
17240
17395
|
}
|
|
17241
17396
|
],
|
|
17242
|
-
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined:
|
|
17397
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: keep data order\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field. On a categorical (band or point) `y`, the first domain value is drawn at the top, so data order and `sort: '-x'` (largest first) read top to bottom. `scale.reverse` flips it."
|
|
17243
17398
|
},
|
|
17244
17399
|
"legend": {
|
|
17245
17400
|
"anyOf": [
|
|
@@ -17420,7 +17575,7 @@
|
|
|
17420
17575
|
"$ref": "#/definitions/SortByField"
|
|
17421
17576
|
}
|
|
17422
17577
|
],
|
|
17423
|
-
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined:
|
|
17578
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: keep data order\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field. On a categorical (band or point) `y`, the first domain value is drawn at the top, so data order and `sort: '-x'` (largest first) read top to bottom. `scale.reverse` flips it."
|
|
17424
17579
|
},
|
|
17425
17580
|
"legend": {
|
|
17426
17581
|
"anyOf": [
|
|
@@ -17602,7 +17757,7 @@
|
|
|
17602
17757
|
"$ref": "#/definitions/SortByField"
|
|
17603
17758
|
}
|
|
17604
17759
|
],
|
|
17605
|
-
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined:
|
|
17760
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: keep data order\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field. On a categorical (band or point) `y`, the first domain value is drawn at the top, so data order and `sort: '-x'` (largest first) read top to bottom. `scale.reverse` flips it."
|
|
17606
17761
|
},
|
|
17607
17762
|
"legend": {
|
|
17608
17763
|
"anyOf": [
|
|
@@ -17785,7 +17940,7 @@
|
|
|
17785
17940
|
"$ref": "#/definitions/SortByField"
|
|
17786
17941
|
}
|
|
17787
17942
|
],
|
|
17788
|
-
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined:
|
|
17943
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: keep data order\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field. On a categorical (band or point) `y`, the first domain value is drawn at the top, so data order and `sort: '-x'` (largest first) read top to bottom. `scale.reverse` flips it."
|
|
17789
17944
|
},
|
|
17790
17945
|
"legend": {
|
|
17791
17946
|
"anyOf": [
|
|
@@ -17981,7 +18136,7 @@
|
|
|
17981
18136
|
"$ref": "#/definitions/SortByField"
|
|
17982
18137
|
}
|
|
17983
18138
|
],
|
|
17984
|
-
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined:
|
|
18139
|
+
"description": "Sort order for categorical (nominal/ordinal) scale domains (Vega-Lite aligned).\n- 'ascending': sort domain values ascending (default VL behavior)\n- 'descending': sort domain values descending\n- null: use data order (no sorting)\n- undefined: keep data order\n- 'x' | '-x' | 'y' | '-y': sort by another channel's values ('-' prefix for descending). The VL ranked-bar idiom: `sort: '-y'` orders categories by value, largest first. Resolved into an explicit domain during the pre-validation sugar expansion.\n- string[]: explicit value order. Listed values come first (in the given order); unlisted data values follow in data order.\n- SortByField: sort by the aggregated values of another field. On a categorical (band or point) `y`, the first domain value is drawn at the top, so data order and `sort: '-x'` (largest first) read top to bottom. `scale.reverse` flips it."
|
|
17985
18140
|
},
|
|
17986
18141
|
"legend": {
|
|
17987
18142
|
"anyOf": [
|