@astrato-io/visualizations 0.9.0 → 0.10.1

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 (144) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +7 -3
  3. package/THIRD_PARTY_NOTICES.md +163 -14
  4. package/VISUALIZATION_DEFINITIONS.md +376 -36
  5. package/chunks/{Button-5CxPEACP.js → Button-Dn3rJrYf.js} +4 -4
  6. package/chunks/{CircularProgress-DFS-LQb7.js → CircularProgress-BFeu06Yb.js} +39 -39
  7. package/chunks/FieldTypeIcon-DrMoGpHJ.js +22 -0
  8. package/chunks/{LinearProgress-CjIQfkNA.js → LinearProgress-ClO6GUjN.js} +9 -9
  9. package/chunks/{MenuOption-Cb7B7x6z.js → MenuOption-Czc34u4q.js} +143 -142
  10. package/chunks/{Title-CtFw1bVg.js → Title-BgYnaVTR.js} +22 -22
  11. package/chunks/_createAggregator-BMu9uRax.js +50 -0
  12. package/chunks/{app-filter-bar.compiler-B9775gLJ.js → app-filter-bar.compiler-CVir0wkl.js} +10 -10
  13. package/chunks/bar-layout-C_UgRlVl.js +9 -0
  14. package/chunks/{bar.compiler-B7wlH_Ro.js → bar.compiler-DYuFdi9J.js} +100 -82
  15. package/chunks/{builder-Dxo7D7c6.js → builder-C-TKA-My.js} +70 -37
  16. package/chunks/color-rules-DYJL4fIW.js +15 -0
  17. package/chunks/color-settings-DJFoFTip.js +5 -0
  18. package/chunks/{coloring-B-Wa8D5P.js → coloring-BtnPiQ_o.js} +37 -37
  19. package/chunks/createSimplePaletteValueFilter--zrZxRV9.js +2005 -0
  20. package/chunks/defaults-Dtk7fg3C.js +3 -0
  21. package/chunks/{definitions-DNpzD9tY.js → definitions-CT304NDn.js} +655 -417
  22. package/chunks/{escobar-C4Nm3eJ7.js → escobar-CvEV2ES1.js} +7441 -7127
  23. package/chunks/{extend-preset-BVKFtoe-.js → extend-preset-D9-JP92b.js} +998 -933
  24. package/chunks/{filter.compiler-BlS3zoy_.js → filter.compiler-CXeZznks.js} +7 -7
  25. package/chunks/{filtering-CGuLpg7u.js → filtering-8_bFv-jb.js} +333 -377
  26. package/chunks/handlers-C6CZ0XJA.js +15399 -0
  27. package/chunks/{icon-picker-styles-DYQgVEKG.js → icon-picker-styles-BXiJ1SZS.js} +11 -11
  28. package/chunks/isEqual-D8Ay63xR.js +16 -0
  29. package/chunks/{isFocusVisible-B1_z03UT.js → isFocusVisible-Bu8gGZu5.js} +1 -1
  30. package/chunks/label-format-type-C46pzgx7.js +17 -0
  31. package/chunks/{line.compiler-Bo9i9qag.js → line.compiler-DmHpmQCC.js} +9 -9
  32. package/chunks/{logger-3lng-wOw.js → logger-DdZpR7xZ.js} +79 -72
  33. package/chunks/map.compiler-Q_Y1Pvat.js +343 -0
  34. package/chunks/{metadata-Fmx1swpK.js → metadata-BQm_TXI1.js} +1 -1
  35. package/chunks/{number.compiler-CdLd5aGW.js → number.compiler-DQdg6zTy.js} +7 -7
  36. package/chunks/operations-DKQWuLL7.js +31315 -0
  37. package/chunks/{range-CzO4isKK.js → range-BdhzvYQ_.js} +2 -2
  38. package/chunks/{react-dom-BwZT0N3F.js → react-dom-BGP4tbXV.js} +70 -70
  39. package/chunks/{render-wrappers-CAuvgMxi.js → render-wrappers-BZpyDnJy.js} +1 -1
  40. package/chunks/{requirements-CYpVh65U.js → requirements-e8Fe96ag.js} +60 -58
  41. package/chunks/shared-C_2F90xq.js +1337 -0
  42. package/chunks/standalone-4MsKiqs0.js +355 -0
  43. package/chunks/standalone-B794g9pE.js +1012 -0
  44. package/chunks/{standalone-C6XDHYAM.js → standalone-B8ZSqauS.js} +110 -110
  45. package/chunks/{standalone-5DnapeHH.js → standalone-BA2YXyJS.js} +126 -124
  46. package/chunks/{standalone-CXniic5x.js → standalone-BDrXVxlP.js} +6 -5
  47. package/chunks/{standalone-B6s_xG2u.js → standalone-BE_ONgiG.js} +116 -116
  48. package/chunks/{standalone-CPUiiWNP.js → standalone-BTY3w_JA.js} +37 -37
  49. package/chunks/standalone-BgumbdaJ2.js +357 -0
  50. package/chunks/{standalone-DWPfdP0A.js → standalone-BkbiH-o8.js} +482 -482
  51. package/chunks/standalone-Blh4qejk.js +689 -0
  52. package/chunks/standalone-CXY4FpF7.js +773 -0
  53. package/chunks/{standalone-BvWdpUL3.js → standalone-CY_kjarf.js} +34 -31
  54. package/chunks/{standalone-DuwTOBXH.js → standalone-CaTxAydz.js} +587 -587
  55. package/chunks/{standalone-BDrQMxLi.js → standalone-Cc98Pdr6.js} +1799 -1015
  56. package/chunks/{standalone-DMCwtebn.js → standalone-Cl0TSfqC.js} +125 -125
  57. package/chunks/{standalone-CoQxJ6ov.js → standalone-CsoMmE9T.js} +778 -778
  58. package/chunks/standalone-DH0xTEes.js +2 -0
  59. package/chunks/{standalone-LFVgLhia.js → standalone-DHRalbVO.js} +311 -303
  60. package/chunks/standalone-DNh9NcMa.js +580 -0
  61. package/chunks/standalone-DcnHjNnC.js +2 -0
  62. package/chunks/{standalone-r4ObFvys.js → standalone-DflyWtuR.js} +217 -215
  63. package/chunks/standalone-DrHdGkY7.js +762 -0
  64. package/chunks/standalone-c_rROMtx.js +287 -0
  65. package/chunks/standalone-drcFLeN6.js +6 -0
  66. package/chunks/{standalone-CNkHsynO.js → standalone-wOWRCpdn.js} +54 -56
  67. package/chunks/{standalone-Cu73fzSr.js → standalone-z0o52o5t.js} +5128 -4908
  68. package/chunks/{table.compiler-C1qjqXaT.js → table.compiler-COaHE9VD.js} +18 -18
  69. package/chunks/{useFieldName-mWrD_uk_.js → useFieldName-CdnCWzhd.js} +1 -1
  70. package/chunks/{utils-DYYD4Zzf.js → utils-DganVptf.js} +4758 -4747
  71. package/chunks/{view-7fH6mGmY.js → view-Bzlros43.js} +2021 -1665
  72. package/chunks/{visualization-filters-mVnsnvLP.js → visualization-filters-D7i6oh1Z.js} +3177 -2425
  73. package/chunks/{with-html-element-B0Clt4jY.js → with-html-element-CiIhFEa5.js} +3740 -3547
  74. package/definitions.js +2 -2
  75. package/docs/operations/astrato-app-filter-bar.md +1 -1
  76. package/docs/operations/bar.md +303 -2
  77. package/docs/operations/combo.md +262 -1
  78. package/docs/operations/date-picker.md +1 -1
  79. package/docs/operations/distribution-gauge.md +1 -1
  80. package/docs/operations/dot.md +148 -1
  81. package/docs/operations/filter.md +1 -1
  82. package/docs/operations/gauge.md +1 -1
  83. package/docs/operations/heatMap.md +1 -1
  84. package/docs/operations/histogram.md +262 -1
  85. package/docs/operations/iframe.md +1 -1
  86. package/docs/operations/image.md +1 -1
  87. package/docs/operations/index.md +7 -7
  88. package/docs/operations/line.md +280 -1
  89. package/docs/operations/number.md +1 -1
  90. package/docs/operations/pie.md +1 -1
  91. package/docs/operations/radar.md +1 -1
  92. package/docs/operations/sankey.md +1 -1
  93. package/docs/operations/scatter.md +148 -1
  94. package/docs/operations/shape.md +1 -1
  95. package/docs/operations/simpleTextObject.md +1 -1
  96. package/docs/operations/slider.md +1 -1
  97. package/docs/operations/table.md +374 -157
  98. package/docs/operations/tree.md +1 -1
  99. package/docs/operations/treemap.md +1 -1
  100. package/docs/operations/waterfall.md +1 -1
  101. package/docs/operations/word-cloud.md +1 -1
  102. package/getters.js +2 -2
  103. package/index.js +482 -434
  104. package/metadata.js +2 -2
  105. package/operations.js +5 -5
  106. package/package.json +72 -67
  107. package/src/definitions/index.d.ts +7 -1
  108. package/src/definitions/model/definitions/available-fields.d.ts +2 -2
  109. package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
  110. package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +219 -7
  112. package/src/definitions/model/definitions/index.d.ts +2 -1
  113. package/src/definitions/model/definitions/schema-registry.d.ts +305 -0
  114. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -0
  115. package/src/definitions/model/definitions/schemas/common.schema.d.ts +4 -3
  116. package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
  117. package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
  118. package/src/definitions/model/definitions/types/compilation.types.d.ts +9 -1
  119. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
  120. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  121. package/src/index.d.ts +1 -1
  122. package/src/operations/index.d.ts +1 -1
  123. package/src/types.d.ts +17 -13
  124. package/chunks/FieldTypeIcon-pSVQFemC.js +0 -22
  125. package/chunks/ToggleButton-Br9HCPCv.js +0 -150
  126. package/chunks/color-rules-CN7TcGrC.js +0 -6
  127. package/chunks/color-settings-3VRlf_Vw.js +0 -6
  128. package/chunks/handlers-CMbyj5y1.js +0 -12930
  129. package/chunks/isEqual-DBg_b35N.js +0 -12
  130. package/chunks/label-format-type-weq1XfcX.js +0 -8
  131. package/chunks/operations-HSqnCRvv.js +0 -26324
  132. package/chunks/shared-DFoJxjVN.js +0 -1218
  133. package/chunks/standalone-530a5lvf.js +0 -1003
  134. package/chunks/standalone-B4jrf4KE.js +0 -354
  135. package/chunks/standalone-BMoJXGYe.js +0 -2
  136. package/chunks/standalone-BfvGggeM2.js +0 -355
  137. package/chunks/standalone-CMJJIi9v.js +0 -2
  138. package/chunks/standalone-C_Jd4gkj.js +0 -6
  139. package/chunks/standalone-CiaaibTa.js +0 -518
  140. package/chunks/standalone-DBeXQrwH.js +0 -468
  141. package/chunks/standalone-DpSRmAWx.js +0 -287
  142. package/chunks/standalone-kzAhwH19.js +0 -689
  143. package/chunks/standalone-mb7LwEiq.js +0 -3874
  144. /package/chunks/{src-BOS6SqkZ2.js → src-BOS6SqkZ.js} +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `line` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.9.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -12,11 +12,13 @@ Use each schema below for the request’s `payload`, not for the whole operation
12
12
 
13
13
  - [`addColoringOverwrite`](#addcoloringoverwrite)
14
14
  - [`addDimension`](#adddimension)
15
+ - [`addDimensionAxisBand`](#adddimensionaxisband)
15
16
  - [`addMeasure`](#addmeasure)
16
17
  - [`addMeasureAdvancedAdditionalDimensionDataField`](#addmeasureadvancedadditionaldimensiondatafield)
17
18
  - [`addMeasureAdvancedDimensionDataField`](#addmeasureadvanceddimensiondatafield)
18
19
  - [`addMeasureAxisBand`](#addmeasureaxisband)
19
20
  - [`addMeasureFilter`](#addmeasurefilter)
21
+ - [`addReferenceLine`](#addreferenceline)
20
22
  - [`addResultFilter`](#addresultfilter)
21
23
  - [`changeMeasureAggregation`](#changemeasureaggregation)
22
24
  - [`changeMeasureAxis`](#changemeasureaxis)
@@ -31,12 +33,14 @@ Use each schema below for the request’s `payload`, not for the whole operation
31
33
  - [`enableTopN`](#enabletopn)
32
34
  - [`removeColoringOverwrite`](#removecoloringoverwrite)
33
35
  - [`removeDimension`](#removedimension)
36
+ - [`removeDimensionAxisBand`](#removedimensionaxisband)
34
37
  - [`removeMeasure`](#removemeasure)
35
38
  - [`removeMeasureAdvancedAdditionalDimensionDataField`](#removemeasureadvancedadditionaldimensiondatafield)
36
39
  - [`removeMeasureAdvancedCompareMeasure`](#removemeasureadvancedcomparemeasure)
37
40
  - [`removeMeasureAdvancedDimensionDataField`](#removemeasureadvanceddimensiondatafield)
38
41
  - [`removeMeasureAxisBand`](#removemeasureaxisband)
39
42
  - [`removeMeasureGraphColor`](#removemeasuregraphcolor)
43
+ - [`removeReferenceLine`](#removereferenceline)
40
44
  - [`resetChartPaletteToThemeDefault`](#resetchartpalettetothemedefault)
41
45
  - [`setAnimationEnabled`](#setanimationenabled)
42
46
  - [`setAxisLabelColor`](#setaxislabelcolor)
@@ -58,6 +62,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
58
62
  - [`setCustomNullValue`](#setcustomnullvalue)
59
63
  - [`setCustomPaletteColors`](#setcustompalettecolors)
60
64
  - [`setDataGapsHandling`](#setdatagapshandling)
65
+ - [`setDimensionAxisBands`](#setdimensionaxisbands)
61
66
  - [`setDimensionFormatString`](#setdimensionformatstring)
62
67
  - [`setDimensionFormatType`](#setdimensionformattype)
63
68
  - [`setDimensionTemporalGrouping`](#setdimensiontemporalgrouping)
@@ -132,6 +137,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
132
137
  - [`setQueryLimit`](#setquerylimit)
133
138
  - [`setQueryTimeout`](#setquerytimeout)
134
139
  - [`setResultFilter`](#setresultfilter)
140
+ - [`setSelectOnClick`](#setselectonclick)
135
141
  - [`setShowAxisLabels`](#setshowaxislabels)
136
142
  - [`setShowAxisLine`](#setshowaxisline)
137
143
  - [`setShowAxisTicks`](#setshowaxisticks)
@@ -154,6 +160,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
154
160
  - [`toggleSortingItem`](#togglesortingitem)
155
161
  - [`updateDimension`](#updatedimension)
156
162
  - [`updateMeasure`](#updatemeasure)
163
+ - [`updateReferenceLine`](#updatereferenceline)
157
164
 
158
165
  ## `addColoringOverwrite`
159
166
 
@@ -320,6 +327,43 @@ Add a new dimension to the chart
320
327
  }
321
328
  ```
322
329
 
330
+ ## `addDimensionAxisBand`
331
+
332
+ Add dimension axis band
333
+
334
+ Add a shaded band on the dimension axis between two raw dimension values (inclusive for categories)
335
+
336
+ **Payload schema**
337
+
338
+ ```json
339
+ {
340
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
341
+ "type": "object",
342
+ "properties": {
343
+ "start": {
344
+ "description": "Raw dimension value: number for numeric/bin axes, ISO 8601 date or date-time with an uppercase T and Z (for example 2026-10-01 or 2026-10-01T12:30:00Z) or epoch milliseconds for dates, exact number/string/boolean for categories. Dates without an offset use UTC. Discrete endpoints must exist in the current data. Band start, inclusive for categories",
345
+ "type": ["number", "string", "boolean"]
346
+ },
347
+ "end": {
348
+ "description": "Raw dimension value: number for numeric/bin axes, ISO 8601 date or date-time with an uppercase T and Z (for example 2026-10-01 or 2026-10-01T12:30:00Z) or epoch milliseconds for dates, exact number/string/boolean for categories. Dates without an offset use UTC. Discrete endpoints must exist in the current data. Band end, inclusive for categories",
349
+ "type": ["number", "string", "boolean"]
350
+ },
351
+ "color": {
352
+ "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
353
+ "type": "string",
354
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
355
+ },
356
+ "label": {
357
+ "description": "Text drawn inside the band",
358
+ "type": "string"
359
+ }
360
+ },
361
+ "required": ["start", "end"],
362
+ "additionalProperties": false,
363
+ "title": "Add dimension axis band schema"
364
+ }
365
+ ```
366
+
323
367
  ## `addMeasure`
324
368
 
325
369
  Add measure
@@ -695,6 +739,57 @@ Add another measure filter before aggregation. Keeps existing filters.
695
739
  }
696
740
  ```
697
741
 
742
+ ## `addReferenceLine`
743
+
744
+ Add reference line
745
+
746
+ Add a reference line at a value on the x or y axis, with an optional label, color and width
747
+
748
+ **Payload schema**
749
+
750
+ ```json
751
+ {
752
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
753
+ "type": "object",
754
+ "properties": {
755
+ "axis": {
756
+ "type": "string",
757
+ "enum": ["x", "y"],
758
+ "description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
759
+ },
760
+ "value": {
761
+ "description": "Axis value to draw the line at: a number on a measure axis, the category name on a category axis, and a number of epoch milliseconds on a date axis (a date string is accepted but draws nothing)",
762
+ "type": ["string", "number"]
763
+ },
764
+ "label": {
765
+ "description": "Text drawn next to the line",
766
+ "type": "string"
767
+ },
768
+ "color": {
769
+ "description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
770
+ "anyOf": [
771
+ {
772
+ "type": "string",
773
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
774
+ },
775
+ {
776
+ "type": "null"
777
+ }
778
+ ]
779
+ },
780
+ "strokeWidth": {
781
+ "description": "Line width in pixels, 0 to 50",
782
+ "type": "number",
783
+ "minimum": 0,
784
+ "maximum": 50
785
+ }
786
+ },
787
+ "required": ["axis", "value"],
788
+ "additionalProperties": false,
789
+ "title": "Add reference line schema"
790
+ }
791
+ ```
792
+
698
793
  ## `addResultFilter`
699
794
 
700
795
  Add result filter
@@ -1202,6 +1297,32 @@ Remove a dimension from the chart
1202
1297
  }
1203
1298
  ```
1204
1299
 
1300
+ ## `removeDimensionAxisBand`
1301
+
1302
+ Remove dimension axis band
1303
+
1304
+ Remove one shaded band from the dimension axis by its position
1305
+
1306
+ **Payload schema**
1307
+
1308
+ ```json
1309
+ {
1310
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1311
+ "type": "object",
1312
+ "properties": {
1313
+ "index": {
1314
+ "type": "integer",
1315
+ "minimum": 0,
1316
+ "maximum": 9007199254740991,
1317
+ "description": "Zero-based position of the band to remove"
1318
+ }
1319
+ },
1320
+ "required": ["index"],
1321
+ "additionalProperties": false,
1322
+ "title": "Remove dimension axis band schema"
1323
+ }
1324
+ ```
1325
+
1205
1326
  ## `removeMeasure`
1206
1327
 
1207
1328
  Remove measure
@@ -1406,6 +1527,37 @@ Remove a measure color override
1406
1527
  }
1407
1528
  ```
1408
1529
 
1530
+ ## `removeReferenceLine`
1531
+
1532
+ Remove reference line
1533
+
1534
+ Remove one reference line by its axis and position
1535
+
1536
+ **Payload schema**
1537
+
1538
+ ```json
1539
+ {
1540
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1541
+ "type": "object",
1542
+ "properties": {
1543
+ "axis": {
1544
+ "type": "string",
1545
+ "enum": ["x", "y"],
1546
+ "description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
1547
+ },
1548
+ "index": {
1549
+ "type": "integer",
1550
+ "minimum": 0,
1551
+ "maximum": 9007199254740991,
1552
+ "description": "Zero-based position of the line within its axis"
1553
+ }
1554
+ },
1555
+ "required": ["axis", "index"],
1556
+ "additionalProperties": false,
1557
+ "title": "Remove reference line schema"
1558
+ }
1559
+ ```
1560
+
1409
1561
  ## `resetChartPaletteToThemeDefault`
1410
1562
 
1411
1563
  Reset chart palette
@@ -2086,6 +2238,54 @@ Control how data gaps are handled
2086
2238
  }
2087
2239
  ```
2088
2240
 
2241
+ ## `setDimensionAxisBands`
2242
+
2243
+ Dimension axis bands
2244
+
2245
+ Replace all shaded bands on the dimension axis. Each band fills the plot between two raw dimension values (inclusive for categories)
2246
+
2247
+ **Payload schema**
2248
+
2249
+ ```json
2250
+ {
2251
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2252
+ "type": "object",
2253
+ "properties": {
2254
+ "bands": {
2255
+ "type": "array",
2256
+ "items": {
2257
+ "type": "object",
2258
+ "properties": {
2259
+ "start": {
2260
+ "description": "Raw dimension value: number for numeric/bin axes, ISO 8601 date or date-time with an uppercase T and Z (for example 2026-10-01 or 2026-10-01T12:30:00Z) or epoch milliseconds for dates, exact number/string/boolean for categories. Dates without an offset use UTC. Discrete endpoints must exist in the current data. Band start, inclusive for categories",
2261
+ "type": ["number", "string", "boolean"]
2262
+ },
2263
+ "end": {
2264
+ "description": "Raw dimension value: number for numeric/bin axes, ISO 8601 date or date-time with an uppercase T and Z (for example 2026-10-01 or 2026-10-01T12:30:00Z) or epoch milliseconds for dates, exact number/string/boolean for categories. Dates without an offset use UTC. Discrete endpoints must exist in the current data. Band end, inclusive for categories",
2265
+ "type": ["number", "string", "boolean"]
2266
+ },
2267
+ "color": {
2268
+ "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
2269
+ "type": "string",
2270
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2271
+ },
2272
+ "label": {
2273
+ "description": "Text drawn inside the band",
2274
+ "type": "string"
2275
+ }
2276
+ },
2277
+ "required": ["start", "end"],
2278
+ "additionalProperties": false
2279
+ },
2280
+ "description": "Bands to draw, in order; an empty array removes all bands"
2281
+ }
2282
+ },
2283
+ "required": ["bands"],
2284
+ "additionalProperties": false,
2285
+ "title": "Set dimension axis bands schema"
2286
+ }
2287
+ ```
2288
+
2089
2289
  ## `setDimensionFormatString`
2090
2290
 
2091
2291
  Dimension format string
@@ -5559,6 +5759,23 @@ Set one result filter after aggregation. Adds if none, replaces if one, fails if
5559
5759
  }
5560
5760
  ```
5561
5761
 
5762
+ ## `setSelectOnClick`
5763
+
5764
+ Select on click
5765
+
5766
+ Let a click on a point, the line or an axis label select that axis value, as a bar does. Off by default
5767
+
5768
+ **Payload schema**
5769
+
5770
+ ```json
5771
+ {
5772
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5773
+ "description": "Select the axis value when a point, the line or an axis label is clicked",
5774
+ "title": "Line chart select on click schema",
5775
+ "type": "boolean"
5776
+ }
5777
+ ```
5778
+
5562
5779
  ## `setShowAxisLabels`
5563
5780
 
5564
5781
  Show axis labels
@@ -6389,3 +6606,65 @@ Modify properties of an existing measure
6389
6606
  "title": "Update measure schema"
6390
6607
  }
6391
6608
  ```
6609
+
6610
+ ## `updateReferenceLine`
6611
+
6612
+ Update reference line
6613
+
6614
+ Change the value, label, color or width of a reference line, or move it to the other axis. Omitted fields keep their value
6615
+
6616
+ **Payload schema**
6617
+
6618
+ ```json
6619
+ {
6620
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
6621
+ "type": "object",
6622
+ "properties": {
6623
+ "axis": {
6624
+ "type": "string",
6625
+ "enum": ["x", "y"],
6626
+ "description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
6627
+ },
6628
+ "index": {
6629
+ "type": "integer",
6630
+ "minimum": 0,
6631
+ "maximum": 9007199254740991,
6632
+ "description": "Zero-based position of the line within its axis, as getReferenceLines lists"
6633
+ },
6634
+ "value": {
6635
+ "description": "Axis value to draw the line at: a number on a measure axis, the category name on a category axis, and a number of epoch milliseconds on a date axis (a date string is accepted but draws nothing)",
6636
+ "type": ["string", "number"]
6637
+ },
6638
+ "newAxis": {
6639
+ "description": "Move the line to this axis; it is appended after the existing lines",
6640
+ "type": "string",
6641
+ "enum": ["x", "y"]
6642
+ },
6643
+ "label": {
6644
+ "description": "Text drawn next to the line",
6645
+ "type": "string"
6646
+ },
6647
+ "color": {
6648
+ "description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
6649
+ "anyOf": [
6650
+ {
6651
+ "type": "string",
6652
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
6653
+ },
6654
+ {
6655
+ "type": "null"
6656
+ }
6657
+ ]
6658
+ },
6659
+ "strokeWidth": {
6660
+ "description": "Line width in pixels, 0 to 50",
6661
+ "type": "number",
6662
+ "minimum": 0,
6663
+ "maximum": 50
6664
+ }
6665
+ },
6666
+ "required": ["axis", "index"],
6667
+ "additionalProperties": false,
6668
+ "title": "Update reference line schema"
6669
+ }
6670
+ ```
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `number` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.9.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `pie` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.9.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `radar` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.9.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `sankey` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.9.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `scatter` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.9.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -17,6 +17,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
17
17
  - [`addMeasureAdvancedAdditionalDimensionDataField`](#addmeasureadvancedadditionaldimensiondatafield)
18
18
  - [`addMeasureAdvancedDimensionDataField`](#addmeasureadvanceddimensiondatafield)
19
19
  - [`addMeasureFilter`](#addmeasurefilter)
20
+ - [`addReferenceLine`](#addreferenceline)
20
21
  - [`addResultFilter`](#addresultfilter)
21
22
  - [`changeMeasureAggregation`](#changemeasureaggregation)
22
23
  - [`changeSortOrderAndDirection`](#changesortorderanddirection)
@@ -32,6 +33,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
32
33
  - [`removeMeasureAdvancedAdditionalDimensionDataField`](#removemeasureadvancedadditionaldimensiondatafield)
33
34
  - [`removeMeasureAdvancedCompareMeasure`](#removemeasureadvancedcomparemeasure)
34
35
  - [`removeMeasureAdvancedDimensionDataField`](#removemeasureadvanceddimensiondatafield)
36
+ - [`removeReferenceLine`](#removereferenceline)
35
37
  - [`resetChartPaletteToThemeDefault`](#resetchartpalettetothemedefault)
36
38
  - [`setAnimationEnabled`](#setanimationenabled)
37
39
  - [`setAxisLabelColor`](#setaxislabelcolor)
@@ -133,6 +135,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
133
135
  - [`toggleSortingItem`](#togglesortingitem)
134
136
  - [`updateDimension`](#updatedimension)
135
137
  - [`updateMeasure`](#updatemeasure)
138
+ - [`updateReferenceLine`](#updatereferenceline)
136
139
 
137
140
  ## `addColoringOverwrite`
138
141
 
@@ -794,6 +797,57 @@ Add another measure filter before aggregation. Keeps existing filters.
794
797
  }
795
798
  ```
796
799
 
800
+ ## `addReferenceLine`
801
+
802
+ Add reference line
803
+
804
+ Add a reference line at a value on the x or y axis, with an optional label, color and width
805
+
806
+ **Payload schema**
807
+
808
+ ```json
809
+ {
810
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
811
+ "type": "object",
812
+ "properties": {
813
+ "axis": {
814
+ "type": "string",
815
+ "enum": ["x", "y"],
816
+ "description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
817
+ },
818
+ "value": {
819
+ "description": "Axis value to draw the line at: a number on a measure axis, the category name on a category axis, and a number of epoch milliseconds on a date axis (a date string is accepted but draws nothing)",
820
+ "type": ["string", "number"]
821
+ },
822
+ "label": {
823
+ "description": "Text drawn next to the line",
824
+ "type": "string"
825
+ },
826
+ "color": {
827
+ "description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
828
+ "anyOf": [
829
+ {
830
+ "type": "string",
831
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
832
+ },
833
+ {
834
+ "type": "null"
835
+ }
836
+ ]
837
+ },
838
+ "strokeWidth": {
839
+ "description": "Line width in pixels, 0 to 50",
840
+ "type": "number",
841
+ "minimum": 0,
842
+ "maximum": 50
843
+ }
844
+ },
845
+ "required": ["axis", "value"],
846
+ "additionalProperties": false,
847
+ "title": "Add reference line schema"
848
+ }
849
+ ```
850
+
797
851
  ## `addResultFilter`
798
852
 
799
853
  Add result filter
@@ -1399,6 +1453,37 @@ Remove additional dimension field from nested advanced calculations
1399
1453
  }
1400
1454
  ```
1401
1455
 
1456
+ ## `removeReferenceLine`
1457
+
1458
+ Remove reference line
1459
+
1460
+ Remove one reference line by its axis and position
1461
+
1462
+ **Payload schema**
1463
+
1464
+ ```json
1465
+ {
1466
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1467
+ "type": "object",
1468
+ "properties": {
1469
+ "axis": {
1470
+ "type": "string",
1471
+ "enum": ["x", "y"],
1472
+ "description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
1473
+ },
1474
+ "index": {
1475
+ "type": "integer",
1476
+ "minimum": 0,
1477
+ "maximum": 9007199254740991,
1478
+ "description": "Zero-based position of the line within its axis"
1479
+ }
1480
+ },
1481
+ "required": ["axis", "index"],
1482
+ "additionalProperties": false,
1483
+ "title": "Remove reference line schema"
1484
+ }
1485
+ ```
1486
+
1402
1487
  ## `resetChartPaletteToThemeDefault`
1403
1488
 
1404
1489
  Reset chart palette
@@ -5967,3 +6052,65 @@ Modify properties of an existing measure
5967
6052
  "title": "Update measure schema"
5968
6053
  }
5969
6054
  ```
6055
+
6056
+ ## `updateReferenceLine`
6057
+
6058
+ Update reference line
6059
+
6060
+ Change the value, label, color or width of a reference line, or move it to the other axis. Omitted fields keep their value
6061
+
6062
+ **Payload schema**
6063
+
6064
+ ```json
6065
+ {
6066
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
6067
+ "type": "object",
6068
+ "properties": {
6069
+ "axis": {
6070
+ "type": "string",
6071
+ "enum": ["x", "y"],
6072
+ "description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
6073
+ },
6074
+ "index": {
6075
+ "type": "integer",
6076
+ "minimum": 0,
6077
+ "maximum": 9007199254740991,
6078
+ "description": "Zero-based position of the line within its axis, as getReferenceLines lists"
6079
+ },
6080
+ "value": {
6081
+ "description": "Axis value to draw the line at: a number on a measure axis, the category name on a category axis, and a number of epoch milliseconds on a date axis (a date string is accepted but draws nothing)",
6082
+ "type": ["string", "number"]
6083
+ },
6084
+ "newAxis": {
6085
+ "description": "Move the line to this axis; it is appended after the existing lines",
6086
+ "type": "string",
6087
+ "enum": ["x", "y"]
6088
+ },
6089
+ "label": {
6090
+ "description": "Text drawn next to the line",
6091
+ "type": "string"
6092
+ },
6093
+ "color": {
6094
+ "description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
6095
+ "anyOf": [
6096
+ {
6097
+ "type": "string",
6098
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
6099
+ },
6100
+ {
6101
+ "type": "null"
6102
+ }
6103
+ ]
6104
+ },
6105
+ "strokeWidth": {
6106
+ "description": "Line width in pixels, 0 to 50",
6107
+ "type": "number",
6108
+ "minimum": 0,
6109
+ "maximum": 50
6110
+ }
6111
+ },
6112
+ "required": ["axis", "index"],
6113
+ "additionalProperties": false,
6114
+ "title": "Update reference line schema"
6115
+ }
6116
+ ```
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `shape` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.9.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `simpleTextObject` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.9.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `slider` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.9.0`.
5
+ Reference for `@astrato-io/visualizations@0.10.1`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8