@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,481 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"$id": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"ColumnSubtype": {
|
|
6
|
+
"enum": [
|
|
7
|
+
"coordinates",
|
|
8
|
+
"currency",
|
|
9
|
+
"duration",
|
|
10
|
+
"hierarchy_element_expression",
|
|
11
|
+
"topography"
|
|
12
|
+
],
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"DateTimeSlotContent": {
|
|
16
|
+
"properties": {
|
|
17
|
+
"aggregationFunc": {
|
|
18
|
+
"description": "Basic aggregation function. It can be used when a \"datetime\" column is used in a measure slot.",
|
|
19
|
+
"enum": [
|
|
20
|
+
"count",
|
|
21
|
+
"distinctcount"
|
|
22
|
+
],
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"color": {
|
|
26
|
+
"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.",
|
|
27
|
+
"type": [
|
|
28
|
+
"null",
|
|
29
|
+
"string"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"columnId": {
|
|
33
|
+
"description": "Column id",
|
|
34
|
+
"format": "uuid",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"datasetId": {
|
|
38
|
+
"description": "Dataset id",
|
|
39
|
+
"format": "uuid",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"datetimeDisplayMode": {
|
|
43
|
+
"description": "If it's set it will be used for datetime formatting together with weekStart, weekDayNameFormat, monthNameFormat",
|
|
44
|
+
"enum": [
|
|
45
|
+
"day_in_month",
|
|
46
|
+
"day_in_year",
|
|
47
|
+
"default",
|
|
48
|
+
"hour_in_day",
|
|
49
|
+
"minute_in_hour",
|
|
50
|
+
"month_name",
|
|
51
|
+
"month_number",
|
|
52
|
+
"quarter_number",
|
|
53
|
+
"second_in_minute",
|
|
54
|
+
"week_number",
|
|
55
|
+
"weekday_name",
|
|
56
|
+
"weekday_number"
|
|
57
|
+
],
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"format": {
|
|
61
|
+
"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.",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"grandTotals": {
|
|
65
|
+
"description": "Enable or disable grand totals, they're only used in Pivot table",
|
|
66
|
+
"properties": {
|
|
67
|
+
"enabled": {
|
|
68
|
+
"type": "boolean"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"type": "object"
|
|
72
|
+
},
|
|
73
|
+
"label": {
|
|
74
|
+
"description": "Label in format {locale: \"label\"}, for example, {en: \"Total Revenue\"}",
|
|
75
|
+
"type": "object"
|
|
76
|
+
},
|
|
77
|
+
"level": {
|
|
78
|
+
"description": "\"hierarchy\" or \"datetime\" level",
|
|
79
|
+
"type": [
|
|
80
|
+
"number",
|
|
81
|
+
"null"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"lowestLevel": {
|
|
85
|
+
"description": "Lowest \"hierarchy\" or \"datetime\" level",
|
|
86
|
+
"type": [
|
|
87
|
+
"null",
|
|
88
|
+
"number"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"monthNameFormat": {
|
|
92
|
+
"description": "Month name format for datetime column formatting",
|
|
93
|
+
"enum": [
|
|
94
|
+
"letter",
|
|
95
|
+
"long",
|
|
96
|
+
"short"
|
|
97
|
+
],
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"periodOverPeriod": {
|
|
101
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/PeriodOverPeriod",
|
|
102
|
+
"description": "Settings to configure period over period comparison. It can be used only in a measure slot."
|
|
103
|
+
},
|
|
104
|
+
"subtype": {
|
|
105
|
+
"description": "There's no subtype for \"datetime\", it can be null or omitted",
|
|
106
|
+
"type": "null"
|
|
107
|
+
},
|
|
108
|
+
"type": {
|
|
109
|
+
"const": "datetime",
|
|
110
|
+
"description": "\"datetime\" column type",
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"weekDayNameFormat": {
|
|
114
|
+
"description": "Week day name format for datetime column formatting",
|
|
115
|
+
"enum": [
|
|
116
|
+
"letter",
|
|
117
|
+
"long",
|
|
118
|
+
"short"
|
|
119
|
+
],
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"weekStart": {
|
|
123
|
+
"description": "Week start day, 'sunday' or 'monday'. For datetime column formatting.",
|
|
124
|
+
"enum": [
|
|
125
|
+
"monday",
|
|
126
|
+
"sunday"
|
|
127
|
+
],
|
|
128
|
+
"type": "string"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"type": "object"
|
|
132
|
+
},
|
|
133
|
+
"HierarchySlotContent": {
|
|
134
|
+
"properties": {
|
|
135
|
+
"aggregationFunc": {
|
|
136
|
+
"description": "Basic aggregation function. It can be used when a \"hierarchy\" column is used in a measure slot.",
|
|
137
|
+
"enum": [
|
|
138
|
+
"count",
|
|
139
|
+
"distinctcount"
|
|
140
|
+
],
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"color": {
|
|
144
|
+
"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.",
|
|
145
|
+
"type": [
|
|
146
|
+
"null",
|
|
147
|
+
"string"
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
"columnId": {
|
|
151
|
+
"description": "Column id",
|
|
152
|
+
"format": "uuid",
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"datasetId": {
|
|
156
|
+
"description": "Dataset id",
|
|
157
|
+
"format": "uuid",
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"format": {
|
|
161
|
+
"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.",
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"grandTotals": {
|
|
165
|
+
"description": "Enable or disable grand totals, they're only used in Pivot table",
|
|
166
|
+
"properties": {
|
|
167
|
+
"enabled": {
|
|
168
|
+
"type": "boolean"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"type": "object"
|
|
172
|
+
},
|
|
173
|
+
"label": {
|
|
174
|
+
"description": "Label in format {locale: \"label\"}, for example, {en: \"Total Revenue\"}",
|
|
175
|
+
"type": "object"
|
|
176
|
+
},
|
|
177
|
+
"level": {
|
|
178
|
+
"description": "\"hierarchy\" or \"datetime\" level",
|
|
179
|
+
"type": [
|
|
180
|
+
"number",
|
|
181
|
+
"null"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"lowestLevel": {
|
|
185
|
+
"description": "Lowest \"hierarchy\" or \"datetime\" level",
|
|
186
|
+
"type": [
|
|
187
|
+
"null",
|
|
188
|
+
"number"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"periodOverPeriod": {
|
|
192
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/PeriodOverPeriod",
|
|
193
|
+
"description": "Settings to configure period over period comparison. It can be used only in a measure slot."
|
|
194
|
+
},
|
|
195
|
+
"subtype": {
|
|
196
|
+
"anyOf": [
|
|
197
|
+
{
|
|
198
|
+
"enum": [
|
|
199
|
+
"coordinates",
|
|
200
|
+
"currency",
|
|
201
|
+
"date",
|
|
202
|
+
"datetime",
|
|
203
|
+
"duration",
|
|
204
|
+
"hierarchy_element_expression",
|
|
205
|
+
"topography"
|
|
206
|
+
],
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "null"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"description": "Column subtype"
|
|
214
|
+
},
|
|
215
|
+
"type": {
|
|
216
|
+
"const": "hierarchy",
|
|
217
|
+
"description": "\"hierarchy\" column type",
|
|
218
|
+
"type": "string"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"type": "object"
|
|
222
|
+
},
|
|
223
|
+
"LevelsSlot": {
|
|
224
|
+
"description": "Category slot definition of the Line chart",
|
|
225
|
+
"properties": {
|
|
226
|
+
"content": {
|
|
227
|
+
"description": "levels slot definition, it can contain mixed data (numeric, categorical)",
|
|
228
|
+
"items": {
|
|
229
|
+
"anyOf": [
|
|
230
|
+
{
|
|
231
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"type": "array"
|
|
242
|
+
},
|
|
243
|
+
"name": {
|
|
244
|
+
"const": "levels",
|
|
245
|
+
"description": "Name of the slot",
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"type": "object"
|
|
250
|
+
},
|
|
251
|
+
"MeasureSlot": {
|
|
252
|
+
"description": "Measure slot definition of the Line chart",
|
|
253
|
+
"properties": {
|
|
254
|
+
"content": {
|
|
255
|
+
"description": "Measure slot definition, it can contain numeric data",
|
|
256
|
+
"items": {
|
|
257
|
+
"anyOf": [
|
|
258
|
+
{
|
|
259
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/NumericSlotContent"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/HierarchySlotContent"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/DateTimeSlotContent"
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
"maxItems": 1,
|
|
270
|
+
"type": "array"
|
|
271
|
+
},
|
|
272
|
+
"name": {
|
|
273
|
+
"const": "measure",
|
|
274
|
+
"description": "Name of the slot",
|
|
275
|
+
"type": "string"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"type": "object"
|
|
279
|
+
},
|
|
280
|
+
"NumericSlotContent": {
|
|
281
|
+
"properties": {
|
|
282
|
+
"aggregationFunc": {
|
|
283
|
+
"description": "Aggregation function. It can be used with a \"numeric\" column type, and with some limitations with \"hierarchy\" and \"datetime\" column types.",
|
|
284
|
+
"enum": [
|
|
285
|
+
"average",
|
|
286
|
+
"count",
|
|
287
|
+
"cumulativesum",
|
|
288
|
+
"distinctcount",
|
|
289
|
+
"histogram",
|
|
290
|
+
"max",
|
|
291
|
+
"median",
|
|
292
|
+
"min",
|
|
293
|
+
"rate",
|
|
294
|
+
"stddev",
|
|
295
|
+
"sum",
|
|
296
|
+
"weightedaverage"
|
|
297
|
+
],
|
|
298
|
+
"type": "string"
|
|
299
|
+
},
|
|
300
|
+
"aggregationWeight": {
|
|
301
|
+
"description": "Aggregation weight. It can be used with a \"numeric\" column type.",
|
|
302
|
+
"properties": {
|
|
303
|
+
"columnId": {
|
|
304
|
+
"description": "Column id",
|
|
305
|
+
"format": "uuid",
|
|
306
|
+
"type": "string"
|
|
307
|
+
},
|
|
308
|
+
"columnSubType": {
|
|
309
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/ColumnSubtype",
|
|
310
|
+
"description": "Column subtype"
|
|
311
|
+
},
|
|
312
|
+
"datasetId": {
|
|
313
|
+
"description": "Dataset id",
|
|
314
|
+
"format": "uuid",
|
|
315
|
+
"type": "string"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"type": "object"
|
|
319
|
+
},
|
|
320
|
+
"bins": {
|
|
321
|
+
"description": "Bin definition. It can be used when a \"numeric\" column is used as a category.",
|
|
322
|
+
"properties": {
|
|
323
|
+
"enabled": {
|
|
324
|
+
"description": "Enable or disable binning",
|
|
325
|
+
"type": "boolean"
|
|
326
|
+
},
|
|
327
|
+
"number": {
|
|
328
|
+
"description": "Defines the range of the bins",
|
|
329
|
+
"type": "number"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"type": "object"
|
|
333
|
+
},
|
|
334
|
+
"color": {
|
|
335
|
+
"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.",
|
|
336
|
+
"type": [
|
|
337
|
+
"null",
|
|
338
|
+
"string"
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
"columnId": {
|
|
342
|
+
"description": "Column id",
|
|
343
|
+
"format": "uuid",
|
|
344
|
+
"type": "string"
|
|
345
|
+
},
|
|
346
|
+
"currency": {
|
|
347
|
+
"description": "Currency code, for example \"€\" or \"$\". It is only used when the column type is \"numeric\" and subtype is \"currency\".",
|
|
348
|
+
"type": [
|
|
349
|
+
"null",
|
|
350
|
+
"string"
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
"datasetId": {
|
|
354
|
+
"description": "Dataset id",
|
|
355
|
+
"format": "uuid",
|
|
356
|
+
"type": "string"
|
|
357
|
+
},
|
|
358
|
+
"duration": {
|
|
359
|
+
"description": "Duration definition. It's only used when the column type is \"numeric\" and subtype is \"duration\".",
|
|
360
|
+
"properties": {
|
|
361
|
+
"format": {
|
|
362
|
+
"description": "Duration format",
|
|
363
|
+
"enum": [
|
|
364
|
+
"long",
|
|
365
|
+
"short",
|
|
366
|
+
"time"
|
|
367
|
+
],
|
|
368
|
+
"type": "string"
|
|
369
|
+
},
|
|
370
|
+
"levels": {
|
|
371
|
+
"description": "Duration levels used",
|
|
372
|
+
"items": {
|
|
373
|
+
"type": "number"
|
|
374
|
+
},
|
|
375
|
+
"type": "array"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"type": "object"
|
|
379
|
+
},
|
|
380
|
+
"format": {
|
|
381
|
+
"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.",
|
|
382
|
+
"type": "string"
|
|
383
|
+
},
|
|
384
|
+
"formula": {
|
|
385
|
+
"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",
|
|
386
|
+
"type": "string"
|
|
387
|
+
},
|
|
388
|
+
"grandTotals": {
|
|
389
|
+
"description": "Enable or disable grand totals, they're only used in Pivot table",
|
|
390
|
+
"properties": {
|
|
391
|
+
"enabled": {
|
|
392
|
+
"type": "boolean"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"type": "object"
|
|
396
|
+
},
|
|
397
|
+
"label": {
|
|
398
|
+
"description": "Label in format {locale: \"label\"}, for example, {en: \"Total Revenue\"}",
|
|
399
|
+
"type": "object"
|
|
400
|
+
},
|
|
401
|
+
"periodOverPeriod": {
|
|
402
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/PeriodOverPeriod",
|
|
403
|
+
"description": "Settings to configure period over period comparison. It can be used only in a measure slot."
|
|
404
|
+
},
|
|
405
|
+
"subtype": {
|
|
406
|
+
"anyOf": [
|
|
407
|
+
{
|
|
408
|
+
"enum": [
|
|
409
|
+
"coordinates",
|
|
410
|
+
"currency",
|
|
411
|
+
"date",
|
|
412
|
+
"datetime",
|
|
413
|
+
"duration",
|
|
414
|
+
"hierarchy_element_expression",
|
|
415
|
+
"topography"
|
|
416
|
+
],
|
|
417
|
+
"type": "string"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"type": "null"
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
"description": "Column subtype"
|
|
424
|
+
},
|
|
425
|
+
"type": {
|
|
426
|
+
"const": "numeric",
|
|
427
|
+
"description": "\"numeric\" column / formula type",
|
|
428
|
+
"type": "string"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"type": "object"
|
|
432
|
+
},
|
|
433
|
+
"PeriodOverPeriod": {
|
|
434
|
+
"properties": {
|
|
435
|
+
"level": {
|
|
436
|
+
"description": "Period of time level\n0 - period, 1 - year, 2 - quarter, 3 - month, 4 - week, 5 - day... 9 - millisecond",
|
|
437
|
+
"type": "number"
|
|
438
|
+
},
|
|
439
|
+
"periodToDate": {
|
|
440
|
+
"description": "Turn ON/OFF period to date comparison",
|
|
441
|
+
"type": "boolean"
|
|
442
|
+
},
|
|
443
|
+
"quantity": {
|
|
444
|
+
"description": "Number of periods",
|
|
445
|
+
"type": "number"
|
|
446
|
+
},
|
|
447
|
+
"type": {
|
|
448
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/PeriodOverPeriodType",
|
|
449
|
+
"description": "Period over period comparison type"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"type": "object"
|
|
453
|
+
},
|
|
454
|
+
"PeriodOverPeriodType": {
|
|
455
|
+
"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",
|
|
456
|
+
"enum": [
|
|
457
|
+
"none",
|
|
458
|
+
"past",
|
|
459
|
+
"percentageChange"
|
|
460
|
+
],
|
|
461
|
+
"type": "string"
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
"description": "Data definition of the Sunburst chart",
|
|
465
|
+
"items": {
|
|
466
|
+
"anyOf": [
|
|
467
|
+
{
|
|
468
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/MeasureSlot"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json#/definitions/LevelsSlot"
|
|
472
|
+
}
|
|
473
|
+
]
|
|
474
|
+
},
|
|
475
|
+
"maxItems": 2,
|
|
476
|
+
"type": "array"
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
;
|
|
480
|
+
|
|
481
|
+
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/sunburst-chart.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"description": "Sunburst Chart item",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"description": "Type of the item",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "sunburst-chart"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"description": "Options of the Sunburst Chart item",
|
|
14
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-options.schema.json"
|
|
15
|
+
},
|
|
16
|
+
"slots": {
|
|
17
|
+
"description": "Data definition of the Sunburst Chart item",
|
|
18
|
+
"$ref": "https://developer.luzmo.com/assets/json-schemas/0.1.90/sunburst-chart-slots.schema.json"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default _default;
|
|
@@ -1068,7 +1068,7 @@ declare const _default: {
|
|
|
1068
1068
|
"description": "Custom border styling",
|
|
1069
1069
|
"properties": {
|
|
1070
1070
|
"border-bottom-width": {
|
|
1071
|
-
"description": "Border bottom width",
|
|
1071
|
+
"description": "Border bottom width, it is visible when a border style and color are set",
|
|
1072
1072
|
"examples": [
|
|
1073
1073
|
"0px",
|
|
1074
1074
|
"1px",
|
|
@@ -1077,7 +1077,7 @@ declare const _default: {
|
|
|
1077
1077
|
"type": "string"
|
|
1078
1078
|
},
|
|
1079
1079
|
"border-color": {
|
|
1080
|
-
"description": "Border color",
|
|
1080
|
+
"description": "Border color, it is visible when a border style and width are set",
|
|
1081
1081
|
"examples": [
|
|
1082
1082
|
"rgba(216, 216, 216, 1)",
|
|
1083
1083
|
"rgb(147, 146, 148)"
|
|
@@ -1085,7 +1085,7 @@ declare const _default: {
|
|
|
1085
1085
|
"type": "string"
|
|
1086
1086
|
},
|
|
1087
1087
|
"border-left-width": {
|
|
1088
|
-
"description": "Border left width",
|
|
1088
|
+
"description": "Border left width, it is visible when a border style and color are set",
|
|
1089
1089
|
"examples": [
|
|
1090
1090
|
"0px",
|
|
1091
1091
|
"1px",
|
|
@@ -1103,7 +1103,7 @@ declare const _default: {
|
|
|
1103
1103
|
"type": "string"
|
|
1104
1104
|
},
|
|
1105
1105
|
"border-right-width": {
|
|
1106
|
-
"description": "Border right width",
|
|
1106
|
+
"description": "Border right width, it is visible when a border style and color are set",
|
|
1107
1107
|
"examples": [
|
|
1108
1108
|
"0px",
|
|
1109
1109
|
"1px",
|
|
@@ -1112,7 +1112,7 @@ declare const _default: {
|
|
|
1112
1112
|
"type": "string"
|
|
1113
1113
|
},
|
|
1114
1114
|
"border-style": {
|
|
1115
|
-
"description": "Border style",
|
|
1115
|
+
"description": "Border style, it is visible when a border color and width are set",
|
|
1116
1116
|
"examples": [
|
|
1117
1117
|
"none",
|
|
1118
1118
|
"solid",
|
|
@@ -1122,7 +1122,7 @@ declare const _default: {
|
|
|
1122
1122
|
"type": "string"
|
|
1123
1123
|
},
|
|
1124
1124
|
"border-top-width": {
|
|
1125
|
-
"description": "Border top width",
|
|
1125
|
+
"description": "Border top width, it is visible when a border style and color are set",
|
|
1126
1126
|
"examples": [
|
|
1127
1127
|
"0px",
|
|
1128
1128
|
"1px",
|
|
@@ -1164,12 +1164,15 @@ declare const _default: {
|
|
|
1164
1164
|
"type": "object"
|
|
1165
1165
|
},
|
|
1166
1166
|
"colors": {
|
|
1167
|
-
"description": "Custom color palette",
|
|
1167
|
+
"description": "Custom color palette, an array of colors which may affect different areas of a chart, for example, lines, bars, etc.",
|
|
1168
1168
|
"examples": [
|
|
1169
1169
|
[
|
|
1170
|
-
"
|
|
1171
|
-
"
|
|
1172
|
-
"
|
|
1170
|
+
"red",
|
|
1171
|
+
"green",
|
|
1172
|
+
"blue",
|
|
1173
|
+
"yellow",
|
|
1174
|
+
"orange",
|
|
1175
|
+
"purple"
|
|
1173
1176
|
]
|
|
1174
1177
|
],
|
|
1175
1178
|
"items": {
|
|
@@ -1180,19 +1183,6 @@ declare const _default: {
|
|
|
1180
1183
|
"font": {
|
|
1181
1184
|
"description": "Custom font styling",
|
|
1182
1185
|
"properties": {
|
|
1183
|
-
"font-style": {
|
|
1184
|
-
"const": "normal",
|
|
1185
|
-
"description": "Use it to reset the font style to \"normal\"",
|
|
1186
|
-
"type": "string"
|
|
1187
|
-
},
|
|
1188
|
-
"font-weight": {
|
|
1189
|
-
"description": "Font weight",
|
|
1190
|
-
"examples": [
|
|
1191
|
-
400,
|
|
1192
|
-
700
|
|
1193
|
-
],
|
|
1194
|
-
"type": "number"
|
|
1195
|
-
},
|
|
1196
1186
|
"fontFamily": {
|
|
1197
1187
|
"description": "Font family",
|
|
1198
1188
|
"examples": [
|
|
@@ -1205,7 +1195,7 @@ declare const _default: {
|
|
|
1205
1195
|
"type": "string"
|
|
1206
1196
|
},
|
|
1207
1197
|
"fontSize": {
|
|
1208
|
-
"description": "Font size in px",
|
|
1198
|
+
"description": "Font size in px, if not set, it will be inherited from the theme. It can be overridden if more specific \"fontSize\" is set, for example, \"fontSize\" inside options like \"title\", \"axis\", \"legend\", \"tooltip\", etc.",
|
|
1209
1199
|
"examples": [
|
|
1210
1200
|
10,
|
|
1211
1201
|
15,
|
|
@@ -1234,7 +1224,7 @@ declare const _default: {
|
|
|
1234
1224
|
"type": "string"
|
|
1235
1225
|
},
|
|
1236
1226
|
"title": {
|
|
1237
|
-
"description": "Custom title styling",
|
|
1227
|
+
"description": "Custom title styling, it's applied if the title is displayed",
|
|
1238
1228
|
"properties": {
|
|
1239
1229
|
"align": {
|
|
1240
1230
|
"description": "Title align",
|
|
@@ -1267,7 +1257,7 @@ declare const _default: {
|
|
|
1267
1257
|
"type": "boolean"
|
|
1268
1258
|
},
|
|
1269
1259
|
"fontSize": {
|
|
1270
|
-
"description": "Title's font size in px",
|
|
1260
|
+
"description": "Title's font size in px, if not set, it will be inherited from the \"font\"->\"fontSize\" option",
|
|
1271
1261
|
"examples": [
|
|
1272
1262
|
16,
|
|
1273
1263
|
20
|
|
@@ -1303,7 +1293,7 @@ declare const _default: {
|
|
|
1303
1293
|
"type": "object"
|
|
1304
1294
|
},
|
|
1305
1295
|
"tooltip": {
|
|
1306
|
-
"description": "Custom tooltip styling",
|
|
1296
|
+
"description": "Custom tooltip styling, it's applied if the tooltip is turned on",
|
|
1307
1297
|
"properties": {
|
|
1308
1298
|
"background": {
|
|
1309
1299
|
"description": "Tooltip's background",
|
|
@@ -1316,16 +1306,7 @@ declare const _default: {
|
|
|
1316
1306
|
"type": "string"
|
|
1317
1307
|
},
|
|
1318
1308
|
"fontSize": {
|
|
1319
|
-
"description": "Tooltip's font size in px",
|
|
1320
|
-
"examples": [
|
|
1321
|
-
12,
|
|
1322
|
-
16,
|
|
1323
|
-
20
|
|
1324
|
-
],
|
|
1325
|
-
"type": "number"
|
|
1326
|
-
},
|
|
1327
|
-
"lineHeight": {
|
|
1328
|
-
"description": "Tooltip's line height in px",
|
|
1309
|
+
"description": "Tooltip's font size in px, if not set, it will be inherited from the \"font\"->\"fontSize\" option",
|
|
1329
1310
|
"examples": [
|
|
1330
1311
|
12,
|
|
1331
1312
|
16,
|
|
@@ -1334,7 +1315,7 @@ declare const _default: {
|
|
|
1334
1315
|
"type": "number"
|
|
1335
1316
|
},
|
|
1336
1317
|
"opacity": {
|
|
1337
|
-
"description": "Tooltip's opacity",
|
|
1318
|
+
"description": "Tooltip's opacity, it should be between 0 and 1, for example, 0.8",
|
|
1338
1319
|
"examples": [
|
|
1339
1320
|
0.5,
|
|
1340
1321
|
0.8,
|
|
@@ -1464,7 +1445,7 @@ declare const _default: {
|
|
|
1464
1445
|
"type": "string"
|
|
1465
1446
|
},
|
|
1466
1447
|
"title": {
|
|
1467
|
-
"description": "Title in format { \"locale\": \"title\"}, for example, { \"en\": \"Title\"}",
|
|
1448
|
+
"description": "Title in format { \"locale\": \"title\"}, for example, { \"en\": \"Title\"}. It's applied if the title is displayed.",
|
|
1468
1449
|
"examples": [
|
|
1469
1450
|
{
|
|
1470
1451
|
"en": "Title"
|