@astrato-io/visualizations 0.0.0-stage → 0.6.5

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 (139) 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 +8477 -0
  5. package/VISUALIZATION_DEFINITIONS.md +2378 -0
  6. package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
  7. package/chunks/LinearProgress-B1FeWaen.js +253 -0
  8. package/chunks/accessors-DemrDevR.js +128 -0
  9. package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
  10. package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
  11. package/chunks/builder-B6dWSIdD.js +12289 -0
  12. package/chunks/color-settings-ZIvgNTq1.js +10 -0
  13. package/chunks/coloring-B1XAfg6b.js +664 -0
  14. package/chunks/debounce-fn-CUixuz45.js +7 -0
  15. package/chunks/definitions-D3OVqmXl.js +2102 -0
  16. package/chunks/escobar-eDjtGpkC.js +34606 -0
  17. package/chunks/events-WZut5Ow6.js +4 -0
  18. package/chunks/extend-BKUkc4_i.js +37 -0
  19. package/chunks/filter.compiler-DBsyRBJt.js +70 -0
  20. package/chunks/filtering-tqjAyJH5.js +1072 -0
  21. package/chunks/grouping-type-On4s9Thj.js +3 -0
  22. package/chunks/handlers-VTBfIZYZ.js +13072 -0
  23. package/chunks/isEqual-BDxAhUo8.js +7514 -0
  24. package/chunks/line.compiler-CzdM5Ld0.js +198 -0
  25. package/chunks/metadata-BGElBy5Z.js +28 -0
  26. package/chunks/number.compiler-G-R7y16P.js +53 -0
  27. package/chunks/operations-CTNUX6Sy.js +26249 -0
  28. package/chunks/range-CiwTbMig.js +22 -0
  29. package/chunks/registry-CsQQzukD.js +920 -0
  30. package/chunks/requirements-DYjZCFyf.js +6 -0
  31. package/chunks/rolldown-runtime-DleVn1XH.js +28 -0
  32. package/chunks/set-coloring-datafield-B3uIS1Pe.js +8 -0
  33. package/chunks/shared-CBvcC5YV.js +1218 -0
  34. package/chunks/src-BOS6SqkZ.js +67 -0
  35. package/chunks/src-D9XogOrc.js +422 -0
  36. package/chunks/standalone-0M4HlmDW2.js +3944 -0
  37. package/chunks/standalone-0ashe9w1.js +411 -0
  38. package/chunks/standalone-B7jax8wa.js +339 -0
  39. package/chunks/standalone-BK0VYU-l.js +463 -0
  40. package/chunks/standalone-BMIbT1b2.js +4619 -0
  41. package/chunks/standalone-BZV5vOwA.js +6 -0
  42. package/chunks/standalone-BhDrWj4p.js +1980 -0
  43. package/chunks/standalone-BtSHCp2U2.js +673 -0
  44. package/chunks/standalone-BvaKdky9.js +344 -0
  45. package/chunks/standalone-BwtM31-f.js +2 -0
  46. package/chunks/standalone-C3gg736V.js +1129 -0
  47. package/chunks/standalone-CC1VUjO32.js +299 -0
  48. package/chunks/standalone-C_rYnZ0N.js +741 -0
  49. package/chunks/standalone-CoLrAxRV.js +13198 -0
  50. package/chunks/standalone-DC-aUgXC.js +3855 -0
  51. package/chunks/standalone-DCtRoTWg.js +675 -0
  52. package/chunks/standalone-DUDFTBqL.js +833 -0
  53. package/chunks/standalone-DhZkX9Td.js +2 -0
  54. package/chunks/standalone-DtLElfuM.js +512 -0
  55. package/chunks/standalone-G9Q4Uczu.js +726 -0
  56. package/chunks/standalone-JuLF-OoH.js +1762 -0
  57. package/chunks/standalone-_DeX21JJ.js +383 -0
  58. package/chunks/standalone-gFhKZh8m.js +179 -0
  59. package/chunks/standalone-tDNy-SFH.js +281 -0
  60. package/chunks/standalone-v1oxfU20.js +68 -0
  61. package/chunks/standalone-vzBY6q0I2.js +140 -0
  62. package/chunks/stroke-dash-UgMEcCS4.js +6 -0
  63. package/chunks/table.compiler-tb914oj3.js +222 -0
  64. package/chunks/typeof-CJDtcySz.js +13 -0
  65. package/chunks/ui-DQWtv2iM.js +63551 -0
  66. package/chunks/url-utils-B17gj_mr.js +5501 -0
  67. package/chunks/useFieldName-BvdcoJRl.js +7 -0
  68. package/chunks/utils-Bg7K-t6K.js +32379 -0
  69. package/chunks/view-Bn83C8d9.js +12466 -0
  70. package/definitions.js +3 -0
  71. package/docs/operations/astrato-app-filter-bar.md +161 -0
  72. package/docs/operations/bar.md +6968 -0
  73. package/docs/operations/combo.md +5804 -0
  74. package/docs/operations/date-picker.md +644 -0
  75. package/docs/operations/distribution-gauge.md +3082 -0
  76. package/docs/operations/dot.md +5570 -0
  77. package/docs/operations/filter.md +1483 -0
  78. package/docs/operations/gauge.md +3316 -0
  79. package/docs/operations/heatMap.md +5944 -0
  80. package/docs/operations/histogram.md +1856 -0
  81. package/docs/operations/iframe.md +56 -0
  82. package/docs/operations/image.md +177 -0
  83. package/docs/operations/index.md +46 -0
  84. package/docs/operations/line.md +6391 -0
  85. package/docs/operations/number.md +3903 -0
  86. package/docs/operations/pie.md +5956 -0
  87. package/docs/operations/radar.md +4566 -0
  88. package/docs/operations/sankey.md +3088 -0
  89. package/docs/operations/scatter.md +5969 -0
  90. package/docs/operations/shape.md +315 -0
  91. package/docs/operations/simpleTextObject.md +699 -0
  92. package/docs/operations/slider.md +220 -0
  93. package/docs/operations/table.md +8800 -0
  94. package/docs/operations/tree.md +2867 -0
  95. package/docs/operations/treemap.md +3527 -0
  96. package/docs/operations/waterfall.md +2928 -0
  97. package/docs/operations/word-cloud.md +3000 -0
  98. package/getters.js +18 -0
  99. package/index.js +1183 -0
  100. package/metadata.js +20 -0
  101. package/operations.js +64 -0
  102. package/package.json +185 -4
  103. package/src/definitions/index.d.ts +2 -0
  104. package/src/definitions/model/definitions/available-fields.d.ts +35 -0
  105. package/src/definitions/model/definitions/compilers/compile.d.ts +7 -0
  106. package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
  107. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
  108. package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
  109. package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
  110. package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
  111. package/src/definitions/model/definitions/index.d.ts +23 -0
  112. package/src/definitions/model/definitions/registry/compile.d.ts +2 -0
  113. package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
  114. package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
  115. package/src/definitions/model/definitions/schemas/app-filter-bar.schema.d.ts +22 -0
  116. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +73 -0
  117. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +68 -0
  118. package/src/definitions/model/definitions/schemas/common.schema.d.ts +303 -0
  119. package/src/definitions/model/definitions/schemas/filter.schema.d.ts +22 -0
  120. package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
  121. package/src/definitions/model/definitions/schemas/line.schema.d.ts +72 -0
  122. package/src/definitions/model/definitions/schemas/number.schema.d.ts +21 -0
  123. package/src/definitions/model/definitions/schemas/object.schema.d.ts +215 -0
  124. package/src/definitions/model/definitions/schemas/table.schema.d.ts +458 -0
  125. package/src/definitions/model/definitions/types/compilation.types.d.ts +36 -0
  126. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -0
  127. package/src/definitions/model/definitions/types/descriptor.types.d.ts +39 -0
  128. package/src/definitions/model/definitions/types/index.d.ts +3 -0
  129. package/src/definitions/model/definitions/validation.d.ts +3 -0
  130. package/src/getters/index.d.ts +30 -0
  131. package/src/index.d.ts +4 -0
  132. package/src/metadata/index.d.ts +4 -0
  133. package/src/operations/index.d.ts +30 -0
  134. package/src/registry/index.d.ts +6 -0
  135. package/src/runtime/index.d.ts +2 -0
  136. package/src/types.d.ts +307 -0
  137. package/src/visualization-catalog.d.ts +82 -0
  138. package/src/web-components/index.d.ts +12 -0
  139. package/styles.css +2 -0
@@ -0,0 +1,1856 @@
1
+ <!-- Generated from operation manifests. Do not edit this file manually. -->
2
+
3
+ # `histogram` operations
4
+
5
+ Reference for `@astrato-io/visualizations@0.6.5`.
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
+ "type": "object",
73
+ "properties": {
74
+ "key": {
75
+ "type": "string",
76
+ "description": "Engine key of the field to be added as a dimension, eg. \"[Cars].[Horsepower]\""
77
+ }
78
+ },
79
+ "required": ["key"],
80
+ "additionalProperties": false,
81
+ "title": "Add dimension schema"
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
+ "type": "object",
97
+ "properties": {
98
+ "start": {
99
+ "type": "number",
100
+ "description": "Measure axis value where the band starts"
101
+ },
102
+ "end": {
103
+ "type": "number",
104
+ "description": "Measure axis value where the band ends"
105
+ },
106
+ "color": {
107
+ "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
108
+ "type": "string",
109
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
110
+ },
111
+ "label": {
112
+ "description": "Text drawn inside the band",
113
+ "type": "string"
114
+ }
115
+ },
116
+ "required": ["start", "end"],
117
+ "additionalProperties": false,
118
+ "title": "Add measure axis band schema"
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
+ "type": "object",
134
+ "properties": {
135
+ "dataItemInternalKey": {
136
+ "type": "string",
137
+ "description": "Internal key of the data item of the dimension to be duplicated"
138
+ },
139
+ "dataItemUniqueSignature": {
140
+ "type": "string",
141
+ "description": "Unique signature of the data item of the dimension to be duplicated"
142
+ }
143
+ },
144
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
145
+ "additionalProperties": false,
146
+ "title": "Duplicate dimension schema"
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
+ "type": "object",
162
+ "properties": {
163
+ "dataItemInternalKey": {
164
+ "type": "string",
165
+ "description": "Internal key of the data item of the dimension to be removed"
166
+ },
167
+ "dataItemUniqueSignature": {
168
+ "type": "string",
169
+ "description": "Unique signature of the data item of the dimension to be removed"
170
+ }
171
+ },
172
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
173
+ "additionalProperties": false,
174
+ "title": "Remove dimension schema"
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
+ "type": "object",
190
+ "properties": {
191
+ "index": {
192
+ "type": "integer",
193
+ "minimum": 0,
194
+ "maximum": 9007199254740991,
195
+ "description": "Zero-based position of the band to remove"
196
+ }
197
+ },
198
+ "required": ["index"],
199
+ "additionalProperties": false,
200
+ "title": "Remove measure axis band schema"
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
+ "type": "object",
216
+ "properties": {
217
+ "enabled": {
218
+ "type": "boolean",
219
+ "description": "Whether the chart animates when it first renders and when its data changes"
220
+ }
221
+ },
222
+ "required": ["enabled"],
223
+ "additionalProperties": false,
224
+ "title": "Set animation enabled schema"
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
+ "type": "object",
240
+ "properties": {
241
+ "labelColor": {
242
+ "anyOf": [
243
+ {
244
+ "type": "string",
245
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
246
+ },
247
+ {
248
+ "type": "null"
249
+ }
250
+ ]
251
+ },
252
+ "axisName": {
253
+ "type": "string",
254
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
255
+ }
256
+ },
257
+ "required": ["axisName"],
258
+ "additionalProperties": false,
259
+ "title": "Axis label color schema"
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
+ "type": "object",
275
+ "properties": {
276
+ "lineColor": {
277
+ "anyOf": [
278
+ {
279
+ "type": "string",
280
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
281
+ },
282
+ {
283
+ "type": "null"
284
+ }
285
+ ]
286
+ },
287
+ "axisName": {
288
+ "type": "string",
289
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
290
+ }
291
+ },
292
+ "required": ["axisName"],
293
+ "additionalProperties": false,
294
+ "title": "Axis line color schema"
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
+ "type": "object",
310
+ "properties": {
311
+ "axisName": {
312
+ "type": "string",
313
+ "enum": ["primaryMeasure"]
314
+ },
315
+ "maxValue": {
316
+ "type": "number"
317
+ }
318
+ },
319
+ "required": ["axisName", "maxValue"],
320
+ "additionalProperties": false,
321
+ "title": "Axis range max schema"
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
+ "type": "object",
337
+ "properties": {
338
+ "axisName": {
339
+ "type": "string",
340
+ "enum": ["primaryMeasure"]
341
+ },
342
+ "minValue": {
343
+ "type": "number"
344
+ }
345
+ },
346
+ "required": ["axisName", "minValue"],
347
+ "additionalProperties": false,
348
+ "title": "Axis range min schema"
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
+ "type": "object",
364
+ "properties": {
365
+ "axisName": {
366
+ "type": "string",
367
+ "enum": ["primaryMeasure"]
368
+ },
369
+ "axisRangeOption": {
370
+ "type": "string",
371
+ "enum": ["auto", "minmax", "max", "min"]
372
+ }
373
+ },
374
+ "required": ["axisName", "axisRangeOption"],
375
+ "additionalProperties": false,
376
+ "title": "Axis range option schema"
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
+ "type": "object",
392
+ "properties": {
393
+ "axisName": {
394
+ "type": "string",
395
+ "enum": ["primaryMeasure"]
396
+ },
397
+ "startsAtZero": {
398
+ "type": "boolean"
399
+ }
400
+ },
401
+ "required": ["axisName", "startsAtZero"],
402
+ "additionalProperties": false,
403
+ "title": "Axis starts at zero schema"
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
+ "type": "object",
419
+ "properties": {
420
+ "tickColor": {
421
+ "anyOf": [
422
+ {
423
+ "type": "string",
424
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
425
+ },
426
+ {
427
+ "type": "null"
428
+ }
429
+ ]
430
+ },
431
+ "axisName": {
432
+ "type": "string",
433
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
434
+ }
435
+ },
436
+ "required": ["axisName"],
437
+ "additionalProperties": false,
438
+ "title": "Axis tick color schema"
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
+ "type": "object",
454
+ "properties": {
455
+ "axisTitle": {
456
+ "type": "string"
457
+ },
458
+ "axisName": {
459
+ "type": "string",
460
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
461
+ }
462
+ },
463
+ "required": ["axisName"],
464
+ "additionalProperties": false,
465
+ "title": "Axis title schema"
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
+ "type": "object",
481
+ "properties": {
482
+ "titleColor": {
483
+ "anyOf": [
484
+ {
485
+ "type": "string",
486
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
487
+ },
488
+ {
489
+ "type": "null"
490
+ }
491
+ ]
492
+ },
493
+ "axisName": {
494
+ "type": "string",
495
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
496
+ }
497
+ },
498
+ "required": ["axisName"],
499
+ "additionalProperties": false,
500
+ "title": "Axis title color schema"
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
+ "type": "string",
516
+ "enum": ["single", "categorical", "gradient", "perEachMeasure", "perEachDimension"],
517
+ "title": "Coloring type schema"
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
+ "type": "object",
533
+ "properties": {
534
+ "dataItemInternalKey": {
535
+ "type": "string",
536
+ "description": "Internal key of the data item of the dimension to be updated"
537
+ },
538
+ "dataItemUniqueSignature": {
539
+ "type": "string",
540
+ "description": "Unique signature of the data item of the dimension to be updated"
541
+ },
542
+ "formatString": {
543
+ "anyOf": [
544
+ {
545
+ "type": "string"
546
+ },
547
+ {
548
+ "type": "object",
549
+ "properties": {
550
+ "type": {
551
+ "type": "string",
552
+ "const": "variable"
553
+ },
554
+ "variableName": {
555
+ "type": "string"
556
+ }
557
+ },
558
+ "required": ["type", "variableName"],
559
+ "additionalProperties": false
560
+ }
561
+ ]
562
+ }
563
+ },
564
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
565
+ "additionalProperties": false,
566
+ "title": "Dimension format string schema"
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
+ "type": "object",
582
+ "properties": {
583
+ "dataItemInternalKey": {
584
+ "type": "string",
585
+ "description": "Internal key of the data item of the dimension to be updated"
586
+ },
587
+ "dataItemUniqueSignature": {
588
+ "type": "string",
589
+ "description": "Unique signature of the data item of the dimension to be updated"
590
+ },
591
+ "formatType": {
592
+ "anyOf": [
593
+ {
594
+ "type": "string",
595
+ "enum": [
596
+ "custom",
597
+ "inherit",
598
+ "none",
599
+ "defaultNumber",
600
+ "defaultMoney",
601
+ "numberNoDecimal",
602
+ "number1Decimal",
603
+ "number2Decimal",
604
+ "abbreviationAuto",
605
+ "abbreviationNoDecimal",
606
+ "abbreviation1Decimal",
607
+ "abbreviation2Decimal",
608
+ "percentageNoDecimal",
609
+ "percentage1Decimal",
610
+ "percentage2Decimal",
611
+ "money0Decimal",
612
+ "money2Decimal",
613
+ "durationDays",
614
+ "durationHours",
615
+ "durationMinutes",
616
+ "durationSeconds"
617
+ ]
618
+ },
619
+ {
620
+ "type": "string",
621
+ "enum": [
622
+ "defaultDate",
623
+ "defaultDatetime",
624
+ "defaultTime",
625
+ "ddmmyyyy",
626
+ "ddmmyyyy2",
627
+ "ddmmyyyy3",
628
+ "yyyymmdd",
629
+ "mmddyyyy",
630
+ "mmddyyyy2",
631
+ "ddmmmmyyyy",
632
+ "ddmmmyyyy",
633
+ "ddmmmyy",
634
+ "mmmmddyyyy",
635
+ "yyyy",
636
+ "yy",
637
+ "mmmyyyy",
638
+ "yyyymmm",
639
+ "yyyymmmm",
640
+ "mmyyyy",
641
+ "yyyymm",
642
+ "mmmmyyyy",
643
+ "yyyywn",
644
+ "wnyyyy",
645
+ "yywn",
646
+ "yyyyq",
647
+ "qyyyy",
648
+ "yyyymmddhhmmss",
649
+ "yyyymmddhmmss",
650
+ "yyyymmddhhmm",
651
+ "yyyymmddhh",
652
+ "yyyymmddhmm",
653
+ "yyyymmddh",
654
+ "ddmmmyyyyhhmmss",
655
+ "ddmmmyyyyhmmss",
656
+ "ddmmmyyyyhhmm",
657
+ "ddmmmyyyyhmm",
658
+ "ddmmmyyyyh",
659
+ "hhmmss",
660
+ "hhmm",
661
+ "hmm",
662
+ "h",
663
+ "hh",
664
+ "hmmss",
665
+ "month",
666
+ "month2",
667
+ "monthn",
668
+ "month3",
669
+ "quarter",
670
+ "quarter2",
671
+ "week1",
672
+ "week2",
673
+ "week3",
674
+ "day",
675
+ "dayOfWeek",
676
+ "hhn",
677
+ "hn"
678
+ ]
679
+ }
680
+ ]
681
+ }
682
+ },
683
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "formatType"],
684
+ "additionalProperties": false,
685
+ "title": "Dimension format type schema"
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
+ "oneOf": [
701
+ {
702
+ "type": "object",
703
+ "properties": {
704
+ "dataItemInternalKey": {
705
+ "type": "string",
706
+ "description": "Internal key of the data item of the dimension to be updated"
707
+ },
708
+ "dataItemUniqueSignature": {
709
+ "type": "string",
710
+ "description": "Unique signature of the data item of the dimension to be updated"
711
+ },
712
+ "mode": {
713
+ "type": "string",
714
+ "const": "none"
715
+ }
716
+ },
717
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "mode"],
718
+ "additionalProperties": false
719
+ },
720
+ {
721
+ "type": "object",
722
+ "properties": {
723
+ "dataItemInternalKey": {
724
+ "type": "string",
725
+ "description": "Internal key of the data item of the dimension to be updated"
726
+ },
727
+ "dataItemUniqueSignature": {
728
+ "type": "string",
729
+ "description": "Unique signature of the data item of the dimension to be updated"
730
+ },
731
+ "mode": {
732
+ "type": "string",
733
+ "const": "level"
734
+ },
735
+ "dateLevel": {
736
+ "type": "string",
737
+ "enum": [
738
+ "year",
739
+ "year-end",
740
+ "quarter",
741
+ "quarter-end",
742
+ "month",
743
+ "month-end",
744
+ "week",
745
+ "week-end",
746
+ "day",
747
+ "hour",
748
+ "minute",
749
+ "second"
750
+ ]
751
+ }
752
+ },
753
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "mode", "dateLevel"],
754
+ "additionalProperties": false
755
+ },
756
+ {
757
+ "type": "object",
758
+ "properties": {
759
+ "dataItemInternalKey": {
760
+ "type": "string",
761
+ "description": "Internal key of the data item of the dimension to be updated"
762
+ },
763
+ "dataItemUniqueSignature": {
764
+ "type": "string",
765
+ "description": "Unique signature of the data item of the dimension to be updated"
766
+ },
767
+ "mode": {
768
+ "type": "string",
769
+ "const": "part"
770
+ },
771
+ "datePart": {
772
+ "type": "string",
773
+ "enum": [
774
+ "year",
775
+ "month",
776
+ "day",
777
+ "dayofweekiso",
778
+ "dayofyear",
779
+ "weekiso",
780
+ "quarter",
781
+ "yearofweekiso",
782
+ "hour",
783
+ "minute",
784
+ "second"
785
+ ]
786
+ }
787
+ },
788
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "mode", "datePart"],
789
+ "additionalProperties": false
790
+ }
791
+ ],
792
+ "title": "Dimension temporal grouping schema"
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
+ "type": "object",
808
+ "properties": {
809
+ "continuousAxis": {
810
+ "type": "boolean"
811
+ }
812
+ },
813
+ "additionalProperties": false,
814
+ "title": "Enable continuous axis schema"
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
+ "type": "object",
830
+ "properties": {
831
+ "invertAxis": {
832
+ "type": "boolean"
833
+ },
834
+ "axisName": {
835
+ "type": "string",
836
+ "enum": ["dimension", "primaryMeasure"]
837
+ }
838
+ },
839
+ "required": ["invertAxis"],
840
+ "additionalProperties": false,
841
+ "title": "Invert axis schema"
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
+ "type": "object",
857
+ "properties": {
858
+ "labelOverlap": {
859
+ "type": "string",
860
+ "enum": ["auto", "show-last"]
861
+ }
862
+ },
863
+ "additionalProperties": false,
864
+ "title": "Label overlap schema"
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
+ "type": "boolean",
880
+ "description": "Enable legend",
881
+ "title": "Legend enabled schema"
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
+ "anyOf": [
897
+ {
898
+ "type": "string",
899
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
900
+ },
901
+ {
902
+ "type": "null"
903
+ }
904
+ ],
905
+ "description": "Legend item label font color (hexadecimal color code)",
906
+ "title": "Legend item label fill schema"
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
+ "type": "number",
922
+ "title": "Legend item label font size schema"
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
+ "type": ["number", "null"]
957
+ }
958
+ ```
959
+
960
+ ## `setLegendPosition`
961
+
962
+ Legend position
963
+
964
+ Change where the legend appears on the chart
965
+
966
+ **Payload schema**
967
+
968
+ ```json
969
+ {
970
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
971
+ "type": "string",
972
+ "enum": ["left", "right", "top", "bottom"],
973
+ "description": "Legend position",
974
+ "title": "Legend position schema"
975
+ }
976
+ ```
977
+
978
+ ## `setLegendTitle`
979
+
980
+ Legend title
981
+
982
+ Set a custom title for the legend
983
+
984
+ **Payload schema**
985
+
986
+ ```json
987
+ {
988
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
989
+ "description": "Legend title text",
990
+ "title": "Legend title schema",
991
+ "type": ["string", "null"]
992
+ }
993
+ ```
994
+
995
+ ## `setMeasureAxisBands`
996
+
997
+ Measure axis bands
998
+
999
+ Replace all shaded bands on the primary measure axis. Each band fills the plot between two measure values
1000
+
1001
+ **Payload schema**
1002
+
1003
+ ```json
1004
+ {
1005
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1006
+ "type": "object",
1007
+ "properties": {
1008
+ "bands": {
1009
+ "type": "array",
1010
+ "items": {
1011
+ "type": "object",
1012
+ "properties": {
1013
+ "start": {
1014
+ "type": "number",
1015
+ "description": "Measure axis value where the band starts"
1016
+ },
1017
+ "end": {
1018
+ "type": "number",
1019
+ "description": "Measure axis value where the band ends"
1020
+ },
1021
+ "color": {
1022
+ "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
1023
+ "type": "string",
1024
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1025
+ },
1026
+ "label": {
1027
+ "description": "Text drawn inside the band",
1028
+ "type": "string"
1029
+ }
1030
+ },
1031
+ "required": ["start", "end"],
1032
+ "additionalProperties": false
1033
+ },
1034
+ "description": "Bands to draw, in order; an empty array removes all bands"
1035
+ }
1036
+ },
1037
+ "required": ["bands"],
1038
+ "additionalProperties": false,
1039
+ "title": "Set measure axis bands schema"
1040
+ }
1041
+ ```
1042
+
1043
+ ## `setMeasureCurrency`
1044
+
1045
+ Measure currency
1046
+
1047
+ Set the currency symbol used by a measure formatter
1048
+
1049
+ **Payload schema**
1050
+
1051
+ ```json
1052
+ {
1053
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1054
+ "type": "object",
1055
+ "properties": {
1056
+ "dataItemInternalKey": {
1057
+ "type": "string",
1058
+ "description": "Internal key of the data item of the measure to be updated"
1059
+ },
1060
+ "dataItemUniqueSignature": {
1061
+ "type": "string",
1062
+ "description": "Unique signature of the data item of the measure to be updated"
1063
+ },
1064
+ "currency": {
1065
+ "type": "string"
1066
+ }
1067
+ },
1068
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
1069
+ "additionalProperties": false,
1070
+ "title": "Measure currency schema"
1071
+ }
1072
+ ```
1073
+
1074
+ ## `setMeasureCurrencyIsPrefix`
1075
+
1076
+ Measure currency is prefix
1077
+
1078
+ Set whether measure currency symbol is prefixed
1079
+
1080
+ **Payload schema**
1081
+
1082
+ ```json
1083
+ {
1084
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1085
+ "type": "object",
1086
+ "properties": {
1087
+ "dataItemInternalKey": {
1088
+ "type": "string",
1089
+ "description": "Internal key of the data item of the measure to be updated"
1090
+ },
1091
+ "dataItemUniqueSignature": {
1092
+ "type": "string",
1093
+ "description": "Unique signature of the data item of the measure to be updated"
1094
+ },
1095
+ "currencyIsPrefix": {
1096
+ "type": "boolean"
1097
+ }
1098
+ },
1099
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
1100
+ "additionalProperties": false,
1101
+ "title": "Measure currency is prefix schema"
1102
+ }
1103
+ ```
1104
+
1105
+ ## `setMeasureFormatString`
1106
+
1107
+ Measure format string
1108
+
1109
+ Set the custom format string for a measure
1110
+
1111
+ **Payload schema**
1112
+
1113
+ ```json
1114
+ {
1115
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1116
+ "type": "object",
1117
+ "properties": {
1118
+ "dataItemInternalKey": {
1119
+ "type": "string",
1120
+ "description": "Internal key of the data item of the measure to be updated"
1121
+ },
1122
+ "dataItemUniqueSignature": {
1123
+ "type": "string",
1124
+ "description": "Unique signature of the data item of the measure to be updated"
1125
+ },
1126
+ "formatString": {
1127
+ "anyOf": [
1128
+ {
1129
+ "type": "string"
1130
+ },
1131
+ {
1132
+ "type": "object",
1133
+ "properties": {
1134
+ "type": {
1135
+ "type": "string",
1136
+ "const": "variable"
1137
+ },
1138
+ "variableName": {
1139
+ "type": "string"
1140
+ }
1141
+ },
1142
+ "required": ["type", "variableName"],
1143
+ "additionalProperties": false
1144
+ }
1145
+ ]
1146
+ }
1147
+ },
1148
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
1149
+ "additionalProperties": false,
1150
+ "title": "Measure format string schema"
1151
+ }
1152
+ ```
1153
+
1154
+ ## `setMeasureFormatType`
1155
+
1156
+ Measure format type
1157
+
1158
+ Set the format type used by a measure
1159
+
1160
+ **Payload schema**
1161
+
1162
+ ```json
1163
+ {
1164
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1165
+ "type": "object",
1166
+ "properties": {
1167
+ "dataItemInternalKey": {
1168
+ "type": "string",
1169
+ "description": "Internal key of the data item of the measure to be updated"
1170
+ },
1171
+ "dataItemUniqueSignature": {
1172
+ "type": "string",
1173
+ "description": "Unique signature of the data item of the measure to be updated"
1174
+ },
1175
+ "formatType": {
1176
+ "anyOf": [
1177
+ {
1178
+ "type": "string",
1179
+ "enum": [
1180
+ "custom",
1181
+ "inherit",
1182
+ "none",
1183
+ "defaultNumber",
1184
+ "defaultMoney",
1185
+ "numberNoDecimal",
1186
+ "number1Decimal",
1187
+ "number2Decimal",
1188
+ "abbreviationAuto",
1189
+ "abbreviationNoDecimal",
1190
+ "abbreviation1Decimal",
1191
+ "abbreviation2Decimal",
1192
+ "percentageNoDecimal",
1193
+ "percentage1Decimal",
1194
+ "percentage2Decimal",
1195
+ "money0Decimal",
1196
+ "money2Decimal",
1197
+ "durationDays",
1198
+ "durationHours",
1199
+ "durationMinutes",
1200
+ "durationSeconds"
1201
+ ]
1202
+ },
1203
+ {
1204
+ "type": "string",
1205
+ "enum": [
1206
+ "defaultDate",
1207
+ "defaultDatetime",
1208
+ "defaultTime",
1209
+ "ddmmyyyy",
1210
+ "ddmmyyyy2",
1211
+ "ddmmyyyy3",
1212
+ "yyyymmdd",
1213
+ "mmddyyyy",
1214
+ "mmddyyyy2",
1215
+ "ddmmmmyyyy",
1216
+ "ddmmmyyyy",
1217
+ "ddmmmyy",
1218
+ "mmmmddyyyy",
1219
+ "yyyy",
1220
+ "yy",
1221
+ "mmmyyyy",
1222
+ "yyyymmm",
1223
+ "yyyymmmm",
1224
+ "mmyyyy",
1225
+ "yyyymm",
1226
+ "mmmmyyyy",
1227
+ "yyyywn",
1228
+ "wnyyyy",
1229
+ "yywn",
1230
+ "yyyyq",
1231
+ "qyyyy",
1232
+ "yyyymmddhhmmss",
1233
+ "yyyymmddhmmss",
1234
+ "yyyymmddhhmm",
1235
+ "yyyymmddhh",
1236
+ "yyyymmddhmm",
1237
+ "yyyymmddh",
1238
+ "ddmmmyyyyhhmmss",
1239
+ "ddmmmyyyyhmmss",
1240
+ "ddmmmyyyyhhmm",
1241
+ "ddmmmyyyyhmm",
1242
+ "ddmmmyyyyh",
1243
+ "hhmmss",
1244
+ "hhmm",
1245
+ "hmm",
1246
+ "h",
1247
+ "hh",
1248
+ "hmmss",
1249
+ "month",
1250
+ "month2",
1251
+ "monthn",
1252
+ "month3",
1253
+ "quarter",
1254
+ "quarter2",
1255
+ "week1",
1256
+ "week2",
1257
+ "week3",
1258
+ "day",
1259
+ "dayOfWeek",
1260
+ "hhn",
1261
+ "hn"
1262
+ ]
1263
+ }
1264
+ ]
1265
+ }
1266
+ },
1267
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "formatType"],
1268
+ "additionalProperties": false,
1269
+ "title": "Measure format type schema"
1270
+ }
1271
+ ```
1272
+
1273
+ ## `setMeasureNegativeType`
1274
+
1275
+ Measure negative type
1276
+
1277
+ Set how negative values are displayed for a measure formatter
1278
+
1279
+ **Payload schema**
1280
+
1281
+ ```json
1282
+ {
1283
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1284
+ "type": "object",
1285
+ "properties": {
1286
+ "dataItemInternalKey": {
1287
+ "type": "string",
1288
+ "description": "Internal key of the data item of the measure to be updated"
1289
+ },
1290
+ "dataItemUniqueSignature": {
1291
+ "type": "string",
1292
+ "description": "Unique signature of the data item of the measure to be updated"
1293
+ },
1294
+ "negativeType": {
1295
+ "type": "string",
1296
+ "enum": ["symbol", "parenthesis"]
1297
+ }
1298
+ },
1299
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature"],
1300
+ "additionalProperties": false,
1301
+ "title": "Measure negative type schema"
1302
+ }
1303
+ ```
1304
+
1305
+ ## `setOrientation`
1306
+
1307
+ Orientation
1308
+
1309
+ Set the orientation of the histogram chart
1310
+
1311
+ **Payload schema**
1312
+
1313
+ ```json
1314
+ {
1315
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1316
+ "title": "Histogram chart orientation schema",
1317
+ "type": "string",
1318
+ "enum": ["horizontal", "vertical"]
1319
+ }
1320
+ ```
1321
+
1322
+ ## `setShowAxisLabels`
1323
+
1324
+ Show axis labels
1325
+
1326
+ Show or hide value labels on chart axes
1327
+
1328
+ **Payload schema**
1329
+
1330
+ ```json
1331
+ {
1332
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1333
+ "type": "object",
1334
+ "properties": {
1335
+ "showLabels": {
1336
+ "type": "boolean"
1337
+ },
1338
+ "axisName": {
1339
+ "type": "string",
1340
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
1341
+ }
1342
+ },
1343
+ "required": ["axisName"],
1344
+ "additionalProperties": false,
1345
+ "title": "Axis labels schema"
1346
+ }
1347
+ ```
1348
+
1349
+ ## `setShowAxisLine`
1350
+
1351
+ Show axis line
1352
+
1353
+ Show or hide the axis lines on the chart
1354
+
1355
+ **Payload schema**
1356
+
1357
+ ```json
1358
+ {
1359
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1360
+ "type": "object",
1361
+ "properties": {
1362
+ "showAxisLine": {
1363
+ "type": "boolean"
1364
+ },
1365
+ "axisName": {
1366
+ "type": "string",
1367
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
1368
+ }
1369
+ },
1370
+ "required": ["axisName"],
1371
+ "additionalProperties": false,
1372
+ "title": "Axis line schema"
1373
+ }
1374
+ ```
1375
+
1376
+ ## `setShowAxisTicks`
1377
+
1378
+ Show axis ticks
1379
+
1380
+ Show or hide tick marks on chart axes
1381
+
1382
+ **Payload schema**
1383
+
1384
+ ```json
1385
+ {
1386
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1387
+ "type": "object",
1388
+ "properties": {
1389
+ "showAxisTicks": {
1390
+ "type": "boolean"
1391
+ },
1392
+ "axisName": {
1393
+ "type": "string",
1394
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
1395
+ }
1396
+ },
1397
+ "required": ["axisName"],
1398
+ "additionalProperties": false,
1399
+ "title": "Axis ticks schema"
1400
+ }
1401
+ ```
1402
+
1403
+ ## `setShowAxisTitle`
1404
+
1405
+ Show axis title
1406
+
1407
+ Show or hide axis titles on the chart
1408
+
1409
+ **Payload schema**
1410
+
1411
+ ```json
1412
+ {
1413
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1414
+ "type": "object",
1415
+ "properties": {
1416
+ "showAxisName": {
1417
+ "type": "boolean"
1418
+ },
1419
+ "axisName": {
1420
+ "type": "string",
1421
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
1422
+ }
1423
+ },
1424
+ "required": ["axisName"],
1425
+ "additionalProperties": false,
1426
+ "title": "Axis title schema"
1427
+ }
1428
+ ```
1429
+
1430
+ ## `setShowAxisTooltip`
1431
+
1432
+ Show axis tooltip
1433
+
1434
+ Show or hide tooltips when hovering over axis values
1435
+
1436
+ **Payload schema**
1437
+
1438
+ ```json
1439
+ {
1440
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1441
+ "type": "object",
1442
+ "properties": {
1443
+ "showAxisTooltip": {
1444
+ "type": "boolean"
1445
+ },
1446
+ "axisName": {
1447
+ "type": "string",
1448
+ "enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
1449
+ }
1450
+ },
1451
+ "required": ["axisName"],
1452
+ "additionalProperties": false,
1453
+ "title": "Show axis tooltip schema"
1454
+ }
1455
+ ```
1456
+
1457
+ ## `setSortingDirection`
1458
+
1459
+ Sorting direction
1460
+
1461
+ Set sorting direction for all matching sortable items by name
1462
+
1463
+ **Payload schema**
1464
+
1465
+ ```json
1466
+ {
1467
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1468
+ "type": "object",
1469
+ "properties": {
1470
+ "name": {
1471
+ "type": "string",
1472
+ "minLength": 1
1473
+ },
1474
+ "sortDirection": {
1475
+ "type": "string",
1476
+ "enum": ["ascending", "descending"]
1477
+ }
1478
+ },
1479
+ "required": ["name", "sortDirection"],
1480
+ "additionalProperties": false,
1481
+ "title": "Sorting direction by name schema"
1482
+ }
1483
+ ```
1484
+
1485
+ ## `setSortingEnabled`
1486
+
1487
+ Sorting enabled
1488
+
1489
+ Enable or disable sorting for all matching sortable items by name
1490
+
1491
+ **Payload schema**
1492
+
1493
+ ```json
1494
+ {
1495
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1496
+ "type": "object",
1497
+ "properties": {
1498
+ "name": {
1499
+ "type": "string",
1500
+ "minLength": 1
1501
+ },
1502
+ "enabled": {
1503
+ "type": "boolean"
1504
+ }
1505
+ },
1506
+ "required": ["name"],
1507
+ "additionalProperties": false,
1508
+ "title": "Sorting enabled by name schema"
1509
+ }
1510
+ ```
1511
+
1512
+ ## `setStaticFilterGroup`
1513
+
1514
+ Set static filter group
1515
+
1516
+ Replace all static filters with a nested AND/OR filter group.
1517
+
1518
+ **Payload schema**
1519
+
1520
+ ```json
1521
+ {
1522
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1523
+ "description": "Replace all static filters with this nested AND/OR filter group.",
1524
+ "title": "Set static filter group schema",
1525
+ "$ref": "#/$defs/__schema0",
1526
+ "$defs": {
1527
+ "__schema0": {
1528
+ "type": "object",
1529
+ "properties": {
1530
+ "operator": {
1531
+ "type": "string",
1532
+ "enum": ["and", "or"]
1533
+ },
1534
+ "filters": {
1535
+ "type": "array",
1536
+ "items": {
1537
+ "anyOf": [
1538
+ {
1539
+ "type": "object",
1540
+ "properties": {
1541
+ "fieldKey": {
1542
+ "type": "string",
1543
+ "description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
1544
+ },
1545
+ "operator": {
1546
+ "anyOf": [
1547
+ {
1548
+ "type": "string",
1549
+ "enum": [
1550
+ "equals",
1551
+ "doesNotEqual",
1552
+ "greaterThan",
1553
+ "lessThan",
1554
+ "greaterThanOrEqualTo",
1555
+ "lessThanOrEqualTo",
1556
+ "isBetween",
1557
+ "isNotBetween",
1558
+ "isNull",
1559
+ "notNull",
1560
+ "contains",
1561
+ "excludes",
1562
+ "like",
1563
+ "notLike",
1564
+ "startsWith",
1565
+ "endsWith",
1566
+ "predefined_date_range",
1567
+ "previous",
1568
+ "current",
1569
+ "before",
1570
+ "after",
1571
+ "inList",
1572
+ "excludedFromList",
1573
+ "divider"
1574
+ ]
1575
+ },
1576
+ {
1577
+ "type": "string",
1578
+ "enum": [
1579
+ "ytd",
1580
+ "mtd",
1581
+ "qtd",
1582
+ "wtd",
1583
+ "pytd",
1584
+ "pmtd",
1585
+ "pqtd",
1586
+ "pwtd",
1587
+ "l12m",
1588
+ "l90d",
1589
+ "l30d",
1590
+ "l7d",
1591
+ "cy",
1592
+ "cq",
1593
+ "cm",
1594
+ "py",
1595
+ "pm",
1596
+ "pq",
1597
+ "pw",
1598
+ "today",
1599
+ "yesterday",
1600
+ "mindate",
1601
+ "maxdate"
1602
+ ]
1603
+ }
1604
+ ]
1605
+ },
1606
+ "values": {
1607
+ "type": "object",
1608
+ "properties": {
1609
+ "value": {
1610
+ "anyOf": [
1611
+ {
1612
+ "type": "string"
1613
+ },
1614
+ {
1615
+ "type": "object",
1616
+ "properties": {
1617
+ "type": {
1618
+ "type": "string",
1619
+ "const": "variable"
1620
+ },
1621
+ "variableName": {
1622
+ "type": "string"
1623
+ }
1624
+ },
1625
+ "required": ["type", "variableName"],
1626
+ "additionalProperties": false
1627
+ }
1628
+ ]
1629
+ },
1630
+ "valueFrom": {
1631
+ "anyOf": [
1632
+ {
1633
+ "type": "string"
1634
+ },
1635
+ {
1636
+ "type": "object",
1637
+ "properties": {
1638
+ "type": {
1639
+ "type": "string",
1640
+ "const": "variable"
1641
+ },
1642
+ "variableName": {
1643
+ "type": "string"
1644
+ }
1645
+ },
1646
+ "required": ["type", "variableName"],
1647
+ "additionalProperties": false
1648
+ }
1649
+ ]
1650
+ },
1651
+ "valueTo": {
1652
+ "anyOf": [
1653
+ {
1654
+ "type": "string"
1655
+ },
1656
+ {
1657
+ "type": "object",
1658
+ "properties": {
1659
+ "type": {
1660
+ "type": "string",
1661
+ "const": "variable"
1662
+ },
1663
+ "variableName": {
1664
+ "type": "string"
1665
+ }
1666
+ },
1667
+ "required": ["type", "variableName"],
1668
+ "additionalProperties": false
1669
+ }
1670
+ ]
1671
+ },
1672
+ "secondValue": {
1673
+ "anyOf": [
1674
+ {
1675
+ "type": "string"
1676
+ },
1677
+ {
1678
+ "type": "object",
1679
+ "properties": {
1680
+ "type": {
1681
+ "type": "string",
1682
+ "const": "variable"
1683
+ },
1684
+ "variableName": {
1685
+ "type": "string"
1686
+ }
1687
+ },
1688
+ "required": ["type", "variableName"],
1689
+ "additionalProperties": false
1690
+ }
1691
+ ]
1692
+ }
1693
+ },
1694
+ "additionalProperties": false
1695
+ },
1696
+ "dateFilter": {
1697
+ "anyOf": [
1698
+ {
1699
+ "type": "string",
1700
+ "enum": [
1701
+ "ytd",
1702
+ "mtd",
1703
+ "qtd",
1704
+ "wtd",
1705
+ "pytd",
1706
+ "pmtd",
1707
+ "pqtd",
1708
+ "pwtd",
1709
+ "l12m",
1710
+ "l90d",
1711
+ "l30d",
1712
+ "l7d",
1713
+ "cy",
1714
+ "cq",
1715
+ "cm",
1716
+ "py",
1717
+ "pm",
1718
+ "pq",
1719
+ "pw",
1720
+ "today",
1721
+ "yesterday",
1722
+ "mindate",
1723
+ "maxdate"
1724
+ ]
1725
+ },
1726
+ {
1727
+ "type": "null"
1728
+ }
1729
+ ]
1730
+ }
1731
+ },
1732
+ "required": ["fieldKey", "operator", "values"],
1733
+ "additionalProperties": false
1734
+ },
1735
+ {
1736
+ "$ref": "#/$defs/__schema0"
1737
+ }
1738
+ ]
1739
+ }
1740
+ }
1741
+ },
1742
+ "required": ["operator", "filters"],
1743
+ "additionalProperties": false
1744
+ }
1745
+ }
1746
+ }
1747
+ ```
1748
+
1749
+ ## `toggleDimension`
1750
+
1751
+ Toggle dimension
1752
+
1753
+ Enable or disable a dimension in the chart
1754
+
1755
+ **Payload schema**
1756
+
1757
+ ```json
1758
+ {
1759
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1760
+ "type": "object",
1761
+ "properties": {
1762
+ "dataItemInternalKey": {
1763
+ "type": "string",
1764
+ "description": "Internal key of the data item of the dimension to be toggled"
1765
+ },
1766
+ "dataItemUniqueSignature": {
1767
+ "type": "string",
1768
+ "description": "Unique signature of the data item of the dimension to be toggled"
1769
+ },
1770
+ "enabled": {
1771
+ "type": "boolean",
1772
+ "description": "Whether the dimension should be enabled or disabled"
1773
+ }
1774
+ },
1775
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "enabled"],
1776
+ "additionalProperties": false,
1777
+ "title": "Toggle dimension schema"
1778
+ }
1779
+ ```
1780
+
1781
+ ## `toggleDimensionByName`
1782
+
1783
+ Toggle dimension by name
1784
+
1785
+ Enable, disable, or toggle a dimension by its name
1786
+
1787
+ **Payload schema**
1788
+
1789
+ ```json
1790
+ {
1791
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1792
+ "type": "object",
1793
+ "properties": {
1794
+ "name": {
1795
+ "type": "string"
1796
+ },
1797
+ "operation": {
1798
+ "type": "string",
1799
+ "enum": ["enable", "disable", "toggle"]
1800
+ }
1801
+ },
1802
+ "required": ["name", "operation"],
1803
+ "additionalProperties": false,
1804
+ "title": "Toggle dimension by name schema"
1805
+ }
1806
+ ```
1807
+
1808
+ ## `updateDimension`
1809
+
1810
+ Update dimension
1811
+
1812
+ Modify properties of an existing dimension
1813
+
1814
+ **Payload schema**
1815
+
1816
+ ```json
1817
+ {
1818
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1819
+ "type": "object",
1820
+ "properties": {
1821
+ "dataItemInternalKey": {
1822
+ "type": "string",
1823
+ "description": "Internal key of the data item of the dimension to be updated"
1824
+ },
1825
+ "dataItemUniqueSignature": {
1826
+ "type": "string",
1827
+ "description": "Unique signature of the data item of the dimension to be updated"
1828
+ },
1829
+ "changes": {
1830
+ "type": "object",
1831
+ "properties": {
1832
+ "customLabel": {
1833
+ "type": "object",
1834
+ "properties": {
1835
+ "enabled": {
1836
+ "type": "boolean"
1837
+ },
1838
+ "value": {
1839
+ "type": "string"
1840
+ }
1841
+ },
1842
+ "required": ["enabled"],
1843
+ "additionalProperties": false
1844
+ },
1845
+ "showNullValues": {
1846
+ "type": "boolean"
1847
+ }
1848
+ },
1849
+ "additionalProperties": false
1850
+ }
1851
+ },
1852
+ "required": ["dataItemInternalKey", "dataItemUniqueSignature", "changes"],
1853
+ "additionalProperties": false,
1854
+ "title": "Update dimension schema"
1855
+ }
1856
+ ```