@astrato-io/visualizations 0.0.0-stage → 0.6.4

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.
Files changed (145) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE +93 -0
  3. package/README.md +843 -2
  4. package/THIRD_PARTY_NOTICES.md +8387 -0
  5. package/VISUALIZATION_DEFINITIONS.md +2378 -0
  6. package/chunks/LinearProgress-CUZ0D8_t.js +253 -0
  7. package/chunks/Radio-Ciu-F4CU.js +957 -0
  8. package/chunks/ToggleButton-BCJc3Jlc.js +153 -0
  9. package/chunks/_baseFlatten-DPXPOrea.js +7076 -0
  10. package/chunks/accessors-DemrDevR.js +128 -0
  11. package/chunks/app-filter-bar.compiler-j_CVoWTa.js +55 -0
  12. package/chunks/bar.compiler-oqaPzIut.js +370 -0
  13. package/chunks/color-settings-ZIvgNTq1.js +10 -0
  14. package/chunks/coloring-C16AUZEi.js +663 -0
  15. package/chunks/data-item-resolution-1lvYB5ln.js +53 -0
  16. package/chunks/debounce-fn-CUixuz45.js +7 -0
  17. package/chunks/escobar-BGqT1EsE.js +34580 -0
  18. package/chunks/event-bus-KiSiCJrC.js +2683 -0
  19. package/chunks/events-WZut5Ow6.js +4 -0
  20. package/chunks/extend-BKUkc4_i.js +37 -0
  21. package/chunks/filter.compiler-CuLtc_02.js +60 -0
  22. package/chunks/filtering-Yq4DEa0t.js +953 -0
  23. package/chunks/gauge-target-type-BkKXAqkX.js +4 -0
  24. package/chunks/grouping-type-BX_9Ix5q.js +3 -0
  25. package/chunks/interfaces-VUY4_yVO.js +8742 -0
  26. package/chunks/line-settings-DfYTUyPz.js +4 -0
  27. package/chunks/line.compiler-BpA_6Tc7.js +188 -0
  28. package/chunks/metadata-CPXdYoln.js +28 -0
  29. package/chunks/number.compiler-DbkWcG4S.js +44 -0
  30. package/chunks/pie-uv42Eqal.js +10 -0
  31. package/chunks/range-DrzdfBX4.js +22 -0
  32. package/chunks/registry-CExpGJ1N.js +920 -0
  33. package/chunks/requirements-DNhuShLS.js +6 -0
  34. package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
  35. package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
  36. package/chunks/shared-CKDL4hx9.js +1171 -0
  37. package/chunks/src-BC7cGcJ-.js +2024 -0
  38. package/chunks/src-BOS6SqkZ.js +67 -0
  39. package/chunks/src-C0LgoUWY.js +26105 -0
  40. package/chunks/src-Cum_2NLV.js +12145 -0
  41. package/chunks/src-D9XogOrc.js +422 -0
  42. package/chunks/src-Dun_jXtz.js +10295 -0
  43. package/chunks/src-DvX5LU9T.js +14742 -0
  44. package/chunks/standalone-87YV_m9n.js +687 -0
  45. package/chunks/standalone-BDCwI6Hn.js +4619 -0
  46. package/chunks/standalone-BH5NqDwp.js +1763 -0
  47. package/chunks/standalone-BLVAWLNJ.js +385 -0
  48. package/chunks/standalone-BPomtAVs.js +2 -0
  49. package/chunks/standalone-BXyBcUOQ.js +2 -0
  50. package/chunks/standalone-BYm1UjLr.js +140 -0
  51. package/chunks/standalone-BllF4rDp.js +383 -0
  52. package/chunks/standalone-BmfMt74U.js +726 -0
  53. package/chunks/standalone-BqWyrnZI.js +281 -0
  54. package/chunks/standalone-C85u7U6I.js +340 -0
  55. package/chunks/standalone-CCNtaJ7s.js +741 -0
  56. package/chunks/standalone-CDQnr6qT.js +345 -0
  57. package/chunks/standalone-CNyNHKVx.js +674 -0
  58. package/chunks/standalone-CY57qwZ-.js +1129 -0
  59. package/chunks/standalone-CZynjFG7.js +12979 -0
  60. package/chunks/standalone-D5vnf-9y.js +3943 -0
  61. package/chunks/standalone-DFPva_ku.js +299 -0
  62. package/chunks/standalone-DQxxNwF8.js +675 -0
  63. package/chunks/standalone-DS9T0FZ-.js +830 -0
  64. package/chunks/standalone-Dx3MLlrO.js +512 -0
  65. package/chunks/standalone-DzixzZAL.js +411 -0
  66. package/chunks/standalone-QJ1kKMnO.js +6 -0
  67. package/chunks/standalone-jiz0L2Dg.js +3855 -0
  68. package/chunks/standalone-lBm9hQ-q.js +179 -0
  69. package/chunks/standalone-rJ45Zfl1.js +68 -0
  70. package/chunks/stroke-dash-UgMEcCS4.js +6 -0
  71. package/chunks/table.compiler-BrXkm4Fz.js +213 -0
  72. package/chunks/toInteger-DVZr-D1j.js +11 -0
  73. package/chunks/treemap-x_zmJoG7.js +23 -0
  74. package/chunks/typeof-CJDtcySz.js +13 -0
  75. package/chunks/types-dVVCsDWD.js +4 -0
  76. package/chunks/ui-D1HQNIBy.js +54039 -0
  77. package/chunks/url-utils-B17gj_mr.js +5501 -0
  78. package/chunks/useFieldName-oqQ3bvnO.js +7 -0
  79. package/chunks/utils-Ba9T0TqC.js +31097 -0
  80. package/chunks/view-CLqWMV7Z.js +156 -0
  81. package/definitions.js +3 -0
  82. package/docs/operations/astrato-app-filter-bar.md +161 -0
  83. package/docs/operations/bar.md +7050 -0
  84. package/docs/operations/combo.md +5825 -0
  85. package/docs/operations/date-picker.md +644 -0
  86. package/docs/operations/distribution-gauge.md +3218 -0
  87. package/docs/operations/dot.md +5662 -0
  88. package/docs/operations/filter.md +1507 -0
  89. package/docs/operations/gauge.md +3452 -0
  90. package/docs/operations/heatMap.md +6026 -0
  91. package/docs/operations/histogram.md +1870 -0
  92. package/docs/operations/iframe.md +56 -0
  93. package/docs/operations/image.md +177 -0
  94. package/docs/operations/index.md +46 -0
  95. package/docs/operations/line.md +6468 -0
  96. package/docs/operations/number.md +3969 -0
  97. package/docs/operations/pie.md +6089 -0
  98. package/docs/operations/radar.md +4646 -0
  99. package/docs/operations/sankey.md +3210 -0
  100. package/docs/operations/scatter.md +6075 -0
  101. package/docs/operations/shape.md +315 -0
  102. package/docs/operations/simpleTextObject.md +706 -0
  103. package/docs/operations/slider.md +230 -0
  104. package/docs/operations/table.md +8790 -0
  105. package/docs/operations/tree.md +2874 -0
  106. package/docs/operations/treemap.md +3619 -0
  107. package/docs/operations/waterfall.md +2938 -0
  108. package/docs/operations/word-cloud.md +3071 -0
  109. package/getters.js +18 -0
  110. package/index.js +1183 -0
  111. package/metadata.js +20 -0
  112. package/operations.js +64 -0
  113. package/package.json +191 -4
  114. package/src/definitions/index.d.ts +2 -0
  115. package/src/definitions/shared/index.d.ts +5 -0
  116. package/src/definitions/shared/lib/available-fields.d.ts +36 -0
  117. package/src/definitions/shared/lib/compilers/index.d.ts +7 -0
  118. package/src/definitions/shared/lib/registry/compile.d.ts +2 -0
  119. package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +587 -0
  120. package/src/definitions/shared/lib/registry/index.d.ts +3 -0
  121. package/src/definitions/shared/lib/registry/validation.d.ts +3 -0
  122. package/src/definitions/shared/lib/schemas/app-filter-bar.schema.d.ts +22 -0
  123. package/src/definitions/shared/lib/schemas/bar.schema.d.ts +73 -0
  124. package/src/definitions/shared/lib/schemas/broad-chart.schema.d.ts +68 -0
  125. package/src/definitions/shared/lib/schemas/common.schema.d.ts +304 -0
  126. package/src/definitions/shared/lib/schemas/filter.schema.d.ts +22 -0
  127. package/src/definitions/shared/lib/schemas/index.d.ts +9 -0
  128. package/src/definitions/shared/lib/schemas/line.schema.d.ts +72 -0
  129. package/src/definitions/shared/lib/schemas/number.schema.d.ts +21 -0
  130. package/src/definitions/shared/lib/schemas/object.schema.d.ts +215 -0
  131. package/src/definitions/shared/lib/schemas/table.schema.d.ts +458 -0
  132. package/src/definitions/shared/lib/types/compilation.types.d.ts +36 -0
  133. package/src/definitions/shared/lib/types/definition.types.d.ts +2 -0
  134. package/src/definitions/shared/lib/types/descriptor.types.d.ts +39 -0
  135. package/src/definitions/shared/lib/types/index.d.ts +3 -0
  136. package/src/getters/index.d.ts +30 -0
  137. package/src/index.d.ts +4 -0
  138. package/src/metadata/index.d.ts +4 -0
  139. package/src/operations/index.d.ts +30 -0
  140. package/src/registry/index.d.ts +6 -0
  141. package/src/runtime/index.d.ts +2 -0
  142. package/src/types.d.ts +307 -0
  143. package/src/visualization-catalog.d.ts +82 -0
  144. package/src/web-components/index.d.ts +12 -0
  145. package/styles.css +2 -0
@@ -0,0 +1,1870 @@
1
+ <!-- Generated from operation manifests. Do not edit this file manually. -->
2
+
3
+ # `histogram` operations
4
+
5
+ Reference for `@astrato-io/visualizations@0.6.4`.
6
+
7
+ [All visualization types](./index.md)
8
+
9
+ Use each schema below for the request’s `payload`, not for the whole operation request. Names and payloads are specific to this visualization type. An operation can still require particular fields or chart state; see its description.
10
+
11
+ ## Available operations
12
+
13
+ - [`addDimension`](#adddimension)
14
+ - [`addMeasureAxisBand`](#addmeasureaxisband)
15
+ - [`duplicateDimension`](#duplicatedimension)
16
+ - [`removeDimension`](#removedimension)
17
+ - [`removeMeasureAxisBand`](#removemeasureaxisband)
18
+ - [`setAnimationEnabled`](#setanimationenabled)
19
+ - [`setAxisLabelColor`](#setaxislabelcolor)
20
+ - [`setAxisLineColor`](#setaxislinecolor)
21
+ - [`setAxisRangeMax`](#setaxisrangemax)
22
+ - [`setAxisRangeMin`](#setaxisrangemin)
23
+ - [`setAxisRangeOption`](#setaxisrangeoption)
24
+ - [`setAxisStartsAtZero`](#setaxisstartsatzero)
25
+ - [`setAxisTickColor`](#setaxistickcolor)
26
+ - [`setAxisTitle`](#setaxistitle)
27
+ - [`setAxisTitleColor`](#setaxistitlecolor)
28
+ - [`setColoringType`](#setcoloringtype)
29
+ - [`setDimensionFormatString`](#setdimensionformatstring)
30
+ - [`setDimensionFormatType`](#setdimensionformattype)
31
+ - [`setDimensionTemporalGrouping`](#setdimensiontemporalgrouping)
32
+ - [`setEnableContinuousAxis`](#setenablecontinuousaxis)
33
+ - [`setInvertAxis`](#setinvertaxis)
34
+ - [`setLabelOverlap`](#setlabeloverlap)
35
+ - [`setLegendEnabled`](#setlegendenabled)
36
+ - [`setLegendItemLabelFill`](#setlegenditemlabelfill)
37
+ - [`setLegendItemLabelFontSize`](#setlegenditemlabelfontsize)
38
+ - [`setLegendItemLabelLimitCharacters`](#setlegenditemlabellimitcharacters)
39
+ - [`setLegendItemLabelMaxGlyphCount`](#setlegenditemlabelmaxglyphcount)
40
+ - [`setLegendPosition`](#setlegendposition)
41
+ - [`setLegendTitle`](#setlegendtitle)
42
+ - [`setMeasureAxisBands`](#setmeasureaxisbands)
43
+ - [`setMeasureCurrency`](#setmeasurecurrency)
44
+ - [`setMeasureCurrencyIsPrefix`](#setmeasurecurrencyisprefix)
45
+ - [`setMeasureFormatString`](#setmeasureformatstring)
46
+ - [`setMeasureFormatType`](#setmeasureformattype)
47
+ - [`setMeasureNegativeType`](#setmeasurenegativetype)
48
+ - [`setOrientation`](#setorientation)
49
+ - [`setShowAxisLabels`](#setshowaxislabels)
50
+ - [`setShowAxisLine`](#setshowaxisline)
51
+ - [`setShowAxisTicks`](#setshowaxisticks)
52
+ - [`setShowAxisTitle`](#setshowaxistitle)
53
+ - [`setShowAxisTooltip`](#setshowaxistooltip)
54
+ - [`setSortingDirection`](#setsortingdirection)
55
+ - [`setSortingEnabled`](#setsortingenabled)
56
+ - [`setStaticFilterGroup`](#setstaticfiltergroup)
57
+ - [`toggleDimension`](#toggledimension)
58
+ - [`toggleDimensionByName`](#toggledimensionbyname)
59
+ - [`updateDimension`](#updatedimension)
60
+
61
+ ## `addDimension`
62
+
63
+ Add dimension
64
+
65
+ Add a new dimension to the chart
66
+
67
+ **Payload schema**
68
+
69
+ ```json
70
+ {
71
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
72
+ "title": "Add dimension schema",
73
+ "type": "object",
74
+ "properties": {
75
+ "key": {
76
+ "description": "Engine key of the field to be added as a dimension, eg. \"[Cars].[Horsepower]\"",
77
+ "type": "string"
78
+ }
79
+ },
80
+ "required": ["key"],
81
+ "additionalProperties": false
82
+ }
83
+ ```
84
+
85
+ ## `addMeasureAxisBand`
86
+
87
+ Add measure axis band
88
+
89
+ Add a shaded band on the primary measure axis between two measure values
90
+
91
+ **Payload schema**
92
+
93
+ ```json
94
+ {
95
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
96
+ "title": "Add measure axis band schema",
97
+ "type": "object",
98
+ "properties": {
99
+ "start": {
100
+ "description": "Measure axis value where the band starts",
101
+ "type": "number"
102
+ },
103
+ "end": {
104
+ "description": "Measure axis value where the band ends",
105
+ "type": "number"
106
+ },
107
+ "color": {
108
+ "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
109
+ "type": "string",
110
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
111
+ },
112
+ "label": {
113
+ "description": "Text drawn inside the band",
114
+ "type": "string"
115
+ }
116
+ },
117
+ "required": ["start", "end"],
118
+ "additionalProperties": false
119
+ }
120
+ ```
121
+
122
+ ## `duplicateDimension`
123
+
124
+ Duplicate dimension
125
+
126
+ Create a copy of an existing dimension
127
+
128
+ **Payload schema**
129
+
130
+ ```json
131
+ {
132
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
133
+ "title": "Duplicate dimension schema",
134
+ "type": "object",
135
+ "properties": {
136
+ "dataItemInternalKey": {
137
+ "description": "Internal key of the data item of the dimension to be duplicated",
138
+ "type": "string"
139
+ },
140
+ "dataItemUniqueSignature": {
141
+ "description": "Unique signature of the data item of the dimension to be duplicated",
142
+ "type": "string"
143
+ }
144
+ },
145
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
146
+ "additionalProperties": false
147
+ }
148
+ ```
149
+
150
+ ## `removeDimension`
151
+
152
+ Remove dimension
153
+
154
+ Remove a dimension from the chart
155
+
156
+ **Payload schema**
157
+
158
+ ```json
159
+ {
160
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
161
+ "title": "Remove dimension schema",
162
+ "type": "object",
163
+ "properties": {
164
+ "dataItemInternalKey": {
165
+ "description": "Internal key of the data item of the dimension to be removed",
166
+ "type": "string"
167
+ },
168
+ "dataItemUniqueSignature": {
169
+ "description": "Unique signature of the data item of the dimension to be removed",
170
+ "type": "string"
171
+ }
172
+ },
173
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
174
+ "additionalProperties": false
175
+ }
176
+ ```
177
+
178
+ ## `removeMeasureAxisBand`
179
+
180
+ Remove measure axis band
181
+
182
+ Remove one shaded band from the primary measure axis by its position
183
+
184
+ **Payload schema**
185
+
186
+ ```json
187
+ {
188
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
189
+ "title": "Remove measure axis band schema",
190
+ "type": "object",
191
+ "properties": {
192
+ "index": {
193
+ "description": "Zero-based position of the band to remove",
194
+ "type": "integer",
195
+ "minimum": 0,
196
+ "maximum": 9007199254740991
197
+ }
198
+ },
199
+ "required": ["index"],
200
+ "additionalProperties": false
201
+ }
202
+ ```
203
+
204
+ ## `setAnimationEnabled`
205
+
206
+ Animations
207
+
208
+ Turn the chart animations on or off. They are on by default; the host can still disable them regardless of this setting
209
+
210
+ **Payload schema**
211
+
212
+ ```json
213
+ {
214
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
215
+ "title": "Set animation enabled schema",
216
+ "type": "object",
217
+ "properties": {
218
+ "enabled": {
219
+ "description": "Whether the chart animates when it first renders and when its data changes",
220
+ "type": "boolean"
221
+ }
222
+ },
223
+ "required": ["enabled"],
224
+ "additionalProperties": false
225
+ }
226
+ ```
227
+
228
+ ## `setAxisLabelColor`
229
+
230
+ Axis label color
231
+
232
+ Change the color of axis value labels
233
+
234
+ **Payload schema**
235
+
236
+ ```json
237
+ {
238
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
239
+ "title": "Axis label color schema",
240
+ "type": "object",
241
+ "properties": {
242
+ "labelColor": {
243
+ "anyOf": [
244
+ {
245
+ "type": "string",
246
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
247
+ },
248
+ {
249
+ "type": "null"
250
+ }
251
+ ]
252
+ },
253
+ "axisName": {
254
+ "type": "string",
255
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
256
+ }
257
+ },
258
+ "required": ["axisName"],
259
+ "additionalProperties": false
260
+ }
261
+ ```
262
+
263
+ ## `setAxisLineColor`
264
+
265
+ Axis line color
266
+
267
+ Change the color of axis lines
268
+
269
+ **Payload schema**
270
+
271
+ ```json
272
+ {
273
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
274
+ "title": "Axis line color schema",
275
+ "type": "object",
276
+ "properties": {
277
+ "lineColor": {
278
+ "anyOf": [
279
+ {
280
+ "type": "string",
281
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
282
+ },
283
+ {
284
+ "type": "null"
285
+ }
286
+ ]
287
+ },
288
+ "axisName": {
289
+ "type": "string",
290
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
291
+ }
292
+ },
293
+ "required": ["axisName"],
294
+ "additionalProperties": false
295
+ }
296
+ ```
297
+
298
+ ## `setAxisRangeMax`
299
+
300
+ Axis range maximum
301
+
302
+ Set the maximum of a measure axis. Applies only when the axis range option is minmax or max, e.g. to give several charts the same scale.
303
+
304
+ **Payload schema**
305
+
306
+ ```json
307
+ {
308
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
309
+ "title": "Axis range max schema",
310
+ "type": "object",
311
+ "properties": {
312
+ "axisName": {
313
+ "type": "string",
314
+ "enum": ["primaryMeasure"]
315
+ },
316
+ "maxValue": {
317
+ "type": "number"
318
+ }
319
+ },
320
+ "required": ["axisName", "maxValue"],
321
+ "additionalProperties": false
322
+ }
323
+ ```
324
+
325
+ ## `setAxisRangeMin`
326
+
327
+ Axis range minimum
328
+
329
+ Set the minimum of a measure axis. Applies only when the axis range option is minmax or min, e.g. to give several charts the same scale.
330
+
331
+ **Payload schema**
332
+
333
+ ```json
334
+ {
335
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
336
+ "title": "Axis range min schema",
337
+ "type": "object",
338
+ "properties": {
339
+ "axisName": {
340
+ "type": "string",
341
+ "enum": ["primaryMeasure"]
342
+ },
343
+ "minValue": {
344
+ "type": "number"
345
+ }
346
+ },
347
+ "required": ["axisName", "minValue"],
348
+ "additionalProperties": false
349
+ }
350
+ ```
351
+
352
+ ## `setAxisRangeOption`
353
+
354
+ Axis range
355
+
356
+ Choose how a measure axis range is set: auto fits the data, minmax fixes both ends, min or max fixes one end. Fixed ends take their values from setAxisRangeMin and setAxisRangeMax.
357
+
358
+ **Payload schema**
359
+
360
+ ```json
361
+ {
362
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
363
+ "title": "Axis range option schema",
364
+ "type": "object",
365
+ "properties": {
366
+ "axisName": {
367
+ "type": "string",
368
+ "enum": ["primaryMeasure"]
369
+ },
370
+ "axisRangeOption": {
371
+ "type": "string",
372
+ "enum": ["auto", "minmax", "max", "min"]
373
+ }
374
+ },
375
+ "required": ["axisName", "axisRangeOption"],
376
+ "additionalProperties": false
377
+ }
378
+ ```
379
+
380
+ ## `setAxisStartsAtZero`
381
+
382
+ Axis starts at zero
383
+
384
+ Make an auto-ranged measure axis always include zero. Applies only when the axis range option is auto.
385
+
386
+ **Payload schema**
387
+
388
+ ```json
389
+ {
390
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
391
+ "title": "Axis starts at zero schema",
392
+ "type": "object",
393
+ "properties": {
394
+ "axisName": {
395
+ "type": "string",
396
+ "enum": ["primaryMeasure"]
397
+ },
398
+ "startsAtZero": {
399
+ "type": "boolean"
400
+ }
401
+ },
402
+ "required": ["axisName", "startsAtZero"],
403
+ "additionalProperties": false
404
+ }
405
+ ```
406
+
407
+ ## `setAxisTickColor`
408
+
409
+ Axis tick color
410
+
411
+ Change the color of axis tick marks
412
+
413
+ **Payload schema**
414
+
415
+ ```json
416
+ {
417
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
418
+ "title": "Axis tick color schema",
419
+ "type": "object",
420
+ "properties": {
421
+ "tickColor": {
422
+ "anyOf": [
423
+ {
424
+ "type": "string",
425
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
426
+ },
427
+ {
428
+ "type": "null"
429
+ }
430
+ ]
431
+ },
432
+ "axisName": {
433
+ "type": "string",
434
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
435
+ }
436
+ },
437
+ "required": ["axisName"],
438
+ "additionalProperties": false
439
+ }
440
+ ```
441
+
442
+ ## `setAxisTitle`
443
+
444
+ Axis title
445
+
446
+ Set a custom title for an axis
447
+
448
+ **Payload schema**
449
+
450
+ ```json
451
+ {
452
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
453
+ "title": "Axis title schema",
454
+ "type": "object",
455
+ "properties": {
456
+ "axisTitle": {
457
+ "type": "string"
458
+ },
459
+ "axisName": {
460
+ "type": "string",
461
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
462
+ }
463
+ },
464
+ "required": ["axisName"],
465
+ "additionalProperties": false
466
+ }
467
+ ```
468
+
469
+ ## `setAxisTitleColor`
470
+
471
+ Axis title color
472
+
473
+ Change the color of axis titles
474
+
475
+ **Payload schema**
476
+
477
+ ```json
478
+ {
479
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
480
+ "title": "Axis title color schema",
481
+ "type": "object",
482
+ "properties": {
483
+ "titleColor": {
484
+ "anyOf": [
485
+ {
486
+ "type": "string",
487
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
488
+ },
489
+ {
490
+ "type": "null"
491
+ }
492
+ ]
493
+ },
494
+ "axisName": {
495
+ "type": "string",
496
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
497
+ }
498
+ },
499
+ "required": ["axisName"],
500
+ "additionalProperties": false
501
+ }
502
+ ```
503
+
504
+ ## `setColoringType`
505
+
506
+ Coloring type
507
+
508
+ Set how colors are applied to the chart
509
+
510
+ **Payload schema**
511
+
512
+ ```json
513
+ {
514
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
515
+ "title": "Coloring type schema",
516
+ "type": "string",
517
+ "enum": ["single", "categorical", "gradient", "perEachMeasure", "perEachDimension"]
518
+ }
519
+ ```
520
+
521
+ ## `setDimensionFormatString`
522
+
523
+ Dimension format string
524
+
525
+ Set the custom display format string for a dimension. This changes label formatting only and does not change temporal grouping.
526
+
527
+ **Payload schema**
528
+
529
+ ```json
530
+ {
531
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
532
+ "title": "Dimension format string schema",
533
+ "type": "object",
534
+ "properties": {
535
+ "dataItemInternalKey": {
536
+ "description": "Internal key of the data item of the dimension to be updated",
537
+ "type": "string"
538
+ },
539
+ "dataItemUniqueSignature": {
540
+ "description": "Unique signature of the data item of the dimension to be updated",
541
+ "type": "string"
542
+ },
543
+ "formatString": {
544
+ "anyOf": [
545
+ {
546
+ "type": "string"
547
+ },
548
+ {
549
+ "type": "object",
550
+ "properties": {
551
+ "type": {
552
+ "type": "string",
553
+ "const": "variable"
554
+ },
555
+ "variableName": {
556
+ "type": "string"
557
+ }
558
+ },
559
+ "required": ["type", "variableName"],
560
+ "additionalProperties": false
561
+ }
562
+ ]
563
+ }
564
+ },
565
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
566
+ "additionalProperties": false
567
+ }
568
+ ```
569
+
570
+ ## `setDimensionFormatType`
571
+
572
+ Dimension format type
573
+
574
+ Set the display format type used by a dimension. This changes label formatting only and does not change temporal grouping.
575
+
576
+ **Payload schema**
577
+
578
+ ```json
579
+ {
580
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
581
+ "title": "Dimension format type schema",
582
+ "type": "object",
583
+ "properties": {
584
+ "dataItemInternalKey": {
585
+ "description": "Internal key of the data item of the dimension to be updated",
586
+ "type": "string"
587
+ },
588
+ "dataItemUniqueSignature": {
589
+ "description": "Unique signature of the data item of the dimension to be updated",
590
+ "type": "string"
591
+ },
592
+ "formatType": {
593
+ "anyOf": [
594
+ {
595
+ "type": "string",
596
+ "enum": [
597
+ "custom",
598
+ "inherit",
599
+ "none",
600
+ "defaultNumber",
601
+ "defaultMoney",
602
+ "numberNoDecimal",
603
+ "number1Decimal",
604
+ "number2Decimal",
605
+ "abbreviationAuto",
606
+ "abbreviationNoDecimal",
607
+ "abbreviation1Decimal",
608
+ "abbreviation2Decimal",
609
+ "percentageNoDecimal",
610
+ "percentage1Decimal",
611
+ "percentage2Decimal",
612
+ "money0Decimal",
613
+ "money2Decimal",
614
+ "durationDays",
615
+ "durationHours",
616
+ "durationMinutes",
617
+ "durationSeconds"
618
+ ]
619
+ },
620
+ {
621
+ "type": "string",
622
+ "enum": [
623
+ "defaultDate",
624
+ "defaultDatetime",
625
+ "defaultTime",
626
+ "ddmmyyyy",
627
+ "ddmmyyyy2",
628
+ "ddmmyyyy3",
629
+ "yyyymmdd",
630
+ "mmddyyyy",
631
+ "mmddyyyy2",
632
+ "ddmmmmyyyy",
633
+ "ddmmmyyyy",
634
+ "ddmmmyy",
635
+ "mmmmddyyyy",
636
+ "yyyy",
637
+ "yy",
638
+ "mmmyyyy",
639
+ "yyyymmm",
640
+ "yyyymmmm",
641
+ "mmyyyy",
642
+ "yyyymm",
643
+ "mmmmyyyy",
644
+ "yyyywn",
645
+ "wnyyyy",
646
+ "yywn",
647
+ "yyyyq",
648
+ "qyyyy",
649
+ "yyyymmddhhmmss",
650
+ "yyyymmddhmmss",
651
+ "yyyymmddhhmm",
652
+ "yyyymmddhh",
653
+ "yyyymmddhmm",
654
+ "yyyymmddh",
655
+ "ddmmmyyyyhhmmss",
656
+ "ddmmmyyyyhmmss",
657
+ "ddmmmyyyyhhmm",
658
+ "ddmmmyyyyhmm",
659
+ "ddmmmyyyyh",
660
+ "hhmmss",
661
+ "hhmm",
662
+ "hmm",
663
+ "h",
664
+ "hh",
665
+ "hmmss",
666
+ "month",
667
+ "month2",
668
+ "monthn",
669
+ "month3",
670
+ "quarter",
671
+ "quarter2",
672
+ "week1",
673
+ "week2",
674
+ "week3",
675
+ "day",
676
+ "dayOfWeek",
677
+ "hhn",
678
+ "hn"
679
+ ]
680
+ }
681
+ ]
682
+ }
683
+ },
684
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "formatType"],
685
+ "additionalProperties": false
686
+ }
687
+ ```
688
+
689
+ ## `setDimensionTemporalGrouping`
690
+
691
+ Dimension temporal grouping
692
+
693
+ Set the temporal grouping of a date dimension. Use mode "level" with dateLevel for year-aware buckets such as month-over-time, mode "part" with datePart for date parts such as month-of-year, or mode "none" to clear temporal grouping.
694
+
695
+ **Payload schema**
696
+
697
+ ```json
698
+ {
699
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
700
+ "title": "Dimension temporal grouping schema",
701
+ "anyOf": [
702
+ {
703
+ "type": "object",
704
+ "properties": {
705
+ "dataItemInternalKey": {
706
+ "description": "Internal key of the data item of the dimension to be updated",
707
+ "type": "string"
708
+ },
709
+ "dataItemUniqueSignature": {
710
+ "description": "Unique signature of the data item of the dimension to be updated",
711
+ "type": "string"
712
+ },
713
+ "mode": {
714
+ "type": "string",
715
+ "const": "none"
716
+ }
717
+ },
718
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "mode"],
719
+ "additionalProperties": false
720
+ },
721
+ {
722
+ "type": "object",
723
+ "properties": {
724
+ "dataItemInternalKey": {
725
+ "description": "Internal key of the data item of the dimension to be updated",
726
+ "type": "string"
727
+ },
728
+ "dataItemUniqueSignature": {
729
+ "description": "Unique signature of the data item of the dimension to be updated",
730
+ "type": "string"
731
+ },
732
+ "mode": {
733
+ "type": "string",
734
+ "const": "level"
735
+ },
736
+ "dateLevel": {
737
+ "type": "string",
738
+ "enum": [
739
+ "year",
740
+ "year-end",
741
+ "quarter",
742
+ "quarter-end",
743
+ "month",
744
+ "month-end",
745
+ "week",
746
+ "week-end",
747
+ "day",
748
+ "hour",
749
+ "minute",
750
+ "second"
751
+ ]
752
+ }
753
+ },
754
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "mode", "dateLevel"],
755
+ "additionalProperties": false
756
+ },
757
+ {
758
+ "type": "object",
759
+ "properties": {
760
+ "dataItemInternalKey": {
761
+ "description": "Internal key of the data item of the dimension to be updated",
762
+ "type": "string"
763
+ },
764
+ "dataItemUniqueSignature": {
765
+ "description": "Unique signature of the data item of the dimension to be updated",
766
+ "type": "string"
767
+ },
768
+ "mode": {
769
+ "type": "string",
770
+ "const": "part"
771
+ },
772
+ "datePart": {
773
+ "type": "string",
774
+ "enum": [
775
+ "year",
776
+ "month",
777
+ "day",
778
+ "dayofweekiso",
779
+ "dayofyear",
780
+ "weekiso",
781
+ "quarter",
782
+ "yearofweekiso",
783
+ "hour",
784
+ "minute",
785
+ "second"
786
+ ]
787
+ }
788
+ },
789
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "mode", "datePart"],
790
+ "additionalProperties": false
791
+ }
792
+ ]
793
+ }
794
+ ```
795
+
796
+ ## `setEnableContinuousAxis`
797
+
798
+ Enable continuous axis
799
+
800
+ Use continuous scale for numeric or date values on axis
801
+
802
+ **Payload schema**
803
+
804
+ ```json
805
+ {
806
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
807
+ "title": "Enable continuous axis schema",
808
+ "type": "object",
809
+ "properties": {
810
+ "continuousAxis": {
811
+ "type": "boolean"
812
+ }
813
+ },
814
+ "additionalProperties": false
815
+ }
816
+ ```
817
+
818
+ ## `setInvertAxis`
819
+
820
+ Invert axis
821
+
822
+ Reverse the direction of an axis. axisName defaults to the dimension axis; pass a measure axis to flip its value scale, e.g. to put rank 1 at the top.
823
+
824
+ **Payload schema**
825
+
826
+ ```json
827
+ {
828
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
829
+ "title": "Invert axis schema",
830
+ "type": "object",
831
+ "properties": {
832
+ "invertAxis": {
833
+ "type": "boolean"
834
+ },
835
+ "axisName": {
836
+ "type": "string",
837
+ "enum": ["dimension", "primaryMeasure"]
838
+ }
839
+ },
840
+ "required": ["invertAxis"],
841
+ "additionalProperties": false
842
+ }
843
+ ```
844
+
845
+ ## `setLabelOverlap`
846
+
847
+ Axis label overlap
848
+
849
+ Control how axis labels behave when they overlap
850
+
851
+ **Payload schema**
852
+
853
+ ```json
854
+ {
855
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
856
+ "title": "Label overlap schema",
857
+ "type": "object",
858
+ "properties": {
859
+ "labelOverlap": {
860
+ "type": "string",
861
+ "enum": ["auto", "show-last"]
862
+ }
863
+ },
864
+ "additionalProperties": false
865
+ }
866
+ ```
867
+
868
+ ## `setLegendEnabled`
869
+
870
+ Legend enabled
871
+
872
+ Show or hide the chart legend
873
+
874
+ **Payload schema**
875
+
876
+ ```json
877
+ {
878
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
879
+ "description": "Enable legend",
880
+ "title": "Legend enabled schema",
881
+ "type": "boolean"
882
+ }
883
+ ```
884
+
885
+ ## `setLegendItemLabelFill`
886
+
887
+ Legend label color
888
+
889
+ Change the color of legend text labels
890
+
891
+ **Payload schema**
892
+
893
+ ```json
894
+ {
895
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
896
+ "description": "Legend item label font color (hexadecimal color code)",
897
+ "title": "Legend item label fill schema",
898
+ "anyOf": [
899
+ {
900
+ "type": "string",
901
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
902
+ },
903
+ {
904
+ "type": "null"
905
+ }
906
+ ]
907
+ }
908
+ ```
909
+
910
+ ## `setLegendItemLabelFontSize`
911
+
912
+ Legend label font size
913
+
914
+ Adjust the font size of legend labels
915
+
916
+ **Payload schema**
917
+
918
+ ```json
919
+ {
920
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
921
+ "title": "Legend item label font size schema",
922
+ "type": "number"
923
+ }
924
+ ```
925
+
926
+ ## `setLegendItemLabelLimitCharacters`
927
+
928
+ Enable legend label characters limit
929
+
930
+ Enable or disable character limit for legend labels
931
+
932
+ **Payload schema**
933
+
934
+ ```json
935
+ {
936
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
937
+ "description": "Limit characters by maxGlyphCount",
938
+ "title": "Legend item label limit characters schema",
939
+ "type": "boolean"
940
+ }
941
+ ```
942
+
943
+ ## `setLegendItemLabelMaxGlyphCount`
944
+
945
+ Legend label characters limit
946
+
947
+ Set the maximum number of characters shown in legend labels
948
+
949
+ **Payload schema**
950
+
951
+ ```json
952
+ {
953
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
954
+ "description": "Maximum number of glyphs in the legend item label",
955
+ "title": "Legend item label max glyph count schema",
956
+ "anyOf": [
957
+ {
958
+ "type": "number"
959
+ },
960
+ {
961
+ "type": "null"
962
+ }
963
+ ]
964
+ }
965
+ ```
966
+
967
+ ## `setLegendPosition`
968
+
969
+ Legend position
970
+
971
+ Change where the legend appears on the chart
972
+
973
+ **Payload schema**
974
+
975
+ ```json
976
+ {
977
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
978
+ "description": "Legend position",
979
+ "title": "Legend position schema",
980
+ "type": "string",
981
+ "enum": ["left", "right", "top", "bottom"]
982
+ }
983
+ ```
984
+
985
+ ## `setLegendTitle`
986
+
987
+ Legend title
988
+
989
+ Set a custom title for the legend
990
+
991
+ **Payload schema**
992
+
993
+ ```json
994
+ {
995
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
996
+ "description": "Legend title text",
997
+ "title": "Legend title schema",
998
+ "anyOf": [
999
+ {
1000
+ "type": "string"
1001
+ },
1002
+ {
1003
+ "type": "null"
1004
+ }
1005
+ ]
1006
+ }
1007
+ ```
1008
+
1009
+ ## `setMeasureAxisBands`
1010
+
1011
+ Measure axis bands
1012
+
1013
+ Replace all shaded bands on the primary measure axis. Each band fills the plot between two measure values
1014
+
1015
+ **Payload schema**
1016
+
1017
+ ```json
1018
+ {
1019
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1020
+ "title": "Set measure axis bands schema",
1021
+ "type": "object",
1022
+ "properties": {
1023
+ "bands": {
1024
+ "description": "Bands to draw, in order; an empty array removes all bands",
1025
+ "type": "array",
1026
+ "items": {
1027
+ "type": "object",
1028
+ "properties": {
1029
+ "start": {
1030
+ "description": "Measure axis value where the band starts",
1031
+ "type": "number"
1032
+ },
1033
+ "end": {
1034
+ "description": "Measure axis value where the band ends",
1035
+ "type": "number"
1036
+ },
1037
+ "color": {
1038
+ "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
1039
+ "type": "string",
1040
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1041
+ },
1042
+ "label": {
1043
+ "description": "Text drawn inside the band",
1044
+ "type": "string"
1045
+ }
1046
+ },
1047
+ "required": ["start", "end"],
1048
+ "additionalProperties": false
1049
+ }
1050
+ }
1051
+ },
1052
+ "required": ["bands"],
1053
+ "additionalProperties": false
1054
+ }
1055
+ ```
1056
+
1057
+ ## `setMeasureCurrency`
1058
+
1059
+ Measure currency
1060
+
1061
+ Set the currency symbol used by a measure formatter
1062
+
1063
+ **Payload schema**
1064
+
1065
+ ```json
1066
+ {
1067
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1068
+ "title": "Measure currency schema",
1069
+ "type": "object",
1070
+ "properties": {
1071
+ "dataItemInternalKey": {
1072
+ "description": "Internal key of the data item of the measure to be updated",
1073
+ "type": "string"
1074
+ },
1075
+ "dataItemUniqueSignature": {
1076
+ "description": "Unique signature of the data item of the measure to be updated",
1077
+ "type": "string"
1078
+ },
1079
+ "currency": {
1080
+ "type": "string"
1081
+ }
1082
+ },
1083
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
1084
+ "additionalProperties": false
1085
+ }
1086
+ ```
1087
+
1088
+ ## `setMeasureCurrencyIsPrefix`
1089
+
1090
+ Measure currency is prefix
1091
+
1092
+ Set whether measure currency symbol is prefixed
1093
+
1094
+ **Payload schema**
1095
+
1096
+ ```json
1097
+ {
1098
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1099
+ "title": "Measure currency is prefix schema",
1100
+ "type": "object",
1101
+ "properties": {
1102
+ "dataItemInternalKey": {
1103
+ "description": "Internal key of the data item of the measure to be updated",
1104
+ "type": "string"
1105
+ },
1106
+ "dataItemUniqueSignature": {
1107
+ "description": "Unique signature of the data item of the measure to be updated",
1108
+ "type": "string"
1109
+ },
1110
+ "currencyIsPrefix": {
1111
+ "type": "boolean"
1112
+ }
1113
+ },
1114
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
1115
+ "additionalProperties": false
1116
+ }
1117
+ ```
1118
+
1119
+ ## `setMeasureFormatString`
1120
+
1121
+ Measure format string
1122
+
1123
+ Set the custom format string for a measure
1124
+
1125
+ **Payload schema**
1126
+
1127
+ ```json
1128
+ {
1129
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1130
+ "title": "Measure format string schema",
1131
+ "type": "object",
1132
+ "properties": {
1133
+ "dataItemInternalKey": {
1134
+ "description": "Internal key of the data item of the measure to be updated",
1135
+ "type": "string"
1136
+ },
1137
+ "dataItemUniqueSignature": {
1138
+ "description": "Unique signature of the data item of the measure to be updated",
1139
+ "type": "string"
1140
+ },
1141
+ "formatString": {
1142
+ "anyOf": [
1143
+ {
1144
+ "type": "string"
1145
+ },
1146
+ {
1147
+ "type": "object",
1148
+ "properties": {
1149
+ "type": {
1150
+ "type": "string",
1151
+ "const": "variable"
1152
+ },
1153
+ "variableName": {
1154
+ "type": "string"
1155
+ }
1156
+ },
1157
+ "required": ["type", "variableName"],
1158
+ "additionalProperties": false
1159
+ }
1160
+ ]
1161
+ }
1162
+ },
1163
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
1164
+ "additionalProperties": false
1165
+ }
1166
+ ```
1167
+
1168
+ ## `setMeasureFormatType`
1169
+
1170
+ Measure format type
1171
+
1172
+ Set the format type used by a measure
1173
+
1174
+ **Payload schema**
1175
+
1176
+ ```json
1177
+ {
1178
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1179
+ "title": "Measure format type schema",
1180
+ "type": "object",
1181
+ "properties": {
1182
+ "dataItemInternalKey": {
1183
+ "description": "Internal key of the data item of the measure to be updated",
1184
+ "type": "string"
1185
+ },
1186
+ "dataItemUniqueSignature": {
1187
+ "description": "Unique signature of the data item of the measure to be updated",
1188
+ "type": "string"
1189
+ },
1190
+ "formatType": {
1191
+ "anyOf": [
1192
+ {
1193
+ "type": "string",
1194
+ "enum": [
1195
+ "custom",
1196
+ "inherit",
1197
+ "none",
1198
+ "defaultNumber",
1199
+ "defaultMoney",
1200
+ "numberNoDecimal",
1201
+ "number1Decimal",
1202
+ "number2Decimal",
1203
+ "abbreviationAuto",
1204
+ "abbreviationNoDecimal",
1205
+ "abbreviation1Decimal",
1206
+ "abbreviation2Decimal",
1207
+ "percentageNoDecimal",
1208
+ "percentage1Decimal",
1209
+ "percentage2Decimal",
1210
+ "money0Decimal",
1211
+ "money2Decimal",
1212
+ "durationDays",
1213
+ "durationHours",
1214
+ "durationMinutes",
1215
+ "durationSeconds"
1216
+ ]
1217
+ },
1218
+ {
1219
+ "type": "string",
1220
+ "enum": [
1221
+ "defaultDate",
1222
+ "defaultDatetime",
1223
+ "defaultTime",
1224
+ "ddmmyyyy",
1225
+ "ddmmyyyy2",
1226
+ "ddmmyyyy3",
1227
+ "yyyymmdd",
1228
+ "mmddyyyy",
1229
+ "mmddyyyy2",
1230
+ "ddmmmmyyyy",
1231
+ "ddmmmyyyy",
1232
+ "ddmmmyy",
1233
+ "mmmmddyyyy",
1234
+ "yyyy",
1235
+ "yy",
1236
+ "mmmyyyy",
1237
+ "yyyymmm",
1238
+ "yyyymmmm",
1239
+ "mmyyyy",
1240
+ "yyyymm",
1241
+ "mmmmyyyy",
1242
+ "yyyywn",
1243
+ "wnyyyy",
1244
+ "yywn",
1245
+ "yyyyq",
1246
+ "qyyyy",
1247
+ "yyyymmddhhmmss",
1248
+ "yyyymmddhmmss",
1249
+ "yyyymmddhhmm",
1250
+ "yyyymmddhh",
1251
+ "yyyymmddhmm",
1252
+ "yyyymmddh",
1253
+ "ddmmmyyyyhhmmss",
1254
+ "ddmmmyyyyhmmss",
1255
+ "ddmmmyyyyhhmm",
1256
+ "ddmmmyyyyhmm",
1257
+ "ddmmmyyyyh",
1258
+ "hhmmss",
1259
+ "hhmm",
1260
+ "hmm",
1261
+ "h",
1262
+ "hh",
1263
+ "hmmss",
1264
+ "month",
1265
+ "month2",
1266
+ "monthn",
1267
+ "month3",
1268
+ "quarter",
1269
+ "quarter2",
1270
+ "week1",
1271
+ "week2",
1272
+ "week3",
1273
+ "day",
1274
+ "dayOfWeek",
1275
+ "hhn",
1276
+ "hn"
1277
+ ]
1278
+ }
1279
+ ]
1280
+ }
1281
+ },
1282
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "formatType"],
1283
+ "additionalProperties": false
1284
+ }
1285
+ ```
1286
+
1287
+ ## `setMeasureNegativeType`
1288
+
1289
+ Measure negative type
1290
+
1291
+ Set how negative values are displayed for a measure formatter
1292
+
1293
+ **Payload schema**
1294
+
1295
+ ```json
1296
+ {
1297
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1298
+ "title": "Measure negative type schema",
1299
+ "type": "object",
1300
+ "properties": {
1301
+ "dataItemInternalKey": {
1302
+ "description": "Internal key of the data item of the measure to be updated",
1303
+ "type": "string"
1304
+ },
1305
+ "dataItemUniqueSignature": {
1306
+ "description": "Unique signature of the data item of the measure to be updated",
1307
+ "type": "string"
1308
+ },
1309
+ "negativeType": {
1310
+ "type": "string",
1311
+ "enum": ["symbol", "parenthesis"]
1312
+ }
1313
+ },
1314
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
1315
+ "additionalProperties": false
1316
+ }
1317
+ ```
1318
+
1319
+ ## `setOrientation`
1320
+
1321
+ Orientation
1322
+
1323
+ Set the orientation of the histogram chart
1324
+
1325
+ **Payload schema**
1326
+
1327
+ ```json
1328
+ {
1329
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1330
+ "title": "Histogram chart orientation schema",
1331
+ "type": "string",
1332
+ "enum": ["horizontal", "vertical"]
1333
+ }
1334
+ ```
1335
+
1336
+ ## `setShowAxisLabels`
1337
+
1338
+ Show axis labels
1339
+
1340
+ Show or hide value labels on chart axes
1341
+
1342
+ **Payload schema**
1343
+
1344
+ ```json
1345
+ {
1346
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1347
+ "title": "Axis labels schema",
1348
+ "type": "object",
1349
+ "properties": {
1350
+ "showLabels": {
1351
+ "type": "boolean"
1352
+ },
1353
+ "axisName": {
1354
+ "type": "string",
1355
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
1356
+ }
1357
+ },
1358
+ "required": ["axisName"],
1359
+ "additionalProperties": false
1360
+ }
1361
+ ```
1362
+
1363
+ ## `setShowAxisLine`
1364
+
1365
+ Show axis line
1366
+
1367
+ Show or hide the axis lines on the chart
1368
+
1369
+ **Payload schema**
1370
+
1371
+ ```json
1372
+ {
1373
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1374
+ "title": "Axis line schema",
1375
+ "type": "object",
1376
+ "properties": {
1377
+ "showAxisLine": {
1378
+ "type": "boolean"
1379
+ },
1380
+ "axisName": {
1381
+ "type": "string",
1382
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
1383
+ }
1384
+ },
1385
+ "required": ["axisName"],
1386
+ "additionalProperties": false
1387
+ }
1388
+ ```
1389
+
1390
+ ## `setShowAxisTicks`
1391
+
1392
+ Show axis ticks
1393
+
1394
+ Show or hide tick marks on chart axes
1395
+
1396
+ **Payload schema**
1397
+
1398
+ ```json
1399
+ {
1400
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1401
+ "title": "Axis ticks schema",
1402
+ "type": "object",
1403
+ "properties": {
1404
+ "showAxisTicks": {
1405
+ "type": "boolean"
1406
+ },
1407
+ "axisName": {
1408
+ "type": "string",
1409
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
1410
+ }
1411
+ },
1412
+ "required": ["axisName"],
1413
+ "additionalProperties": false
1414
+ }
1415
+ ```
1416
+
1417
+ ## `setShowAxisTitle`
1418
+
1419
+ Show axis title
1420
+
1421
+ Show or hide axis titles on the chart
1422
+
1423
+ **Payload schema**
1424
+
1425
+ ```json
1426
+ {
1427
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1428
+ "title": "Axis title schema",
1429
+ "type": "object",
1430
+ "properties": {
1431
+ "showAxisName": {
1432
+ "type": "boolean"
1433
+ },
1434
+ "axisName": {
1435
+ "type": "string",
1436
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
1437
+ }
1438
+ },
1439
+ "required": ["axisName"],
1440
+ "additionalProperties": false
1441
+ }
1442
+ ```
1443
+
1444
+ ## `setShowAxisTooltip`
1445
+
1446
+ Show axis tooltip
1447
+
1448
+ Show or hide tooltips when hovering over axis values
1449
+
1450
+ **Payload schema**
1451
+
1452
+ ```json
1453
+ {
1454
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1455
+ "title": "Show axis tooltip schema",
1456
+ "type": "object",
1457
+ "properties": {
1458
+ "showAxisTooltip": {
1459
+ "type": "boolean"
1460
+ },
1461
+ "axisName": {
1462
+ "type": "string",
1463
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
1464
+ }
1465
+ },
1466
+ "required": ["axisName"],
1467
+ "additionalProperties": false
1468
+ }
1469
+ ```
1470
+
1471
+ ## `setSortingDirection`
1472
+
1473
+ Sorting direction
1474
+
1475
+ Set sorting direction for all matching sortable items by name
1476
+
1477
+ **Payload schema**
1478
+
1479
+ ```json
1480
+ {
1481
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1482
+ "title": "Sorting direction by name schema",
1483
+ "type": "object",
1484
+ "properties": {
1485
+ "name": {
1486
+ "type": "string",
1487
+ "minLength": 1
1488
+ },
1489
+ "sortDirection": {
1490
+ "type": "string",
1491
+ "enum": ["ascending", "descending"]
1492
+ }
1493
+ },
1494
+ "required": ["name", "sortDirection"],
1495
+ "additionalProperties": false
1496
+ }
1497
+ ```
1498
+
1499
+ ## `setSortingEnabled`
1500
+
1501
+ Sorting enabled
1502
+
1503
+ Enable or disable sorting for all matching sortable items by name
1504
+
1505
+ **Payload schema**
1506
+
1507
+ ```json
1508
+ {
1509
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1510
+ "title": "Sorting enabled by name schema",
1511
+ "type": "object",
1512
+ "properties": {
1513
+ "name": {
1514
+ "type": "string",
1515
+ "minLength": 1
1516
+ },
1517
+ "enabled": {
1518
+ "type": "boolean"
1519
+ }
1520
+ },
1521
+ "required": ["name"],
1522
+ "additionalProperties": false
1523
+ }
1524
+ ```
1525
+
1526
+ ## `setStaticFilterGroup`
1527
+
1528
+ Set static filter group
1529
+
1530
+ Replace all static filters with a nested AND/OR filter group.
1531
+
1532
+ **Payload schema**
1533
+
1534
+ ```json
1535
+ {
1536
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1537
+ "description": "Replace all static filters with this nested AND/OR filter group.",
1538
+ "title": "Set static filter group schema",
1539
+ "$ref": "#/$defs/__schema0",
1540
+ "$defs": {
1541
+ "__schema0": {
1542
+ "type": "object",
1543
+ "properties": {
1544
+ "operator": {
1545
+ "type": "string",
1546
+ "enum": ["and", "or"]
1547
+ },
1548
+ "filters": {
1549
+ "type": "array",
1550
+ "items": {
1551
+ "anyOf": [
1552
+ {
1553
+ "type": "object",
1554
+ "properties": {
1555
+ "fieldKey": {
1556
+ "description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label.",
1557
+ "type": "string"
1558
+ },
1559
+ "operator": {
1560
+ "anyOf": [
1561
+ {
1562
+ "type": "string",
1563
+ "enum": [
1564
+ "equals",
1565
+ "doesNotEqual",
1566
+ "greaterThan",
1567
+ "lessThan",
1568
+ "greaterThanOrEqualTo",
1569
+ "lessThanOrEqualTo",
1570
+ "isBetween",
1571
+ "isNotBetween",
1572
+ "isNull",
1573
+ "notNull",
1574
+ "contains",
1575
+ "excludes",
1576
+ "like",
1577
+ "notLike",
1578
+ "startsWith",
1579
+ "endsWith",
1580
+ "predefined_date_range",
1581
+ "previous",
1582
+ "current",
1583
+ "before",
1584
+ "after",
1585
+ "inList",
1586
+ "excludedFromList",
1587
+ "divider"
1588
+ ]
1589
+ },
1590
+ {
1591
+ "type": "string",
1592
+ "enum": [
1593
+ "ytd",
1594
+ "mtd",
1595
+ "qtd",
1596
+ "wtd",
1597
+ "pytd",
1598
+ "pmtd",
1599
+ "pqtd",
1600
+ "pwtd",
1601
+ "l12m",
1602
+ "l90d",
1603
+ "l30d",
1604
+ "l7d",
1605
+ "cy",
1606
+ "cq",
1607
+ "cm",
1608
+ "py",
1609
+ "pm",
1610
+ "pq",
1611
+ "pw",
1612
+ "today",
1613
+ "yesterday",
1614
+ "mindate",
1615
+ "maxdate"
1616
+ ]
1617
+ }
1618
+ ]
1619
+ },
1620
+ "values": {
1621
+ "type": "object",
1622
+ "properties": {
1623
+ "value": {
1624
+ "anyOf": [
1625
+ {
1626
+ "type": "string"
1627
+ },
1628
+ {
1629
+ "type": "object",
1630
+ "properties": {
1631
+ "type": {
1632
+ "type": "string",
1633
+ "const": "variable"
1634
+ },
1635
+ "variableName": {
1636
+ "type": "string"
1637
+ }
1638
+ },
1639
+ "required": ["type", "variableName"],
1640
+ "additionalProperties": false
1641
+ }
1642
+ ]
1643
+ },
1644
+ "valueFrom": {
1645
+ "anyOf": [
1646
+ {
1647
+ "type": "string"
1648
+ },
1649
+ {
1650
+ "type": "object",
1651
+ "properties": {
1652
+ "type": {
1653
+ "type": "string",
1654
+ "const": "variable"
1655
+ },
1656
+ "variableName": {
1657
+ "type": "string"
1658
+ }
1659
+ },
1660
+ "required": ["type", "variableName"],
1661
+ "additionalProperties": false
1662
+ }
1663
+ ]
1664
+ },
1665
+ "valueTo": {
1666
+ "anyOf": [
1667
+ {
1668
+ "type": "string"
1669
+ },
1670
+ {
1671
+ "type": "object",
1672
+ "properties": {
1673
+ "type": {
1674
+ "type": "string",
1675
+ "const": "variable"
1676
+ },
1677
+ "variableName": {
1678
+ "type": "string"
1679
+ }
1680
+ },
1681
+ "required": ["type", "variableName"],
1682
+ "additionalProperties": false
1683
+ }
1684
+ ]
1685
+ },
1686
+ "secondValue": {
1687
+ "anyOf": [
1688
+ {
1689
+ "type": "string"
1690
+ },
1691
+ {
1692
+ "type": "object",
1693
+ "properties": {
1694
+ "type": {
1695
+ "type": "string",
1696
+ "const": "variable"
1697
+ },
1698
+ "variableName": {
1699
+ "type": "string"
1700
+ }
1701
+ },
1702
+ "required": ["type", "variableName"],
1703
+ "additionalProperties": false
1704
+ }
1705
+ ]
1706
+ }
1707
+ },
1708
+ "additionalProperties": false
1709
+ },
1710
+ "dateFilter": {
1711
+ "anyOf": [
1712
+ {
1713
+ "type": "string",
1714
+ "enum": [
1715
+ "ytd",
1716
+ "mtd",
1717
+ "qtd",
1718
+ "wtd",
1719
+ "pytd",
1720
+ "pmtd",
1721
+ "pqtd",
1722
+ "pwtd",
1723
+ "l12m",
1724
+ "l90d",
1725
+ "l30d",
1726
+ "l7d",
1727
+ "cy",
1728
+ "cq",
1729
+ "cm",
1730
+ "py",
1731
+ "pm",
1732
+ "pq",
1733
+ "pw",
1734
+ "today",
1735
+ "yesterday",
1736
+ "mindate",
1737
+ "maxdate"
1738
+ ]
1739
+ },
1740
+ {
1741
+ "type": "null"
1742
+ }
1743
+ ]
1744
+ }
1745
+ },
1746
+ "required": ["fieldKey", "operator", "values"],
1747
+ "additionalProperties": false
1748
+ },
1749
+ {
1750
+ "$ref": "#/$defs/__schema0"
1751
+ }
1752
+ ]
1753
+ }
1754
+ }
1755
+ },
1756
+ "required": ["operator", "filters"],
1757
+ "additionalProperties": false
1758
+ }
1759
+ }
1760
+ }
1761
+ ```
1762
+
1763
+ ## `toggleDimension`
1764
+
1765
+ Toggle dimension
1766
+
1767
+ Enable or disable a dimension in the chart
1768
+
1769
+ **Payload schema**
1770
+
1771
+ ```json
1772
+ {
1773
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1774
+ "title": "Toggle dimension schema",
1775
+ "type": "object",
1776
+ "properties": {
1777
+ "dataItemInternalKey": {
1778
+ "description": "Internal key of the data item of the dimension to be toggled",
1779
+ "type": "string"
1780
+ },
1781
+ "dataItemUniqueSignature": {
1782
+ "description": "Unique signature of the data item of the dimension to be toggled",
1783
+ "type": "string"
1784
+ },
1785
+ "enabled": {
1786
+ "description": "Whether the dimension should be enabled or disabled",
1787
+ "type": "boolean"
1788
+ }
1789
+ },
1790
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "enabled"],
1791
+ "additionalProperties": false
1792
+ }
1793
+ ```
1794
+
1795
+ ## `toggleDimensionByName`
1796
+
1797
+ Toggle dimension by name
1798
+
1799
+ Enable, disable, or toggle a dimension by its name
1800
+
1801
+ **Payload schema**
1802
+
1803
+ ```json
1804
+ {
1805
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1806
+ "title": "Toggle dimension by name schema",
1807
+ "type": "object",
1808
+ "properties": {
1809
+ "name": {
1810
+ "type": "string"
1811
+ },
1812
+ "operation": {
1813
+ "type": "string",
1814
+ "enum": ["enable", "disable", "toggle"]
1815
+ }
1816
+ },
1817
+ "required": ["name", "operation"],
1818
+ "additionalProperties": false
1819
+ }
1820
+ ```
1821
+
1822
+ ## `updateDimension`
1823
+
1824
+ Update dimension
1825
+
1826
+ Modify properties of an existing dimension
1827
+
1828
+ **Payload schema**
1829
+
1830
+ ```json
1831
+ {
1832
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1833
+ "title": "Update dimension schema",
1834
+ "type": "object",
1835
+ "properties": {
1836
+ "dataItemInternalKey": {
1837
+ "description": "Internal key of the data item of the dimension to be updated",
1838
+ "type": "string"
1839
+ },
1840
+ "dataItemUniqueSignature": {
1841
+ "description": "Unique signature of the data item of the dimension to be updated",
1842
+ "type": "string"
1843
+ },
1844
+ "changes": {
1845
+ "type": "object",
1846
+ "properties": {
1847
+ "customLabel": {
1848
+ "type": "object",
1849
+ "properties": {
1850
+ "enabled": {
1851
+ "type": "boolean"
1852
+ },
1853
+ "value": {
1854
+ "type": "string"
1855
+ }
1856
+ },
1857
+ "required": ["enabled"],
1858
+ "additionalProperties": false
1859
+ },
1860
+ "showNullValues": {
1861
+ "type": "boolean"
1862
+ }
1863
+ },
1864
+ "additionalProperties": false
1865
+ }
1866
+ },
1867
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "changes"],
1868
+ "additionalProperties": false
1869
+ }
1870
+ ```