@luzmo/dashboard-contents-types 1.0.5 → 1.0.6
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/CHANGELOG.md +41 -0
- package/README.md +132 -0
- package/assets/json-schemas/area-chart-options.schema.json.d.ts +23 -42
- package/assets/json-schemas/bar-chart-options.schema.json.d.ts +23 -42
- package/assets/json-schemas/box-plot-options.schema.json.d.ts +20 -39
- package/assets/json-schemas/bubble-chart-options.schema.json.d.ts +23 -42
- package/assets/json-schemas/bullet-chart-options.schema.json.d.ts +13 -35
- package/assets/json-schemas/choropleth-map-options.schema.json.d.ts +16 -38
- package/assets/json-schemas/circular-gauge-options.schema.json.d.ts +20 -39
- package/assets/json-schemas/column-chart-options.schema.json.d.ts +23 -42
- package/assets/json-schemas/combination-chart-options.schema.json.d.ts +23 -42
- package/assets/json-schemas/date-filter-options.schema.json.d.ts +10 -23
- package/assets/json-schemas/donut-chart-options.schema.json.d.ts +23 -42
- package/assets/json-schemas/dropdown-filter-options.schema.json.d.ts +10 -23
- package/assets/json-schemas/evolution-number-options.schema.json.d.ts +19 -38
- package/assets/json-schemas/funnel-chart-options.schema.json.d.ts +23 -42
- package/assets/json-schemas/heat-map-options.schema.json.d.ts +13 -35
- package/assets/json-schemas/heat-table-options.schema.json.d.ts +1514 -0
- package/assets/json-schemas/heat-table-slots.schema.json.d.ts +514 -0
- package/assets/json-schemas/heat-table.schema.json.d.ts +23 -0
- package/assets/json-schemas/hexbin-map-options.schema.json.d.ts +20 -39
- package/assets/json-schemas/image-options.schema.json.d.ts +7 -7
- package/assets/json-schemas/line-chart-options.schema.json.d.ts +23 -42
- package/assets/json-schemas/marker-map-options.schema.json.d.ts +13 -35
- package/assets/json-schemas/ohlc-chart-options.schema.json.d.ts +1568 -0
- package/assets/json-schemas/ohlc-chart-slots.schema.json.d.ts +578 -0
- package/assets/json-schemas/ohlc-chart.schema.json.d.ts +23 -0
- package/assets/json-schemas/options.schema.json.d.ts +9 -0
- package/assets/json-schemas/pivot-table-options.schema.json.d.ts +13 -35
- package/assets/json-schemas/regular-table-options.schema.json.d.ts +13 -35
- package/assets/json-schemas/route-map-options.schema.json.d.ts +13 -35
- package/assets/json-schemas/sankey-diagram-options.schema.json.d.ts +20 -39
- package/assets/json-schemas/scatter-plot-options.schema.json.d.ts +23 -42
- package/assets/json-schemas/search-filter-options.schema.json.d.ts +10 -23
- package/assets/json-schemas/slicer-filter-options.schema.json.d.ts +10 -23
- package/assets/json-schemas/slider-filter-options.schema.json.d.ts +10 -23
- package/assets/json-schemas/slots.schema.json.d.ts +9 -0
- package/assets/json-schemas/speedometer-chart-options.schema.json.d.ts +10 -23
- package/assets/json-schemas/spike-map-options.schema.json.d.ts +20 -39
- package/assets/json-schemas/sunburst-chart-options.schema.json.d.ts +1419 -0
- package/assets/json-schemas/sunburst-chart-slots.schema.json.d.ts +481 -0
- package/assets/json-schemas/sunburst-chart.schema.json.d.ts +23 -0
- package/assets/json-schemas/symbol-map-options.schema.json.d.ts +20 -39
- package/assets/json-schemas/text-options.schema.json.d.ts +8 -21
- package/assets/json-schemas/treemap-chart-options.schema.json.d.ts +23 -42
- package/assets/json-schemas/video-options.schema.json.d.ts +7 -20
- package/assets/json-schemas/wordcloud-chart-options.schema.json.d.ts +22 -41
- package/index.js +95 -65
- package/index.mjs +12875 -7305
- package/json-schemas.d.ts +8181 -4062
- package/json-schemas.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.d.ts.map +1 -1
- package/src/lib/heat-table/heat-table-options.d.ts +186 -0
- package/src/lib/heat-table/heat-table-options.d.ts.map +1 -0
- package/src/lib/heat-table/heat-table-slots.d.ts +41 -0
- package/src/lib/heat-table/heat-table-slots.d.ts.map +1 -0
- package/src/lib/heat-table/heat-table.d.ts +24 -0
- package/src/lib/heat-table/heat-table.d.ts.map +1 -0
- package/src/lib/heat-table/index.d.ts +3 -0
- package/src/lib/heat-table/index.d.ts.map +1 -1
- package/src/lib/ohlc-chart/index.d.ts +3 -0
- package/src/lib/ohlc-chart/index.d.ts.map +1 -1
- package/src/lib/ohlc-chart/ohlc-chart-options.d.ts +201 -0
- package/src/lib/ohlc-chart/ohlc-chart-options.d.ts.map +1 -0
- package/src/lib/ohlc-chart/ohlc-chart-slots.d.ts +63 -0
- package/src/lib/ohlc-chart/ohlc-chart-slots.d.ts.map +1 -0
- package/src/lib/ohlc-chart/ohlc-chart.d.ts +24 -0
- package/src/lib/ohlc-chart/ohlc-chart.d.ts.map +1 -0
- package/src/lib/shared/legend.d.ts +1 -1
- package/src/lib/shared/slots.d.ts +1 -0
- package/src/lib/shared/slots.d.ts.map +1 -1
- package/src/lib/shared/theme.d.ts +21 -19
- package/src/lib/shared/theme.d.ts.map +1 -1
- package/src/lib/shared/title.d.ts +1 -1
- package/src/lib/sunburst-chart/index.d.ts +3 -0
- package/src/lib/sunburst-chart/index.d.ts.map +1 -1
- package/src/lib/sunburst-chart/sunburst-chart-options.d.ts +88 -0
- package/src/lib/sunburst-chart/sunburst-chart-options.d.ts.map +1 -0
- package/src/lib/sunburst-chart/sunburst-chart-slots.d.ts +29 -0
- package/src/lib/sunburst-chart/sunburst-chart-slots.d.ts.map +1 -0
- package/src/lib/sunburst-chart/sunburst-chart.d.ts +24 -0
- package/src/lib/sunburst-chart/sunburst-chart.d.ts.map +1 -0
- package/src/options.d.ts +4 -1
- package/src/options.d.ts.map +1 -1
- package/src/slots.d.ts +0 -35
- package/src/slots.d.ts.map +0 -1
|
@@ -0,0 +1,578 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"CloseSlot": {
|
|
6
|
+
"description": "Close slot definition of the OHLC chart",
|
|
7
|
+
"properties": {
|
|
8
|
+
"content": {
|
|
9
|
+
"description": "Close slot definition, it can contain numeric data",
|
|
10
|
+
"items": {
|
|
11
|
+
"anyOf": [
|
|
12
|
+
{
|
|
13
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"maxItems": 1,
|
|
24
|
+
"type": "array"
|
|
25
|
+
},
|
|
26
|
+
"name": {
|
|
27
|
+
"const": "close",
|
|
28
|
+
"description": "Name of the slot",
|
|
29
|
+
"type": "string"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"type": "object"
|
|
33
|
+
},
|
|
34
|
+
"ColumnSubtype": {
|
|
35
|
+
"enum": [
|
|
36
|
+
"coordinates",
|
|
37
|
+
"currency",
|
|
38
|
+
"duration",
|
|
39
|
+
"hierarchy_element_expression",
|
|
40
|
+
"topography"
|
|
41
|
+
],
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"DateTimeSlotContent": {
|
|
45
|
+
"properties": {
|
|
46
|
+
"aggregationFunc": {
|
|
47
|
+
"description": "Basic aggregation function. It can be used when a \"datetime\" column is used in a measure slot.",
|
|
48
|
+
"enum": [
|
|
49
|
+
"count",
|
|
50
|
+
"distinctcount"
|
|
51
|
+
],
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"color": {
|
|
55
|
+
"description": "Color of the column. Any column type can have it, but it's applied when a column is set as a measure and when multiple measures are defined.",
|
|
56
|
+
"type": [
|
|
57
|
+
"null",
|
|
58
|
+
"string"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"columnId": {
|
|
62
|
+
"description": "Column id",
|
|
63
|
+
"format": "uuid",
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"datasetId": {
|
|
67
|
+
"description": "Dataset id",
|
|
68
|
+
"format": "uuid",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"datetimeDisplayMode": {
|
|
72
|
+
"description": "If it's set it will be used for datetime formatting together with weekStart, weekDayNameFormat, monthNameFormat",
|
|
73
|
+
"enum": [
|
|
74
|
+
"day_in_month",
|
|
75
|
+
"day_in_year",
|
|
76
|
+
"default",
|
|
77
|
+
"hour_in_day",
|
|
78
|
+
"minute_in_hour",
|
|
79
|
+
"month_name",
|
|
80
|
+
"month_number",
|
|
81
|
+
"quarter_number",
|
|
82
|
+
"second_in_minute",
|
|
83
|
+
"week_number",
|
|
84
|
+
"weekday_name",
|
|
85
|
+
"weekday_number"
|
|
86
|
+
],
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"format": {
|
|
90
|
+
"description": "D3 format, it is used for \"numeric\" formatting (https://observablehq.com/@d3/d3-format), for \"datetime\" formatting (https://d3js.org/d3-time-format).\nIt can also be used for \"hierarchy\" formatting but when it's used in the measure slot.",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"grandTotals": {
|
|
94
|
+
"description": "Enable or disable grand totals, they're only used in Pivot table",
|
|
95
|
+
"properties": {
|
|
96
|
+
"enabled": {
|
|
97
|
+
"type": "boolean"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"type": "object"
|
|
101
|
+
},
|
|
102
|
+
"label": {
|
|
103
|
+
"description": "Label in format {locale: \"label\"}, for example, {en: \"Total Revenue\"}",
|
|
104
|
+
"type": "object"
|
|
105
|
+
},
|
|
106
|
+
"level": {
|
|
107
|
+
"description": "\"hierarchy\" or \"datetime\" level",
|
|
108
|
+
"type": [
|
|
109
|
+
"number",
|
|
110
|
+
"null"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"lowestLevel": {
|
|
114
|
+
"description": "Lowest \"hierarchy\" or \"datetime\" level",
|
|
115
|
+
"type": [
|
|
116
|
+
"null",
|
|
117
|
+
"number"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"monthNameFormat": {
|
|
121
|
+
"description": "Month name format for datetime column formatting",
|
|
122
|
+
"enum": [
|
|
123
|
+
"letter",
|
|
124
|
+
"long",
|
|
125
|
+
"short"
|
|
126
|
+
],
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"periodOverPeriod": {
|
|
130
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/PeriodOverPeriod",
|
|
131
|
+
"description": "Settings to configure period over period comparison. It can be used only in a measure slot."
|
|
132
|
+
},
|
|
133
|
+
"subtype": {
|
|
134
|
+
"description": "There's no subtype for \"datetime\", it can be null or omitted",
|
|
135
|
+
"type": "null"
|
|
136
|
+
},
|
|
137
|
+
"type": {
|
|
138
|
+
"const": "datetime",
|
|
139
|
+
"description": "\"datetime\" column type",
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
"weekDayNameFormat": {
|
|
143
|
+
"description": "Week day name format for datetime column formatting",
|
|
144
|
+
"enum": [
|
|
145
|
+
"letter",
|
|
146
|
+
"long",
|
|
147
|
+
"short"
|
|
148
|
+
],
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"weekStart": {
|
|
152
|
+
"description": "Week start day, 'sunday' or 'monday'. For datetime column formatting.",
|
|
153
|
+
"enum": [
|
|
154
|
+
"monday",
|
|
155
|
+
"sunday"
|
|
156
|
+
],
|
|
157
|
+
"type": "string"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"type": "object"
|
|
161
|
+
},
|
|
162
|
+
"HierarchySlotContent": {
|
|
163
|
+
"properties": {
|
|
164
|
+
"aggregationFunc": {
|
|
165
|
+
"description": "Basic aggregation function. It can be used when a \"hierarchy\" column is used in a measure slot.",
|
|
166
|
+
"enum": [
|
|
167
|
+
"count",
|
|
168
|
+
"distinctcount"
|
|
169
|
+
],
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"color": {
|
|
173
|
+
"description": "Color of the column. Any column type can have it, but it's applied when a column is set as a measure and when multiple measures are defined.",
|
|
174
|
+
"type": [
|
|
175
|
+
"null",
|
|
176
|
+
"string"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"columnId": {
|
|
180
|
+
"description": "Column id",
|
|
181
|
+
"format": "uuid",
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"datasetId": {
|
|
185
|
+
"description": "Dataset id",
|
|
186
|
+
"format": "uuid",
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"format": {
|
|
190
|
+
"description": "D3 format, it is used for \"numeric\" formatting (https://observablehq.com/@d3/d3-format), for \"datetime\" formatting (https://d3js.org/d3-time-format).\nIt can also be used for \"hierarchy\" formatting but when it's used in the measure slot.",
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"grandTotals": {
|
|
194
|
+
"description": "Enable or disable grand totals, they're only used in Pivot table",
|
|
195
|
+
"properties": {
|
|
196
|
+
"enabled": {
|
|
197
|
+
"type": "boolean"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"type": "object"
|
|
201
|
+
},
|
|
202
|
+
"label": {
|
|
203
|
+
"description": "Label in format {locale: \"label\"}, for example, {en: \"Total Revenue\"}",
|
|
204
|
+
"type": "object"
|
|
205
|
+
},
|
|
206
|
+
"level": {
|
|
207
|
+
"description": "\"hierarchy\" or \"datetime\" level",
|
|
208
|
+
"type": [
|
|
209
|
+
"number",
|
|
210
|
+
"null"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"lowestLevel": {
|
|
214
|
+
"description": "Lowest \"hierarchy\" or \"datetime\" level",
|
|
215
|
+
"type": [
|
|
216
|
+
"null",
|
|
217
|
+
"number"
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
"periodOverPeriod": {
|
|
221
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/PeriodOverPeriod",
|
|
222
|
+
"description": "Settings to configure period over period comparison. It can be used only in a measure slot."
|
|
223
|
+
},
|
|
224
|
+
"subtype": {
|
|
225
|
+
"anyOf": [
|
|
226
|
+
{
|
|
227
|
+
"enum": [
|
|
228
|
+
"coordinates",
|
|
229
|
+
"currency",
|
|
230
|
+
"date",
|
|
231
|
+
"datetime",
|
|
232
|
+
"duration",
|
|
233
|
+
"hierarchy_element_expression",
|
|
234
|
+
"topography"
|
|
235
|
+
],
|
|
236
|
+
"type": "string"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"type": "null"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"description": "Column subtype"
|
|
243
|
+
},
|
|
244
|
+
"type": {
|
|
245
|
+
"const": "hierarchy",
|
|
246
|
+
"description": "\"hierarchy\" column type",
|
|
247
|
+
"type": "string"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"type": "object"
|
|
251
|
+
},
|
|
252
|
+
"HighSlot": {
|
|
253
|
+
"description": "High slot definition of the OHLC chart",
|
|
254
|
+
"properties": {
|
|
255
|
+
"content": {
|
|
256
|
+
"description": "High slot definition, it can contain numeric data",
|
|
257
|
+
"items": {
|
|
258
|
+
"anyOf": [
|
|
259
|
+
{
|
|
260
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
"maxItems": 1,
|
|
271
|
+
"type": "array"
|
|
272
|
+
},
|
|
273
|
+
"name": {
|
|
274
|
+
"const": "high",
|
|
275
|
+
"description": "Name of the slot",
|
|
276
|
+
"type": "string"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"type": "object"
|
|
280
|
+
},
|
|
281
|
+
"LowSlot": {
|
|
282
|
+
"description": "Low slot definition of the OHLC chart",
|
|
283
|
+
"properties": {
|
|
284
|
+
"content": {
|
|
285
|
+
"description": "Low slot definition, it can contain numeric data",
|
|
286
|
+
"items": {
|
|
287
|
+
"anyOf": [
|
|
288
|
+
{
|
|
289
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
"maxItems": 1,
|
|
300
|
+
"type": "array"
|
|
301
|
+
},
|
|
302
|
+
"name": {
|
|
303
|
+
"const": "low",
|
|
304
|
+
"description": "Name of the slot",
|
|
305
|
+
"type": "string"
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
"type": "object"
|
|
309
|
+
},
|
|
310
|
+
"NumericSlotContent": {
|
|
311
|
+
"properties": {
|
|
312
|
+
"aggregationFunc": {
|
|
313
|
+
"description": "Aggregation function. It can be used with a \"numeric\" column type, and with some limitations with \"hierarchy\" and \"datetime\" column types.",
|
|
314
|
+
"enum": [
|
|
315
|
+
"average",
|
|
316
|
+
"count",
|
|
317
|
+
"cumulativesum",
|
|
318
|
+
"distinctcount",
|
|
319
|
+
"histogram",
|
|
320
|
+
"max",
|
|
321
|
+
"median",
|
|
322
|
+
"min",
|
|
323
|
+
"rate",
|
|
324
|
+
"stddev",
|
|
325
|
+
"sum",
|
|
326
|
+
"weightedaverage"
|
|
327
|
+
],
|
|
328
|
+
"type": "string"
|
|
329
|
+
},
|
|
330
|
+
"aggregationWeight": {
|
|
331
|
+
"description": "Aggregation weight. It can be used with a \"numeric\" column type.",
|
|
332
|
+
"properties": {
|
|
333
|
+
"columnId": {
|
|
334
|
+
"description": "Column id",
|
|
335
|
+
"format": "uuid",
|
|
336
|
+
"type": "string"
|
|
337
|
+
},
|
|
338
|
+
"columnSubType": {
|
|
339
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/ColumnSubtype",
|
|
340
|
+
"description": "Column subtype"
|
|
341
|
+
},
|
|
342
|
+
"datasetId": {
|
|
343
|
+
"description": "Dataset id",
|
|
344
|
+
"format": "uuid",
|
|
345
|
+
"type": "string"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"type": "object"
|
|
349
|
+
},
|
|
350
|
+
"bins": {
|
|
351
|
+
"description": "Bin definition. It can be used when a \"numeric\" column is used as a category.",
|
|
352
|
+
"properties": {
|
|
353
|
+
"enabled": {
|
|
354
|
+
"description": "Enable or disable binning",
|
|
355
|
+
"type": "boolean"
|
|
356
|
+
},
|
|
357
|
+
"number": {
|
|
358
|
+
"description": "Defines the range of the bins",
|
|
359
|
+
"type": "number"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
"type": "object"
|
|
363
|
+
},
|
|
364
|
+
"color": {
|
|
365
|
+
"description": "Color of the column. Any column type can have it, but it's applied when a column is set as a measure and when multiple measures are defined.",
|
|
366
|
+
"type": [
|
|
367
|
+
"null",
|
|
368
|
+
"string"
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
"columnId": {
|
|
372
|
+
"description": "Column id",
|
|
373
|
+
"format": "uuid",
|
|
374
|
+
"type": "string"
|
|
375
|
+
},
|
|
376
|
+
"currency": {
|
|
377
|
+
"description": "Currency code, for example \"€\" or \"$\". It is only used when the column type is \"numeric\" and subtype is \"currency\".",
|
|
378
|
+
"type": [
|
|
379
|
+
"null",
|
|
380
|
+
"string"
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
"datasetId": {
|
|
384
|
+
"description": "Dataset id",
|
|
385
|
+
"format": "uuid",
|
|
386
|
+
"type": "string"
|
|
387
|
+
},
|
|
388
|
+
"duration": {
|
|
389
|
+
"description": "Duration definition. It's only used when the column type is \"numeric\" and subtype is \"duration\".",
|
|
390
|
+
"properties": {
|
|
391
|
+
"format": {
|
|
392
|
+
"description": "Duration format",
|
|
393
|
+
"enum": [
|
|
394
|
+
"long",
|
|
395
|
+
"short",
|
|
396
|
+
"time"
|
|
397
|
+
],
|
|
398
|
+
"type": "string"
|
|
399
|
+
},
|
|
400
|
+
"levels": {
|
|
401
|
+
"description": "Duration levels used",
|
|
402
|
+
"items": {
|
|
403
|
+
"type": "number"
|
|
404
|
+
},
|
|
405
|
+
"type": "array"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"type": "object"
|
|
409
|
+
},
|
|
410
|
+
"format": {
|
|
411
|
+
"description": "D3 format, it is used for \"numeric\" formatting (https://observablehq.com/@d3/d3-format), for \"datetime\" formatting (https://d3js.org/d3-time-format).\nIt can also be used for \"hierarchy\" formatting but when it's used in the measure slot.",
|
|
412
|
+
"type": "string"
|
|
413
|
+
},
|
|
414
|
+
"formula": {
|
|
415
|
+
"description": "A dataset formula id or an ad-hoc formula. A formula is an entity similar to a column. You can add formulas on the dataset details page or use ad-hoc formulas. You can find more information about formulas in the article https://academy.luzmo.com/article/52tm82oo",
|
|
416
|
+
"type": "string"
|
|
417
|
+
},
|
|
418
|
+
"grandTotals": {
|
|
419
|
+
"description": "Enable or disable grand totals, they're only used in Pivot table",
|
|
420
|
+
"properties": {
|
|
421
|
+
"enabled": {
|
|
422
|
+
"type": "boolean"
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
"type": "object"
|
|
426
|
+
},
|
|
427
|
+
"label": {
|
|
428
|
+
"description": "Label in format {locale: \"label\"}, for example, {en: \"Total Revenue\"}",
|
|
429
|
+
"type": "object"
|
|
430
|
+
},
|
|
431
|
+
"periodOverPeriod": {
|
|
432
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/PeriodOverPeriod",
|
|
433
|
+
"description": "Settings to configure period over period comparison. It can be used only in a measure slot."
|
|
434
|
+
},
|
|
435
|
+
"subtype": {
|
|
436
|
+
"anyOf": [
|
|
437
|
+
{
|
|
438
|
+
"enum": [
|
|
439
|
+
"coordinates",
|
|
440
|
+
"currency",
|
|
441
|
+
"date",
|
|
442
|
+
"datetime",
|
|
443
|
+
"duration",
|
|
444
|
+
"hierarchy_element_expression",
|
|
445
|
+
"topography"
|
|
446
|
+
],
|
|
447
|
+
"type": "string"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"type": "null"
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
"description": "Column subtype"
|
|
454
|
+
},
|
|
455
|
+
"type": {
|
|
456
|
+
"const": "numeric",
|
|
457
|
+
"description": "\"numeric\" column / formula type",
|
|
458
|
+
"type": "string"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"type": "object"
|
|
462
|
+
},
|
|
463
|
+
"OpenSlot": {
|
|
464
|
+
"description": "Open slot definition of the OHLC chart",
|
|
465
|
+
"properties": {
|
|
466
|
+
"content": {
|
|
467
|
+
"description": "Open slot definition, it can contain numeric data",
|
|
468
|
+
"items": {
|
|
469
|
+
"anyOf": [
|
|
470
|
+
{
|
|
471
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
478
|
+
}
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
"maxItems": 1,
|
|
482
|
+
"type": "array"
|
|
483
|
+
},
|
|
484
|
+
"name": {
|
|
485
|
+
"const": "open",
|
|
486
|
+
"description": "Name of the slot",
|
|
487
|
+
"type": "string"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"type": "object"
|
|
491
|
+
},
|
|
492
|
+
"PeriodOverPeriod": {
|
|
493
|
+
"properties": {
|
|
494
|
+
"level": {
|
|
495
|
+
"description": "Period of time level\n0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond",
|
|
496
|
+
"type": "number"
|
|
497
|
+
},
|
|
498
|
+
"periodToDate": {
|
|
499
|
+
"description": "Turn ON/OFF period to date comparison",
|
|
500
|
+
"type": "boolean"
|
|
501
|
+
},
|
|
502
|
+
"quantity": {
|
|
503
|
+
"description": "Number of periods",
|
|
504
|
+
"type": "number"
|
|
505
|
+
},
|
|
506
|
+
"type": {
|
|
507
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/PeriodOverPeriodType",
|
|
508
|
+
"description": "Period over period comparison type"
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
"type": "object"
|
|
512
|
+
},
|
|
513
|
+
"PeriodOverPeriodType": {
|
|
514
|
+
"description": "Period over period comparison type:\n'none' - turned off,\n'past' - absolute value comparison to the past,\n'percentageChange' - percentage change comparison to the past",
|
|
515
|
+
"enum": [
|
|
516
|
+
"none",
|
|
517
|
+
"past",
|
|
518
|
+
"percentageChange"
|
|
519
|
+
],
|
|
520
|
+
"type": "string"
|
|
521
|
+
},
|
|
522
|
+
"XAxisSlot": {
|
|
523
|
+
"description": "Category slot definition of the OHLC chart",
|
|
524
|
+
"properties": {
|
|
525
|
+
"content": {
|
|
526
|
+
"description": "X-axis slot definition, it can contain time series data (datetime, hierarchy and numeric are also supported.)",
|
|
527
|
+
"items": {
|
|
528
|
+
"anyOf": [
|
|
529
|
+
{
|
|
530
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
537
|
+
}
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
"maxItems": 1,
|
|
541
|
+
"type": "array"
|
|
542
|
+
},
|
|
543
|
+
"name": {
|
|
544
|
+
"const": "x-axis",
|
|
545
|
+
"description": "Name of the slot",
|
|
546
|
+
"type": "string"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"type": "object"
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"description": "Data definition of the Ohlc chart",
|
|
553
|
+
"items": {
|
|
554
|
+
"anyOf": [
|
|
555
|
+
{
|
|
556
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/OpenSlot"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/HighSlot"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/LowSlot"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/CloseSlot"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json#/definitions/XAxisSlot"
|
|
569
|
+
}
|
|
570
|
+
]
|
|
571
|
+
},
|
|
572
|
+
"maxItems": 5,
|
|
573
|
+
"type": "array"
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
;
|
|
577
|
+
|
|
578
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"description": "Ohlc Chart item",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"description": "Type of the item",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "ohlc-chart"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"description": "Options of the Ohlc Chart item",
|
|
14
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-options.schema.json"
|
|
15
|
+
},
|
|
16
|
+
"slots": {
|
|
17
|
+
"description": "Data definition of the Ohlc Chart item",
|
|
18
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-slots.schema.json"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default _default;
|
|
@@ -98,11 +98,20 @@ declare const _default: {
|
|
|
98
98
|
{
|
|
99
99
|
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/spike-map-options.schema.json"
|
|
100
100
|
},
|
|
101
|
+
{
|
|
102
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/ohlc-chart-options.schema.json"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-options.schema.json"
|
|
106
|
+
},
|
|
101
107
|
{
|
|
102
108
|
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/speedometer-chart-options.schema.json"
|
|
103
109
|
},
|
|
104
110
|
{
|
|
105
111
|
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/treemap-chart-options.schema.json"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/heat-table-options.schema.json"
|
|
106
115
|
}
|
|
107
116
|
]
|
|
108
117
|
};
|