@opendata-ai/openchart-core 9.0.0-rc.1 → 9.0.0-rc.2
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 +7 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
- package/schema/chart.schema.json +363 -0
- package/schema/vizspec.schema.json +363 -0
package/schema/chart.schema.json
CHANGED
|
@@ -4897,6 +4897,369 @@
|
|
|
4897
4897
|
"ChartSpecOverride": {
|
|
4898
4898
|
"type": "object",
|
|
4899
4899
|
"properties": {
|
|
4900
|
+
"encoding": {
|
|
4901
|
+
"type": "object",
|
|
4902
|
+
"properties": {
|
|
4903
|
+
"x": {
|
|
4904
|
+
"type": "object",
|
|
4905
|
+
"properties": {
|
|
4906
|
+
"axis": {
|
|
4907
|
+
"anyOf": [
|
|
4908
|
+
{
|
|
4909
|
+
"$ref": "#/definitions/AxisConfig"
|
|
4910
|
+
},
|
|
4911
|
+
{
|
|
4912
|
+
"type": "boolean",
|
|
4913
|
+
"const": false
|
|
4914
|
+
}
|
|
4915
|
+
]
|
|
4916
|
+
},
|
|
4917
|
+
"scale": {
|
|
4918
|
+
"type": "object",
|
|
4919
|
+
"properties": {
|
|
4920
|
+
"domain": {
|
|
4921
|
+
"anyOf": [
|
|
4922
|
+
{
|
|
4923
|
+
"type": "array",
|
|
4924
|
+
"items": {
|
|
4925
|
+
"type": "number"
|
|
4926
|
+
}
|
|
4927
|
+
},
|
|
4928
|
+
{
|
|
4929
|
+
"type": "array",
|
|
4930
|
+
"items": {
|
|
4931
|
+
"type": "string"
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
],
|
|
4935
|
+
"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."
|
|
4936
|
+
},
|
|
4937
|
+
"type": {
|
|
4938
|
+
"$ref": "#/definitions/ScaleType",
|
|
4939
|
+
"description": "Scale type override. Usually inferred from field type."
|
|
4940
|
+
},
|
|
4941
|
+
"nice": {
|
|
4942
|
+
"type": "boolean",
|
|
4943
|
+
"description": "Whether to nice-ify the domain for clean tick values. Defaults to true."
|
|
4944
|
+
},
|
|
4945
|
+
"zero": {
|
|
4946
|
+
"type": "boolean",
|
|
4947
|
+
"description": "Whether the domain should include zero. Defaults to true for quantitative."
|
|
4948
|
+
},
|
|
4949
|
+
"clip": {
|
|
4950
|
+
"type": "boolean",
|
|
4951
|
+
"description": "When true and domain is set, filter out data rows with values outside the domain range."
|
|
4952
|
+
},
|
|
4953
|
+
"range": {
|
|
4954
|
+
"type": "array",
|
|
4955
|
+
"items": {},
|
|
4956
|
+
"description": "Explicit range override."
|
|
4957
|
+
},
|
|
4958
|
+
"clamp": {
|
|
4959
|
+
"type": "boolean",
|
|
4960
|
+
"description": "Clamp output to the range."
|
|
4961
|
+
},
|
|
4962
|
+
"padding": {
|
|
4963
|
+
"type": "number",
|
|
4964
|
+
"description": "Padding for band/point scales. Point-scale default (a categorical x/y on a line/area/point mark) is 0 for line and area marks (the trend runs flush to the plot edges) and 0.5 for other marks (e.g. scatter, so points don't collide with the axis). `paddingOuter` is accepted as an alias here since point scales have no inner bands."
|
|
4965
|
+
},
|
|
4966
|
+
"paddingInner": {
|
|
4967
|
+
"type": "number",
|
|
4968
|
+
"description": "Inner padding for band scales."
|
|
4969
|
+
},
|
|
4970
|
+
"paddingOuter": {
|
|
4971
|
+
"type": "number",
|
|
4972
|
+
"description": "Outer padding for band scales."
|
|
4973
|
+
},
|
|
4974
|
+
"exponent": {
|
|
4975
|
+
"type": "number",
|
|
4976
|
+
"description": "Exponent for pow scales."
|
|
4977
|
+
},
|
|
4978
|
+
"base": {
|
|
4979
|
+
"type": "number",
|
|
4980
|
+
"description": "Base for log scales (default 10)."
|
|
4981
|
+
},
|
|
4982
|
+
"constant": {
|
|
4983
|
+
"type": "number",
|
|
4984
|
+
"description": "Constant for symlog scales."
|
|
4985
|
+
}
|
|
4986
|
+
},
|
|
4987
|
+
"additionalProperties": false
|
|
4988
|
+
}
|
|
4989
|
+
},
|
|
4990
|
+
"additionalProperties": false
|
|
4991
|
+
},
|
|
4992
|
+
"y": {
|
|
4993
|
+
"type": "object",
|
|
4994
|
+
"properties": {
|
|
4995
|
+
"axis": {
|
|
4996
|
+
"anyOf": [
|
|
4997
|
+
{
|
|
4998
|
+
"$ref": "#/definitions/AxisConfig"
|
|
4999
|
+
},
|
|
5000
|
+
{
|
|
5001
|
+
"type": "boolean",
|
|
5002
|
+
"const": false
|
|
5003
|
+
}
|
|
5004
|
+
]
|
|
5005
|
+
},
|
|
5006
|
+
"scale": {
|
|
5007
|
+
"type": "object",
|
|
5008
|
+
"properties": {
|
|
5009
|
+
"domain": {
|
|
5010
|
+
"anyOf": [
|
|
5011
|
+
{
|
|
5012
|
+
"type": "array",
|
|
5013
|
+
"items": {
|
|
5014
|
+
"type": "number"
|
|
5015
|
+
}
|
|
5016
|
+
},
|
|
5017
|
+
{
|
|
5018
|
+
"type": "array",
|
|
5019
|
+
"items": {
|
|
5020
|
+
"type": "string"
|
|
5021
|
+
}
|
|
5022
|
+
}
|
|
5023
|
+
],
|
|
5024
|
+
"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."
|
|
5025
|
+
},
|
|
5026
|
+
"type": {
|
|
5027
|
+
"$ref": "#/definitions/ScaleType",
|
|
5028
|
+
"description": "Scale type override. Usually inferred from field type."
|
|
5029
|
+
},
|
|
5030
|
+
"nice": {
|
|
5031
|
+
"type": "boolean",
|
|
5032
|
+
"description": "Whether to nice-ify the domain for clean tick values. Defaults to true."
|
|
5033
|
+
},
|
|
5034
|
+
"zero": {
|
|
5035
|
+
"type": "boolean",
|
|
5036
|
+
"description": "Whether the domain should include zero. Defaults to true for quantitative."
|
|
5037
|
+
},
|
|
5038
|
+
"clip": {
|
|
5039
|
+
"type": "boolean",
|
|
5040
|
+
"description": "When true and domain is set, filter out data rows with values outside the domain range."
|
|
5041
|
+
},
|
|
5042
|
+
"range": {
|
|
5043
|
+
"type": "array",
|
|
5044
|
+
"items": {},
|
|
5045
|
+
"description": "Explicit range override."
|
|
5046
|
+
},
|
|
5047
|
+
"clamp": {
|
|
5048
|
+
"type": "boolean",
|
|
5049
|
+
"description": "Clamp output to the range."
|
|
5050
|
+
},
|
|
5051
|
+
"padding": {
|
|
5052
|
+
"type": "number",
|
|
5053
|
+
"description": "Padding for band/point scales. Point-scale default (a categorical x/y on a line/area/point mark) is 0 for line and area marks (the trend runs flush to the plot edges) and 0.5 for other marks (e.g. scatter, so points don't collide with the axis). `paddingOuter` is accepted as an alias here since point scales have no inner bands."
|
|
5054
|
+
},
|
|
5055
|
+
"paddingInner": {
|
|
5056
|
+
"type": "number",
|
|
5057
|
+
"description": "Inner padding for band scales."
|
|
5058
|
+
},
|
|
5059
|
+
"paddingOuter": {
|
|
5060
|
+
"type": "number",
|
|
5061
|
+
"description": "Outer padding for band scales."
|
|
5062
|
+
},
|
|
5063
|
+
"exponent": {
|
|
5064
|
+
"type": "number",
|
|
5065
|
+
"description": "Exponent for pow scales."
|
|
5066
|
+
},
|
|
5067
|
+
"base": {
|
|
5068
|
+
"type": "number",
|
|
5069
|
+
"description": "Base for log scales (default 10)."
|
|
5070
|
+
},
|
|
5071
|
+
"constant": {
|
|
5072
|
+
"type": "number",
|
|
5073
|
+
"description": "Constant for symlog scales."
|
|
5074
|
+
}
|
|
5075
|
+
},
|
|
5076
|
+
"additionalProperties": false
|
|
5077
|
+
}
|
|
5078
|
+
},
|
|
5079
|
+
"additionalProperties": false
|
|
5080
|
+
},
|
|
5081
|
+
"color": {
|
|
5082
|
+
"type": "object",
|
|
5083
|
+
"properties": {
|
|
5084
|
+
"axis": {
|
|
5085
|
+
"anyOf": [
|
|
5086
|
+
{
|
|
5087
|
+
"$ref": "#/definitions/AxisConfig"
|
|
5088
|
+
},
|
|
5089
|
+
{
|
|
5090
|
+
"type": "boolean",
|
|
5091
|
+
"const": false
|
|
5092
|
+
}
|
|
5093
|
+
]
|
|
5094
|
+
},
|
|
5095
|
+
"scale": {
|
|
5096
|
+
"type": "object",
|
|
5097
|
+
"properties": {
|
|
5098
|
+
"domain": {
|
|
5099
|
+
"anyOf": [
|
|
5100
|
+
{
|
|
5101
|
+
"type": "array",
|
|
5102
|
+
"items": {
|
|
5103
|
+
"type": "number"
|
|
5104
|
+
}
|
|
5105
|
+
},
|
|
5106
|
+
{
|
|
5107
|
+
"type": "array",
|
|
5108
|
+
"items": {
|
|
5109
|
+
"type": "string"
|
|
5110
|
+
}
|
|
5111
|
+
}
|
|
5112
|
+
],
|
|
5113
|
+
"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."
|
|
5114
|
+
},
|
|
5115
|
+
"type": {
|
|
5116
|
+
"$ref": "#/definitions/ScaleType",
|
|
5117
|
+
"description": "Scale type override. Usually inferred from field type."
|
|
5118
|
+
},
|
|
5119
|
+
"nice": {
|
|
5120
|
+
"type": "boolean",
|
|
5121
|
+
"description": "Whether to nice-ify the domain for clean tick values. Defaults to true."
|
|
5122
|
+
},
|
|
5123
|
+
"zero": {
|
|
5124
|
+
"type": "boolean",
|
|
5125
|
+
"description": "Whether the domain should include zero. Defaults to true for quantitative."
|
|
5126
|
+
},
|
|
5127
|
+
"clip": {
|
|
5128
|
+
"type": "boolean",
|
|
5129
|
+
"description": "When true and domain is set, filter out data rows with values outside the domain range."
|
|
5130
|
+
},
|
|
5131
|
+
"range": {
|
|
5132
|
+
"type": "array",
|
|
5133
|
+
"items": {},
|
|
5134
|
+
"description": "Explicit range override."
|
|
5135
|
+
},
|
|
5136
|
+
"clamp": {
|
|
5137
|
+
"type": "boolean",
|
|
5138
|
+
"description": "Clamp output to the range."
|
|
5139
|
+
},
|
|
5140
|
+
"padding": {
|
|
5141
|
+
"type": "number",
|
|
5142
|
+
"description": "Padding for band/point scales. Point-scale default (a categorical x/y on a line/area/point mark) is 0 for line and area marks (the trend runs flush to the plot edges) and 0.5 for other marks (e.g. scatter, so points don't collide with the axis). `paddingOuter` is accepted as an alias here since point scales have no inner bands."
|
|
5143
|
+
},
|
|
5144
|
+
"paddingInner": {
|
|
5145
|
+
"type": "number",
|
|
5146
|
+
"description": "Inner padding for band scales."
|
|
5147
|
+
},
|
|
5148
|
+
"paddingOuter": {
|
|
5149
|
+
"type": "number",
|
|
5150
|
+
"description": "Outer padding for band scales."
|
|
5151
|
+
},
|
|
5152
|
+
"exponent": {
|
|
5153
|
+
"type": "number",
|
|
5154
|
+
"description": "Exponent for pow scales."
|
|
5155
|
+
},
|
|
5156
|
+
"base": {
|
|
5157
|
+
"type": "number",
|
|
5158
|
+
"description": "Base for log scales (default 10)."
|
|
5159
|
+
},
|
|
5160
|
+
"constant": {
|
|
5161
|
+
"type": "number",
|
|
5162
|
+
"description": "Constant for symlog scales."
|
|
5163
|
+
}
|
|
5164
|
+
},
|
|
5165
|
+
"additionalProperties": false
|
|
5166
|
+
}
|
|
5167
|
+
},
|
|
5168
|
+
"additionalProperties": false
|
|
5169
|
+
},
|
|
5170
|
+
"size": {
|
|
5171
|
+
"type": "object",
|
|
5172
|
+
"properties": {
|
|
5173
|
+
"axis": {
|
|
5174
|
+
"anyOf": [
|
|
5175
|
+
{
|
|
5176
|
+
"$ref": "#/definitions/AxisConfig"
|
|
5177
|
+
},
|
|
5178
|
+
{
|
|
5179
|
+
"type": "boolean",
|
|
5180
|
+
"const": false
|
|
5181
|
+
}
|
|
5182
|
+
]
|
|
5183
|
+
},
|
|
5184
|
+
"scale": {
|
|
5185
|
+
"type": "object",
|
|
5186
|
+
"properties": {
|
|
5187
|
+
"domain": {
|
|
5188
|
+
"anyOf": [
|
|
5189
|
+
{
|
|
5190
|
+
"type": "array",
|
|
5191
|
+
"items": {
|
|
5192
|
+
"type": "number"
|
|
5193
|
+
}
|
|
5194
|
+
},
|
|
5195
|
+
{
|
|
5196
|
+
"type": "array",
|
|
5197
|
+
"items": {
|
|
5198
|
+
"type": "string"
|
|
5199
|
+
}
|
|
5200
|
+
}
|
|
5201
|
+
],
|
|
5202
|
+
"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."
|
|
5203
|
+
},
|
|
5204
|
+
"type": {
|
|
5205
|
+
"$ref": "#/definitions/ScaleType",
|
|
5206
|
+
"description": "Scale type override. Usually inferred from field type."
|
|
5207
|
+
},
|
|
5208
|
+
"nice": {
|
|
5209
|
+
"type": "boolean",
|
|
5210
|
+
"description": "Whether to nice-ify the domain for clean tick values. Defaults to true."
|
|
5211
|
+
},
|
|
5212
|
+
"zero": {
|
|
5213
|
+
"type": "boolean",
|
|
5214
|
+
"description": "Whether the domain should include zero. Defaults to true for quantitative."
|
|
5215
|
+
},
|
|
5216
|
+
"clip": {
|
|
5217
|
+
"type": "boolean",
|
|
5218
|
+
"description": "When true and domain is set, filter out data rows with values outside the domain range."
|
|
5219
|
+
},
|
|
5220
|
+
"range": {
|
|
5221
|
+
"type": "array",
|
|
5222
|
+
"items": {},
|
|
5223
|
+
"description": "Explicit range override."
|
|
5224
|
+
},
|
|
5225
|
+
"clamp": {
|
|
5226
|
+
"type": "boolean",
|
|
5227
|
+
"description": "Clamp output to the range."
|
|
5228
|
+
},
|
|
5229
|
+
"padding": {
|
|
5230
|
+
"type": "number",
|
|
5231
|
+
"description": "Padding for band/point scales. Point-scale default (a categorical x/y on a line/area/point mark) is 0 for line and area marks (the trend runs flush to the plot edges) and 0.5 for other marks (e.g. scatter, so points don't collide with the axis). `paddingOuter` is accepted as an alias here since point scales have no inner bands."
|
|
5232
|
+
},
|
|
5233
|
+
"paddingInner": {
|
|
5234
|
+
"type": "number",
|
|
5235
|
+
"description": "Inner padding for band scales."
|
|
5236
|
+
},
|
|
5237
|
+
"paddingOuter": {
|
|
5238
|
+
"type": "number",
|
|
5239
|
+
"description": "Outer padding for band scales."
|
|
5240
|
+
},
|
|
5241
|
+
"exponent": {
|
|
5242
|
+
"type": "number",
|
|
5243
|
+
"description": "Exponent for pow scales."
|
|
5244
|
+
},
|
|
5245
|
+
"base": {
|
|
5246
|
+
"type": "number",
|
|
5247
|
+
"description": "Base for log scales (default 10)."
|
|
5248
|
+
},
|
|
5249
|
+
"constant": {
|
|
5250
|
+
"type": "number",
|
|
5251
|
+
"description": "Constant for symlog scales."
|
|
5252
|
+
}
|
|
5253
|
+
},
|
|
5254
|
+
"additionalProperties": false
|
|
5255
|
+
}
|
|
5256
|
+
},
|
|
5257
|
+
"additionalProperties": false
|
|
5258
|
+
}
|
|
5259
|
+
},
|
|
5260
|
+
"additionalProperties": false,
|
|
5261
|
+
"description": "Patch axis and scale settings on existing scale-bearing channels; nested properties merge with the base."
|
|
5262
|
+
},
|
|
4900
5263
|
"chrome": {
|
|
4901
5264
|
"$ref": "#/definitions/Chrome",
|
|
4902
5265
|
"description": "Override editorial chrome at this breakpoint."
|