@opendata-ai/openchart-core 8.8.0 → 8.9.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 +142 -2
- package/dist/index.js +101 -0
- 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 +116 -0
- package/schema/table.schema.json +117 -0
- package/schema/vizspec.schema.json +265 -0
|
@@ -7415,6 +7415,67 @@
|
|
|
7415
7415
|
"additionalProperties": false,
|
|
7416
7416
|
"description": "Facet channel definition: partitions data into small-multiple panels.\n\nUnlike positional channels, facet only needs a field, a categorical type, and optional layout hints (columns, sort). It does not carry scale/axis config because it produces a grid, not a visual encoding."
|
|
7417
7417
|
},
|
|
7418
|
+
"FieldMetadata": {
|
|
7419
|
+
"type": "object",
|
|
7420
|
+
"properties": {
|
|
7421
|
+
"type": {
|
|
7422
|
+
"type": "string",
|
|
7423
|
+
"enum": [
|
|
7424
|
+
"text",
|
|
7425
|
+
"number",
|
|
7426
|
+
"date"
|
|
7427
|
+
],
|
|
7428
|
+
"description": "Explicit imported field type; preserved with the portable document."
|
|
7429
|
+
},
|
|
7430
|
+
"role": {
|
|
7431
|
+
"type": "string",
|
|
7432
|
+
"const": "identity",
|
|
7433
|
+
"description": "Identifies an internal, persistent row identity column."
|
|
7434
|
+
},
|
|
7435
|
+
"label": {
|
|
7436
|
+
"type": "string"
|
|
7437
|
+
},
|
|
7438
|
+
"unit": {
|
|
7439
|
+
"type": "string"
|
|
7440
|
+
},
|
|
7441
|
+
"measure": {
|
|
7442
|
+
"type": "string"
|
|
7443
|
+
},
|
|
7444
|
+
"provenance": {
|
|
7445
|
+
"type": "string"
|
|
7446
|
+
},
|
|
7447
|
+
"representation": {
|
|
7448
|
+
"type": "string",
|
|
7449
|
+
"enum": [
|
|
7450
|
+
"number",
|
|
7451
|
+
"percent",
|
|
7452
|
+
"proportion"
|
|
7453
|
+
],
|
|
7454
|
+
"description": "Percent is encoded 0–100; proportion is encoded 0–1."
|
|
7455
|
+
},
|
|
7456
|
+
"interval": {
|
|
7457
|
+
"type": "object",
|
|
7458
|
+
"properties": {
|
|
7459
|
+
"lower": {
|
|
7460
|
+
"type": "string"
|
|
7461
|
+
},
|
|
7462
|
+
"upper": {
|
|
7463
|
+
"type": "string"
|
|
7464
|
+
}
|
|
7465
|
+
},
|
|
7466
|
+
"required": [
|
|
7467
|
+
"lower",
|
|
7468
|
+
"upper"
|
|
7469
|
+
],
|
|
7470
|
+
"additionalProperties": false
|
|
7471
|
+
},
|
|
7472
|
+
"statusField": {
|
|
7473
|
+
"type": "string"
|
|
7474
|
+
}
|
|
7475
|
+
},
|
|
7476
|
+
"additionalProperties": false,
|
|
7477
|
+
"description": "Supplied semantics; the library never invents a measure or uncertainty."
|
|
7478
|
+
},
|
|
7418
7479
|
"DataRow": {
|
|
7419
7480
|
"type": "object",
|
|
7420
7481
|
"additionalProperties": {},
|
|
@@ -8570,6 +8631,14 @@
|
|
|
8570
8631
|
"ResponsiveConfig": {
|
|
8571
8632
|
"type": "object",
|
|
8572
8633
|
"properties": {
|
|
8634
|
+
"preserveEnd": {
|
|
8635
|
+
"type": "boolean",
|
|
8636
|
+
"description": "Preserve the final temporal boundary before thinning interior ticks."
|
|
8637
|
+
},
|
|
8638
|
+
"labelSummary": {
|
|
8639
|
+
"type": "boolean",
|
|
8640
|
+
"description": "Move direct series labels into a keyed list when the inline column cannot fit."
|
|
8641
|
+
},
|
|
8573
8642
|
"autoThin": {
|
|
8574
8643
|
"type": "boolean",
|
|
8575
8644
|
"description": "Automatic annotation thinning at narrow widths. When true (default), annotations that can't be placed without overlap are demoted to numbered dot markers with footnote text below the chart. Set false to restore the pre-auto-thinning behavior (annotations hidden at compact breakpoints)."
|
|
@@ -9024,15 +9093,31 @@
|
|
|
9024
9093
|
{
|
|
9025
9094
|
"type": "boolean"
|
|
9026
9095
|
},
|
|
9096
|
+
{
|
|
9097
|
+
"$ref": "#/definitions/AnimationPreset"
|
|
9098
|
+
},
|
|
9027
9099
|
{
|
|
9028
9100
|
"$ref": "#/definitions/AnimationConfig"
|
|
9029
9101
|
}
|
|
9030
9102
|
],
|
|
9031
9103
|
"description": "Animation spec property.\n- true: enable entrance animation with sensible defaults\n- false/omitted: no animation (current behavior)\n- AnimationConfig: full control via enter/update/exit phases"
|
|
9032
9104
|
},
|
|
9105
|
+
"AnimationPreset": {
|
|
9106
|
+
"type": "string",
|
|
9107
|
+
"enum": [
|
|
9108
|
+
"fluid",
|
|
9109
|
+
"subtle",
|
|
9110
|
+
"legacy"
|
|
9111
|
+
],
|
|
9112
|
+
"description": "Opt-in motion language. `legacy` preserves the v8 tween timing."
|
|
9113
|
+
},
|
|
9033
9114
|
"AnimationConfig": {
|
|
9034
9115
|
"type": "object",
|
|
9035
9116
|
"properties": {
|
|
9117
|
+
"preset": {
|
|
9118
|
+
"$ref": "#/definitions/AnimationPreset",
|
|
9119
|
+
"description": "Base preset; explicit phase settings take precedence."
|
|
9120
|
+
},
|
|
9036
9121
|
"enter": {
|
|
9037
9122
|
"anyOf": [
|
|
9038
9123
|
{
|
|
@@ -9077,6 +9162,10 @@
|
|
|
9077
9162
|
"AnimationPhaseConfig": {
|
|
9078
9163
|
"type": "object",
|
|
9079
9164
|
"properties": {
|
|
9165
|
+
"spring": {
|
|
9166
|
+
"$ref": "#/definitions/SpringConfig",
|
|
9167
|
+
"description": "Spring mode. Cannot be combined with duration or ease in this phase."
|
|
9168
|
+
},
|
|
9080
9169
|
"duration": {
|
|
9081
9170
|
"type": "number",
|
|
9082
9171
|
"description": "Duration in ms. Default: 500 for enter."
|
|
@@ -9100,6 +9189,22 @@
|
|
|
9100
9189
|
"additionalProperties": false,
|
|
9101
9190
|
"description": "Animation phase config. Follows Vega's enter/update/exit model. Each phase can be true (use defaults) or a config object."
|
|
9102
9191
|
},
|
|
9192
|
+
"SpringConfig": {
|
|
9193
|
+
"type": "object",
|
|
9194
|
+
"properties": {
|
|
9195
|
+
"stiffness": {
|
|
9196
|
+
"type": "number"
|
|
9197
|
+
},
|
|
9198
|
+
"damping": {
|
|
9199
|
+
"type": "number"
|
|
9200
|
+
},
|
|
9201
|
+
"mass": {
|
|
9202
|
+
"type": "number"
|
|
9203
|
+
}
|
|
9204
|
+
},
|
|
9205
|
+
"additionalProperties": false,
|
|
9206
|
+
"description": "Physical spring parameters. Quantitative motion is bounded at critical damping."
|
|
9207
|
+
},
|
|
9103
9208
|
"AnimationEase": {
|
|
9104
9209
|
"type": "string",
|
|
9105
9210
|
"enum": [
|
|
@@ -9131,6 +9236,10 @@
|
|
|
9131
9236
|
"UpdatePhaseConfig": {
|
|
9132
9237
|
"type": "object",
|
|
9133
9238
|
"properties": {
|
|
9239
|
+
"spring": {
|
|
9240
|
+
"$ref": "#/definitions/SpringConfig",
|
|
9241
|
+
"description": "Spring mode. Cannot be combined with duration or ease in this phase."
|
|
9242
|
+
},
|
|
9134
9243
|
"duration": {
|
|
9135
9244
|
"type": "number",
|
|
9136
9245
|
"description": "Duration in ms. Default: 500 for enter."
|
|
@@ -11757,6 +11866,13 @@
|
|
|
11757
11866
|
"encoding": {
|
|
11758
11867
|
"$ref": "#/definitions/ArcEncoding%3CDataRow%3E"
|
|
11759
11868
|
},
|
|
11869
|
+
"fields": {
|
|
11870
|
+
"type": "object",
|
|
11871
|
+
"additionalProperties": {
|
|
11872
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
11873
|
+
},
|
|
11874
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
11875
|
+
},
|
|
11760
11876
|
"data": {
|
|
11761
11877
|
"type": "array",
|
|
11762
11878
|
"items": {
|
|
@@ -12291,6 +12407,13 @@
|
|
|
12291
12407
|
"encoding": {
|
|
12292
12408
|
"$ref": "#/definitions/LineEncoding%3CDataRow%3E"
|
|
12293
12409
|
},
|
|
12410
|
+
"fields": {
|
|
12411
|
+
"type": "object",
|
|
12412
|
+
"additionalProperties": {
|
|
12413
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
12414
|
+
},
|
|
12415
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
12416
|
+
},
|
|
12294
12417
|
"data": {
|
|
12295
12418
|
"type": "array",
|
|
12296
12419
|
"items": {
|
|
@@ -12825,6 +12948,13 @@
|
|
|
12825
12948
|
"encoding": {
|
|
12826
12949
|
"$ref": "#/definitions/BarEncoding%3CDataRow%3E"
|
|
12827
12950
|
},
|
|
12951
|
+
"fields": {
|
|
12952
|
+
"type": "object",
|
|
12953
|
+
"additionalProperties": {
|
|
12954
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
12955
|
+
},
|
|
12956
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
12957
|
+
},
|
|
12828
12958
|
"data": {
|
|
12829
12959
|
"type": "array",
|
|
12830
12960
|
"items": {
|
|
@@ -13359,6 +13489,13 @@
|
|
|
13359
13489
|
"encoding": {
|
|
13360
13490
|
"$ref": "#/definitions/AreaEncoding%3CDataRow%3E"
|
|
13361
13491
|
},
|
|
13492
|
+
"fields": {
|
|
13493
|
+
"type": "object",
|
|
13494
|
+
"additionalProperties": {
|
|
13495
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
13496
|
+
},
|
|
13497
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
13498
|
+
},
|
|
13362
13499
|
"data": {
|
|
13363
13500
|
"type": "array",
|
|
13364
13501
|
"items": {
|
|
@@ -13893,6 +14030,13 @@
|
|
|
13893
14030
|
"encoding": {
|
|
13894
14031
|
"$ref": "#/definitions/PointEncoding%3CDataRow%3E"
|
|
13895
14032
|
},
|
|
14033
|
+
"fields": {
|
|
14034
|
+
"type": "object",
|
|
14035
|
+
"additionalProperties": {
|
|
14036
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
14037
|
+
},
|
|
14038
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
14039
|
+
},
|
|
13896
14040
|
"data": {
|
|
13897
14041
|
"type": "array",
|
|
13898
14042
|
"items": {
|
|
@@ -14427,6 +14571,13 @@
|
|
|
14427
14571
|
"encoding": {
|
|
14428
14572
|
"$ref": "#/definitions/CircleEncoding%3CDataRow%3E"
|
|
14429
14573
|
},
|
|
14574
|
+
"fields": {
|
|
14575
|
+
"type": "object",
|
|
14576
|
+
"additionalProperties": {
|
|
14577
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
14578
|
+
},
|
|
14579
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
14580
|
+
},
|
|
14430
14581
|
"data": {
|
|
14431
14582
|
"type": "array",
|
|
14432
14583
|
"items": {
|
|
@@ -14961,6 +15112,13 @@
|
|
|
14961
15112
|
"encoding": {
|
|
14962
15113
|
"$ref": "#/definitions/LollipopEncoding%3CDataRow%3E"
|
|
14963
15114
|
},
|
|
15115
|
+
"fields": {
|
|
15116
|
+
"type": "object",
|
|
15117
|
+
"additionalProperties": {
|
|
15118
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
15119
|
+
},
|
|
15120
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
15121
|
+
},
|
|
14964
15122
|
"data": {
|
|
14965
15123
|
"type": "array",
|
|
14966
15124
|
"items": {
|
|
@@ -15495,6 +15653,13 @@
|
|
|
15495
15653
|
"encoding": {
|
|
15496
15654
|
"$ref": "#/definitions/BeeswarmEncoding%3CDataRow%3E"
|
|
15497
15655
|
},
|
|
15656
|
+
"fields": {
|
|
15657
|
+
"type": "object",
|
|
15658
|
+
"additionalProperties": {
|
|
15659
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
15660
|
+
},
|
|
15661
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
15662
|
+
},
|
|
15498
15663
|
"data": {
|
|
15499
15664
|
"type": "array",
|
|
15500
15665
|
"items": {
|
|
@@ -16029,6 +16194,13 @@
|
|
|
16029
16194
|
"encoding": {
|
|
16030
16195
|
"$ref": "#/definitions/RangeEncoding%3CDataRow%3E"
|
|
16031
16196
|
},
|
|
16197
|
+
"fields": {
|
|
16198
|
+
"type": "object",
|
|
16199
|
+
"additionalProperties": {
|
|
16200
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
16201
|
+
},
|
|
16202
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
16203
|
+
},
|
|
16032
16204
|
"data": {
|
|
16033
16205
|
"type": "array",
|
|
16034
16206
|
"items": {
|
|
@@ -16563,6 +16735,13 @@
|
|
|
16563
16735
|
"encoding": {
|
|
16564
16736
|
"$ref": "#/definitions/WaffleEncoding%3CDataRow%3E"
|
|
16565
16737
|
},
|
|
16738
|
+
"fields": {
|
|
16739
|
+
"type": "object",
|
|
16740
|
+
"additionalProperties": {
|
|
16741
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
16742
|
+
},
|
|
16743
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
16744
|
+
},
|
|
16566
16745
|
"data": {
|
|
16567
16746
|
"type": "array",
|
|
16568
16747
|
"items": {
|
|
@@ -17097,6 +17276,13 @@
|
|
|
17097
17276
|
"encoding": {
|
|
17098
17277
|
"$ref": "#/definitions/TextEncoding%3CDataRow%3E"
|
|
17099
17278
|
},
|
|
17279
|
+
"fields": {
|
|
17280
|
+
"type": "object",
|
|
17281
|
+
"additionalProperties": {
|
|
17282
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
17283
|
+
},
|
|
17284
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
17285
|
+
},
|
|
17100
17286
|
"data": {
|
|
17101
17287
|
"type": "array",
|
|
17102
17288
|
"items": {
|
|
@@ -17631,6 +17817,13 @@
|
|
|
17631
17817
|
"encoding": {
|
|
17632
17818
|
"$ref": "#/definitions/TickEncoding%3CDataRow%3E"
|
|
17633
17819
|
},
|
|
17820
|
+
"fields": {
|
|
17821
|
+
"type": "object",
|
|
17822
|
+
"additionalProperties": {
|
|
17823
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
17824
|
+
},
|
|
17825
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
17826
|
+
},
|
|
17634
17827
|
"data": {
|
|
17635
17828
|
"type": "array",
|
|
17636
17829
|
"items": {
|
|
@@ -18165,6 +18358,13 @@
|
|
|
18165
18358
|
"encoding": {
|
|
18166
18359
|
"$ref": "#/definitions/RectEncoding%3CDataRow%3E"
|
|
18167
18360
|
},
|
|
18361
|
+
"fields": {
|
|
18362
|
+
"type": "object",
|
|
18363
|
+
"additionalProperties": {
|
|
18364
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
18365
|
+
},
|
|
18366
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
18367
|
+
},
|
|
18168
18368
|
"data": {
|
|
18169
18369
|
"type": "array",
|
|
18170
18370
|
"items": {
|
|
@@ -18699,6 +18899,13 @@
|
|
|
18699
18899
|
"encoding": {
|
|
18700
18900
|
"$ref": "#/definitions/Encoding%3CDataRow%3E"
|
|
18701
18901
|
},
|
|
18902
|
+
"fields": {
|
|
18903
|
+
"type": "object",
|
|
18904
|
+
"additionalProperties": {
|
|
18905
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
18906
|
+
},
|
|
18907
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
18908
|
+
},
|
|
18702
18909
|
"data": {
|
|
18703
18910
|
"type": "array",
|
|
18704
18911
|
"items": {
|
|
@@ -19233,6 +19440,13 @@
|
|
|
19233
19440
|
"encoding": {
|
|
19234
19441
|
"$ref": "#/definitions/CalendarEncoding%3CDataRow%3E"
|
|
19235
19442
|
},
|
|
19443
|
+
"fields": {
|
|
19444
|
+
"type": "object",
|
|
19445
|
+
"additionalProperties": {
|
|
19446
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
19447
|
+
},
|
|
19448
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
19449
|
+
},
|
|
19236
19450
|
"data": {
|
|
19237
19451
|
"type": "array",
|
|
19238
19452
|
"items": {
|
|
@@ -19767,6 +19981,13 @@
|
|
|
19767
19981
|
"encoding": {
|
|
19768
19982
|
"$ref": "#/definitions/ParliamentEncoding%3CDataRow%3E"
|
|
19769
19983
|
},
|
|
19984
|
+
"fields": {
|
|
19985
|
+
"type": "object",
|
|
19986
|
+
"additionalProperties": {
|
|
19987
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
19988
|
+
},
|
|
19989
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
19990
|
+
},
|
|
19770
19991
|
"data": {
|
|
19771
19992
|
"type": "array",
|
|
19772
19993
|
"items": {
|
|
@@ -20301,6 +20522,13 @@
|
|
|
20301
20522
|
"encoding": {
|
|
20302
20523
|
"$ref": "#/definitions/HistogramEncoding%3CDataRow%3E"
|
|
20303
20524
|
},
|
|
20525
|
+
"fields": {
|
|
20526
|
+
"type": "object",
|
|
20527
|
+
"additionalProperties": {
|
|
20528
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
20529
|
+
},
|
|
20530
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
20531
|
+
},
|
|
20304
20532
|
"data": {
|
|
20305
20533
|
"type": "array",
|
|
20306
20534
|
"items": {
|
|
@@ -20835,6 +21063,13 @@
|
|
|
20835
21063
|
"encoding": {
|
|
20836
21064
|
"$ref": "#/definitions/DensityEncoding%3CDataRow%3E"
|
|
20837
21065
|
},
|
|
21066
|
+
"fields": {
|
|
21067
|
+
"type": "object",
|
|
21068
|
+
"additionalProperties": {
|
|
21069
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
21070
|
+
},
|
|
21071
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
21072
|
+
},
|
|
20838
21073
|
"data": {
|
|
20839
21074
|
"type": "array",
|
|
20840
21075
|
"items": {
|
|
@@ -21184,6 +21419,22 @@
|
|
|
21184
21419
|
"TableSpec": {
|
|
21185
21420
|
"type": "object",
|
|
21186
21421
|
"properties": {
|
|
21422
|
+
"mobileLayout": {
|
|
21423
|
+
"type": "string",
|
|
21424
|
+
"enum": [
|
|
21425
|
+
"cards",
|
|
21426
|
+
"priority",
|
|
21427
|
+
"scroll"
|
|
21428
|
+
],
|
|
21429
|
+
"description": "Compact layout. v8 defaults to cards; priority retains comparable columns with expandable details."
|
|
21430
|
+
},
|
|
21431
|
+
"fields": {
|
|
21432
|
+
"type": "object",
|
|
21433
|
+
"additionalProperties": {
|
|
21434
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
21435
|
+
},
|
|
21436
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
21437
|
+
},
|
|
21187
21438
|
"type": {
|
|
21188
21439
|
"type": "string",
|
|
21189
21440
|
"const": "table",
|
|
@@ -22552,6 +22803,13 @@
|
|
|
22552
22803
|
"GeoMapSpec": {
|
|
22553
22804
|
"type": "object",
|
|
22554
22805
|
"properties": {
|
|
22806
|
+
"fields": {
|
|
22807
|
+
"type": "object",
|
|
22808
|
+
"additionalProperties": {
|
|
22809
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
22810
|
+
},
|
|
22811
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
22812
|
+
},
|
|
22555
22813
|
"type": {
|
|
22556
22814
|
"type": "string",
|
|
22557
22815
|
"const": "map",
|
|
@@ -22984,6 +23242,13 @@
|
|
|
22984
23242
|
"encoding": {
|
|
22985
23243
|
"description": "Encoding channel map."
|
|
22986
23244
|
},
|
|
23245
|
+
"fields": {
|
|
23246
|
+
"type": "object",
|
|
23247
|
+
"additionalProperties": {
|
|
23248
|
+
"$ref": "#/definitions/FieldMetadata"
|
|
23249
|
+
},
|
|
23250
|
+
"description": "Optional authored measure, unit, provenance, and supplied interval metadata."
|
|
23251
|
+
},
|
|
22987
23252
|
"data": {
|
|
22988
23253
|
"type": "array",
|
|
22989
23254
|
"items": {
|