@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.
@@ -4926,6 +4926,369 @@
4926
4926
  "ChartSpecOverride": {
4927
4927
  "type": "object",
4928
4928
  "properties": {
4929
+ "encoding": {
4930
+ "type": "object",
4931
+ "properties": {
4932
+ "x": {
4933
+ "type": "object",
4934
+ "properties": {
4935
+ "axis": {
4936
+ "anyOf": [
4937
+ {
4938
+ "$ref": "#/definitions/AxisConfig"
4939
+ },
4940
+ {
4941
+ "type": "boolean",
4942
+ "const": false
4943
+ }
4944
+ ]
4945
+ },
4946
+ "scale": {
4947
+ "type": "object",
4948
+ "properties": {
4949
+ "domain": {
4950
+ "anyOf": [
4951
+ {
4952
+ "type": "array",
4953
+ "items": {
4954
+ "type": "number"
4955
+ }
4956
+ },
4957
+ {
4958
+ "type": "array",
4959
+ "items": {
4960
+ "type": "string"
4961
+ }
4962
+ }
4963
+ ],
4964
+ "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."
4965
+ },
4966
+ "type": {
4967
+ "$ref": "#/definitions/ScaleType",
4968
+ "description": "Scale type override. Usually inferred from field type."
4969
+ },
4970
+ "nice": {
4971
+ "type": "boolean",
4972
+ "description": "Whether to nice-ify the domain for clean tick values. Defaults to true."
4973
+ },
4974
+ "zero": {
4975
+ "type": "boolean",
4976
+ "description": "Whether the domain should include zero. Defaults to true for quantitative."
4977
+ },
4978
+ "clip": {
4979
+ "type": "boolean",
4980
+ "description": "When true and domain is set, filter out data rows with values outside the domain range."
4981
+ },
4982
+ "range": {
4983
+ "type": "array",
4984
+ "items": {},
4985
+ "description": "Explicit range override."
4986
+ },
4987
+ "clamp": {
4988
+ "type": "boolean",
4989
+ "description": "Clamp output to the range."
4990
+ },
4991
+ "padding": {
4992
+ "type": "number",
4993
+ "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."
4994
+ },
4995
+ "paddingInner": {
4996
+ "type": "number",
4997
+ "description": "Inner padding for band scales."
4998
+ },
4999
+ "paddingOuter": {
5000
+ "type": "number",
5001
+ "description": "Outer padding for band scales."
5002
+ },
5003
+ "exponent": {
5004
+ "type": "number",
5005
+ "description": "Exponent for pow scales."
5006
+ },
5007
+ "base": {
5008
+ "type": "number",
5009
+ "description": "Base for log scales (default 10)."
5010
+ },
5011
+ "constant": {
5012
+ "type": "number",
5013
+ "description": "Constant for symlog scales."
5014
+ }
5015
+ },
5016
+ "additionalProperties": false
5017
+ }
5018
+ },
5019
+ "additionalProperties": false
5020
+ },
5021
+ "y": {
5022
+ "type": "object",
5023
+ "properties": {
5024
+ "axis": {
5025
+ "anyOf": [
5026
+ {
5027
+ "$ref": "#/definitions/AxisConfig"
5028
+ },
5029
+ {
5030
+ "type": "boolean",
5031
+ "const": false
5032
+ }
5033
+ ]
5034
+ },
5035
+ "scale": {
5036
+ "type": "object",
5037
+ "properties": {
5038
+ "domain": {
5039
+ "anyOf": [
5040
+ {
5041
+ "type": "array",
5042
+ "items": {
5043
+ "type": "number"
5044
+ }
5045
+ },
5046
+ {
5047
+ "type": "array",
5048
+ "items": {
5049
+ "type": "string"
5050
+ }
5051
+ }
5052
+ ],
5053
+ "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."
5054
+ },
5055
+ "type": {
5056
+ "$ref": "#/definitions/ScaleType",
5057
+ "description": "Scale type override. Usually inferred from field type."
5058
+ },
5059
+ "nice": {
5060
+ "type": "boolean",
5061
+ "description": "Whether to nice-ify the domain for clean tick values. Defaults to true."
5062
+ },
5063
+ "zero": {
5064
+ "type": "boolean",
5065
+ "description": "Whether the domain should include zero. Defaults to true for quantitative."
5066
+ },
5067
+ "clip": {
5068
+ "type": "boolean",
5069
+ "description": "When true and domain is set, filter out data rows with values outside the domain range."
5070
+ },
5071
+ "range": {
5072
+ "type": "array",
5073
+ "items": {},
5074
+ "description": "Explicit range override."
5075
+ },
5076
+ "clamp": {
5077
+ "type": "boolean",
5078
+ "description": "Clamp output to the range."
5079
+ },
5080
+ "padding": {
5081
+ "type": "number",
5082
+ "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."
5083
+ },
5084
+ "paddingInner": {
5085
+ "type": "number",
5086
+ "description": "Inner padding for band scales."
5087
+ },
5088
+ "paddingOuter": {
5089
+ "type": "number",
5090
+ "description": "Outer padding for band scales."
5091
+ },
5092
+ "exponent": {
5093
+ "type": "number",
5094
+ "description": "Exponent for pow scales."
5095
+ },
5096
+ "base": {
5097
+ "type": "number",
5098
+ "description": "Base for log scales (default 10)."
5099
+ },
5100
+ "constant": {
5101
+ "type": "number",
5102
+ "description": "Constant for symlog scales."
5103
+ }
5104
+ },
5105
+ "additionalProperties": false
5106
+ }
5107
+ },
5108
+ "additionalProperties": false
5109
+ },
5110
+ "color": {
5111
+ "type": "object",
5112
+ "properties": {
5113
+ "axis": {
5114
+ "anyOf": [
5115
+ {
5116
+ "$ref": "#/definitions/AxisConfig"
5117
+ },
5118
+ {
5119
+ "type": "boolean",
5120
+ "const": false
5121
+ }
5122
+ ]
5123
+ },
5124
+ "scale": {
5125
+ "type": "object",
5126
+ "properties": {
5127
+ "domain": {
5128
+ "anyOf": [
5129
+ {
5130
+ "type": "array",
5131
+ "items": {
5132
+ "type": "number"
5133
+ }
5134
+ },
5135
+ {
5136
+ "type": "array",
5137
+ "items": {
5138
+ "type": "string"
5139
+ }
5140
+ }
5141
+ ],
5142
+ "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."
5143
+ },
5144
+ "type": {
5145
+ "$ref": "#/definitions/ScaleType",
5146
+ "description": "Scale type override. Usually inferred from field type."
5147
+ },
5148
+ "nice": {
5149
+ "type": "boolean",
5150
+ "description": "Whether to nice-ify the domain for clean tick values. Defaults to true."
5151
+ },
5152
+ "zero": {
5153
+ "type": "boolean",
5154
+ "description": "Whether the domain should include zero. Defaults to true for quantitative."
5155
+ },
5156
+ "clip": {
5157
+ "type": "boolean",
5158
+ "description": "When true and domain is set, filter out data rows with values outside the domain range."
5159
+ },
5160
+ "range": {
5161
+ "type": "array",
5162
+ "items": {},
5163
+ "description": "Explicit range override."
5164
+ },
5165
+ "clamp": {
5166
+ "type": "boolean",
5167
+ "description": "Clamp output to the range."
5168
+ },
5169
+ "padding": {
5170
+ "type": "number",
5171
+ "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."
5172
+ },
5173
+ "paddingInner": {
5174
+ "type": "number",
5175
+ "description": "Inner padding for band scales."
5176
+ },
5177
+ "paddingOuter": {
5178
+ "type": "number",
5179
+ "description": "Outer padding for band scales."
5180
+ },
5181
+ "exponent": {
5182
+ "type": "number",
5183
+ "description": "Exponent for pow scales."
5184
+ },
5185
+ "base": {
5186
+ "type": "number",
5187
+ "description": "Base for log scales (default 10)."
5188
+ },
5189
+ "constant": {
5190
+ "type": "number",
5191
+ "description": "Constant for symlog scales."
5192
+ }
5193
+ },
5194
+ "additionalProperties": false
5195
+ }
5196
+ },
5197
+ "additionalProperties": false
5198
+ },
5199
+ "size": {
5200
+ "type": "object",
5201
+ "properties": {
5202
+ "axis": {
5203
+ "anyOf": [
5204
+ {
5205
+ "$ref": "#/definitions/AxisConfig"
5206
+ },
5207
+ {
5208
+ "type": "boolean",
5209
+ "const": false
5210
+ }
5211
+ ]
5212
+ },
5213
+ "scale": {
5214
+ "type": "object",
5215
+ "properties": {
5216
+ "domain": {
5217
+ "anyOf": [
5218
+ {
5219
+ "type": "array",
5220
+ "items": {
5221
+ "type": "number"
5222
+ }
5223
+ },
5224
+ {
5225
+ "type": "array",
5226
+ "items": {
5227
+ "type": "string"
5228
+ }
5229
+ }
5230
+ ],
5231
+ "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."
5232
+ },
5233
+ "type": {
5234
+ "$ref": "#/definitions/ScaleType",
5235
+ "description": "Scale type override. Usually inferred from field type."
5236
+ },
5237
+ "nice": {
5238
+ "type": "boolean",
5239
+ "description": "Whether to nice-ify the domain for clean tick values. Defaults to true."
5240
+ },
5241
+ "zero": {
5242
+ "type": "boolean",
5243
+ "description": "Whether the domain should include zero. Defaults to true for quantitative."
5244
+ },
5245
+ "clip": {
5246
+ "type": "boolean",
5247
+ "description": "When true and domain is set, filter out data rows with values outside the domain range."
5248
+ },
5249
+ "range": {
5250
+ "type": "array",
5251
+ "items": {},
5252
+ "description": "Explicit range override."
5253
+ },
5254
+ "clamp": {
5255
+ "type": "boolean",
5256
+ "description": "Clamp output to the range."
5257
+ },
5258
+ "padding": {
5259
+ "type": "number",
5260
+ "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."
5261
+ },
5262
+ "paddingInner": {
5263
+ "type": "number",
5264
+ "description": "Inner padding for band scales."
5265
+ },
5266
+ "paddingOuter": {
5267
+ "type": "number",
5268
+ "description": "Outer padding for band scales."
5269
+ },
5270
+ "exponent": {
5271
+ "type": "number",
5272
+ "description": "Exponent for pow scales."
5273
+ },
5274
+ "base": {
5275
+ "type": "number",
5276
+ "description": "Base for log scales (default 10)."
5277
+ },
5278
+ "constant": {
5279
+ "type": "number",
5280
+ "description": "Constant for symlog scales."
5281
+ }
5282
+ },
5283
+ "additionalProperties": false
5284
+ }
5285
+ },
5286
+ "additionalProperties": false
5287
+ }
5288
+ },
5289
+ "additionalProperties": false,
5290
+ "description": "Patch axis and scale settings on existing scale-bearing channels; nested properties merge with the base."
5291
+ },
4929
5292
  "chrome": {
4930
5293
  "$ref": "#/definitions/Chrome",
4931
5294
  "description": "Override editorial chrome at this breakpoint."