@astrato-io/visualizations 0.9.0 → 0.10.0

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/README.md +8 -4
  2. package/THIRD_PARTY_NOTICES.md +163 -14
  3. package/VISUALIZATION_DEFINITIONS.md +319 -32
  4. package/chunks/{Button-5CxPEACP.js → Button-CCF851ea.js} +4 -4
  5. package/chunks/{CircularProgress-DFS-LQb7.js → CircularProgress-yupH6YWs.js} +39 -39
  6. package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
  7. package/chunks/{LinearProgress-CjIQfkNA.js → LinearProgress-CyFjN4px.js} +9 -9
  8. package/chunks/{MenuOption-Cb7B7x6z.js → MenuOption-CQpT79AP.js} +143 -142
  9. package/chunks/{Title-CtFw1bVg.js → Title-C-p4ZarD.js} +22 -22
  10. package/chunks/_createAggregator-BF4qG9XK.js +50 -0
  11. package/chunks/{app-filter-bar.compiler-B9775gLJ.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
  12. package/chunks/bar-layout-DStC-GNV.js +9 -0
  13. package/chunks/{bar.compiler-B7wlH_Ro.js → bar.compiler-CQAu8KL8.js} +102 -84
  14. package/chunks/{builder-Dxo7D7c6.js → builder-CScg1TOS.js} +71 -38
  15. package/chunks/color-rules-DYJL4fIW.js +15 -0
  16. package/chunks/color-settings-DJFoFTip.js +5 -0
  17. package/chunks/{coloring-B-Wa8D5P.js → coloring-9jU3s_-p.js} +41 -41
  18. package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
  19. package/chunks/defaults-cyNhn37t.js +3 -0
  20. package/chunks/{definitions-DNpzD9tY.js → definitions-C4grxhye.js} +613 -401
  21. package/chunks/{escobar-C4Nm3eJ7.js → escobar-CjirINHP.js} +5326 -5079
  22. package/chunks/{extend-preset-BVKFtoe-.js → extend-preset-D-l9u_we.js} +974 -909
  23. package/chunks/{filter.compiler-BlS3zoy_.js → filter.compiler-lji2Acgn.js} +10 -10
  24. package/chunks/{filtering-CGuLpg7u.js → filtering-C1zakrrX.js} +385 -429
  25. package/chunks/handlers-ZviIUC-j.js +15387 -0
  26. package/chunks/{icon-picker-styles-DYQgVEKG.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
  27. package/chunks/isEqual-Ch9OEye3.js +16 -0
  28. package/chunks/{isFocusVisible-B1_z03UT.js → isFocusVisible-CgMP0qkR.js} +1 -1
  29. package/chunks/label-format-type-C46pzgx7.js +17 -0
  30. package/chunks/{line.compiler-Bo9i9qag.js → line.compiler-De5fiKuR.js} +9 -9
  31. package/chunks/{logger-3lng-wOw.js → logger-CKRjhSHQ.js} +71 -64
  32. package/chunks/map.compiler-CKzorLgK.js +345 -0
  33. package/chunks/{metadata-Fmx1swpK.js → metadata-Bb9pTXrq.js} +1 -1
  34. package/chunks/{number.compiler-CdLd5aGW.js → number.compiler-CaTmJkmi.js} +7 -7
  35. package/chunks/operations-DZoY50VX.js +31297 -0
  36. package/chunks/{range-CzO4isKK.js → range-D1BTmFMp.js} +2 -2
  37. package/chunks/{react-dom-BwZT0N3F.js → react-dom-Dgv2azN2.js} +70 -70
  38. package/chunks/{render-wrappers-CAuvgMxi.js → render-wrappers-_P3xwu5A.js} +1 -1
  39. package/chunks/{requirements-CYpVh65U.js → requirements-NHNrR8Ie.js} +59 -57
  40. package/chunks/shared-UitWpq1J.js +1331 -0
  41. package/chunks/{standalone-CoQxJ6ov.js → standalone-B0U6c3su.js} +804 -804
  42. package/chunks/{standalone-C6XDHYAM.js → standalone-BBu90BhK.js} +109 -109
  43. package/chunks/standalone-BEekPuA12.js +357 -0
  44. package/chunks/{standalone-CPUiiWNP.js → standalone-BOzHA_d4.js} +41 -41
  45. package/chunks/standalone-BR2JuRIC.js +422 -0
  46. package/chunks/{standalone-DuwTOBXH.js → standalone-BapqaniK.js} +592 -592
  47. package/chunks/{standalone-DWPfdP0A.js → standalone-Bnnr87pc.js} +523 -523
  48. package/chunks/standalone-BwJqDj2Z.js +396 -0
  49. package/chunks/{standalone-LFVgLhia.js → standalone-ByKKqT5L.js} +266 -258
  50. package/chunks/{standalone-BDrQMxLi.js → standalone-CRdDZYeM.js} +1788 -1004
  51. package/chunks/standalone-CRfDOO1x.js +287 -0
  52. package/chunks/{standalone-BvWdpUL3.js → standalone-CVknVdUC.js} +21 -18
  53. package/chunks/standalone-CbPk8bKn.js +580 -0
  54. package/chunks/{standalone-r4ObFvys.js → standalone-Ck63MZzj.js} +218 -216
  55. package/chunks/{standalone-Cu73fzSr.js → standalone-DCFY1MAV.js} +6040 -5820
  56. package/chunks/{standalone-CiaaibTa.js → standalone-DZDGX3aa.js} +174 -174
  57. package/chunks/standalone-DhfgeJIk.js +1012 -0
  58. package/chunks/standalone-DibjA73M.js +6 -0
  59. package/chunks/{standalone-CXniic5x.js → standalone-DtBk_iUz.js} +6 -5
  60. package/chunks/standalone-DxBAyqAu.js +772 -0
  61. package/chunks/standalone-KMQPsNsq.js +2 -0
  62. package/chunks/standalone-MBLSvsrY.js +2 -0
  63. package/chunks/standalone-U0WJwFlG.js +354 -0
  64. package/chunks/{standalone-CNkHsynO.js → standalone-swGs70tD.js} +54 -56
  65. package/chunks/standalone-wgFAVnnm.js +355 -0
  66. package/chunks/standalone-xGV0dqPV.js +689 -0
  67. package/chunks/{table.compiler-C1qjqXaT.js → table.compiler-OWSx5MOq.js} +4 -4
  68. package/chunks/{useFieldName-mWrD_uk_.js → useFieldName-B8iCYyw1.js} +1 -1
  69. package/chunks/{utils-DYYD4Zzf.js → utils-3Igg6xmO.js} +4740 -4737
  70. package/chunks/{view-7fH6mGmY.js → view-DdMLZySj.js} +1988 -1632
  71. package/chunks/{visualization-filters-mVnsnvLP.js → visualization-filters-CzvFHE6M.js} +3158 -2417
  72. package/chunks/{with-html-element-B0Clt4jY.js → with-html-element-DOfkR3C1.js} +3353 -3160
  73. package/definitions.js +2 -2
  74. package/docs/operations/astrato-app-filter-bar.md +1 -1
  75. package/docs/operations/bar.md +303 -2
  76. package/docs/operations/combo.md +262 -1
  77. package/docs/operations/date-picker.md +1 -1
  78. package/docs/operations/distribution-gauge.md +1 -1
  79. package/docs/operations/dot.md +148 -1
  80. package/docs/operations/filter.md +1 -1
  81. package/docs/operations/gauge.md +1 -1
  82. package/docs/operations/heatMap.md +1 -1
  83. package/docs/operations/histogram.md +262 -1
  84. package/docs/operations/iframe.md +1 -1
  85. package/docs/operations/image.md +1 -1
  86. package/docs/operations/index.md +7 -7
  87. package/docs/operations/line.md +262 -1
  88. package/docs/operations/number.md +1 -1
  89. package/docs/operations/pie.md +1 -1
  90. package/docs/operations/radar.md +1 -1
  91. package/docs/operations/sankey.md +1 -1
  92. package/docs/operations/scatter.md +148 -1
  93. package/docs/operations/shape.md +1 -1
  94. package/docs/operations/simpleTextObject.md +1 -1
  95. package/docs/operations/slider.md +1 -1
  96. package/docs/operations/table.md +374 -157
  97. package/docs/operations/tree.md +1 -1
  98. package/docs/operations/treemap.md +1 -1
  99. package/docs/operations/waterfall.md +1 -1
  100. package/docs/operations/word-cloud.md +1 -1
  101. package/getters.js +2 -2
  102. package/index.js +507 -459
  103. package/metadata.js +2 -2
  104. package/operations.js +5 -5
  105. package/package.json +72 -67
  106. package/src/definitions/index.d.ts +1 -1
  107. package/src/definitions/model/definitions/available-fields.d.ts +2 -2
  108. package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
  109. package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
  110. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +188 -2
  111. package/src/definitions/model/definitions/index.d.ts +2 -1
  112. package/src/definitions/model/definitions/schema-registry.d.ts +305 -0
  113. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -0
  114. package/src/definitions/model/definitions/schemas/common.schema.d.ts +4 -3
  115. package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
  116. package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
  117. package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
  118. package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
  119. package/src/definitions/model/definitions/types/index.d.ts +1 -1
  120. package/src/index.d.ts +1 -1
  121. package/src/operations/index.d.ts +1 -1
  122. package/src/types.d.ts +45 -41
  123. package/chunks/FieldTypeIcon-pSVQFemC.js +0 -22
  124. package/chunks/ToggleButton-Br9HCPCv.js +0 -150
  125. package/chunks/color-rules-CN7TcGrC.js +0 -6
  126. package/chunks/color-settings-3VRlf_Vw.js +0 -6
  127. package/chunks/handlers-CMbyj5y1.js +0 -12930
  128. package/chunks/isEqual-DBg_b35N.js +0 -12
  129. package/chunks/label-format-type-weq1XfcX.js +0 -8
  130. package/chunks/operations-HSqnCRvv.js +0 -26324
  131. package/chunks/shared-DFoJxjVN.js +0 -1218
  132. package/chunks/standalone-530a5lvf.js +0 -1003
  133. package/chunks/standalone-5DnapeHH.js +0 -420
  134. package/chunks/standalone-B4jrf4KE.js +0 -354
  135. package/chunks/standalone-B6s_xG2u.js +0 -354
  136. package/chunks/standalone-BMoJXGYe.js +0 -2
  137. package/chunks/standalone-BfvGggeM2.js +0 -355
  138. package/chunks/standalone-CMJJIi9v.js +0 -2
  139. package/chunks/standalone-C_Jd4gkj.js +0 -6
  140. package/chunks/standalone-DBeXQrwH.js +0 -468
  141. package/chunks/standalone-DMCwtebn.js +0 -396
  142. package/chunks/standalone-DpSRmAWx.js +0 -287
  143. package/chunks/standalone-kzAhwH19.js +0 -689
  144. package/chunks/standalone-mb7LwEiq.js +0 -3874
  145. /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.0`.
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)
@@ -154,6 +159,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
154
159
  - [`toggleSortingItem`](#togglesortingitem)
155
160
  - [`updateDimension`](#updatedimension)
156
161
  - [`updateMeasure`](#updatemeasure)
162
+ - [`updateReferenceLine`](#updatereferenceline)
157
163
 
158
164
  ## `addColoringOverwrite`
159
165
 
@@ -320,6 +326,43 @@ Add a new dimension to the chart
320
326
  }
321
327
  ```
322
328
 
329
+ ## `addDimensionAxisBand`
330
+
331
+ Add dimension axis band
332
+
333
+ Add a shaded band on the dimension axis between two raw dimension values (inclusive for categories)
334
+
335
+ **Payload schema**
336
+
337
+ ```json
338
+ {
339
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
340
+ "type": "object",
341
+ "properties": {
342
+ "start": {
343
+ "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",
344
+ "type": ["number", "string", "boolean"]
345
+ },
346
+ "end": {
347
+ "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",
348
+ "type": ["number", "string", "boolean"]
349
+ },
350
+ "color": {
351
+ "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
352
+ "type": "string",
353
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
354
+ },
355
+ "label": {
356
+ "description": "Text drawn inside the band",
357
+ "type": "string"
358
+ }
359
+ },
360
+ "required": ["start", "end"],
361
+ "additionalProperties": false,
362
+ "title": "Add dimension axis band schema"
363
+ }
364
+ ```
365
+
323
366
  ## `addMeasure`
324
367
 
325
368
  Add measure
@@ -695,6 +738,57 @@ Add another measure filter before aggregation. Keeps existing filters.
695
738
  }
696
739
  ```
697
740
 
741
+ ## `addReferenceLine`
742
+
743
+ Add reference line
744
+
745
+ Add a reference line at a value on the x or y axis, with an optional label, color and width
746
+
747
+ **Payload schema**
748
+
749
+ ```json
750
+ {
751
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
752
+ "type": "object",
753
+ "properties": {
754
+ "axis": {
755
+ "type": "string",
756
+ "enum": ["x", "y"],
757
+ "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"
758
+ },
759
+ "value": {
760
+ "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)",
761
+ "type": ["string", "number"]
762
+ },
763
+ "label": {
764
+ "description": "Text drawn next to the line",
765
+ "type": "string"
766
+ },
767
+ "color": {
768
+ "description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
769
+ "anyOf": [
770
+ {
771
+ "type": "string",
772
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
773
+ },
774
+ {
775
+ "type": "null"
776
+ }
777
+ ]
778
+ },
779
+ "strokeWidth": {
780
+ "description": "Line width in pixels, 0 to 50",
781
+ "type": "number",
782
+ "minimum": 0,
783
+ "maximum": 50
784
+ }
785
+ },
786
+ "required": ["axis", "value"],
787
+ "additionalProperties": false,
788
+ "title": "Add reference line schema"
789
+ }
790
+ ```
791
+
698
792
  ## `addResultFilter`
699
793
 
700
794
  Add result filter
@@ -1202,6 +1296,32 @@ Remove a dimension from the chart
1202
1296
  }
1203
1297
  ```
1204
1298
 
1299
+ ## `removeDimensionAxisBand`
1300
+
1301
+ Remove dimension axis band
1302
+
1303
+ Remove one shaded band from the dimension axis by its position
1304
+
1305
+ **Payload schema**
1306
+
1307
+ ```json
1308
+ {
1309
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1310
+ "type": "object",
1311
+ "properties": {
1312
+ "index": {
1313
+ "type": "integer",
1314
+ "minimum": 0,
1315
+ "maximum": 9007199254740991,
1316
+ "description": "Zero-based position of the band to remove"
1317
+ }
1318
+ },
1319
+ "required": ["index"],
1320
+ "additionalProperties": false,
1321
+ "title": "Remove dimension axis band schema"
1322
+ }
1323
+ ```
1324
+
1205
1325
  ## `removeMeasure`
1206
1326
 
1207
1327
  Remove measure
@@ -1406,6 +1526,37 @@ Remove a measure color override
1406
1526
  }
1407
1527
  ```
1408
1528
 
1529
+ ## `removeReferenceLine`
1530
+
1531
+ Remove reference line
1532
+
1533
+ Remove one reference line by its axis and position
1534
+
1535
+ **Payload schema**
1536
+
1537
+ ```json
1538
+ {
1539
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1540
+ "type": "object",
1541
+ "properties": {
1542
+ "axis": {
1543
+ "type": "string",
1544
+ "enum": ["x", "y"],
1545
+ "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"
1546
+ },
1547
+ "index": {
1548
+ "type": "integer",
1549
+ "minimum": 0,
1550
+ "maximum": 9007199254740991,
1551
+ "description": "Zero-based position of the line within its axis"
1552
+ }
1553
+ },
1554
+ "required": ["axis", "index"],
1555
+ "additionalProperties": false,
1556
+ "title": "Remove reference line schema"
1557
+ }
1558
+ ```
1559
+
1409
1560
  ## `resetChartPaletteToThemeDefault`
1410
1561
 
1411
1562
  Reset chart palette
@@ -2086,6 +2237,54 @@ Control how data gaps are handled
2086
2237
  }
2087
2238
  ```
2088
2239
 
2240
+ ## `setDimensionAxisBands`
2241
+
2242
+ Dimension axis bands
2243
+
2244
+ Replace all shaded bands on the dimension axis. Each band fills the plot between two raw dimension values (inclusive for categories)
2245
+
2246
+ **Payload schema**
2247
+
2248
+ ```json
2249
+ {
2250
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2251
+ "type": "object",
2252
+ "properties": {
2253
+ "bands": {
2254
+ "type": "array",
2255
+ "items": {
2256
+ "type": "object",
2257
+ "properties": {
2258
+ "start": {
2259
+ "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",
2260
+ "type": ["number", "string", "boolean"]
2261
+ },
2262
+ "end": {
2263
+ "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",
2264
+ "type": ["number", "string", "boolean"]
2265
+ },
2266
+ "color": {
2267
+ "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
2268
+ "type": "string",
2269
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2270
+ },
2271
+ "label": {
2272
+ "description": "Text drawn inside the band",
2273
+ "type": "string"
2274
+ }
2275
+ },
2276
+ "required": ["start", "end"],
2277
+ "additionalProperties": false
2278
+ },
2279
+ "description": "Bands to draw, in order; an empty array removes all bands"
2280
+ }
2281
+ },
2282
+ "required": ["bands"],
2283
+ "additionalProperties": false,
2284
+ "title": "Set dimension axis bands schema"
2285
+ }
2286
+ ```
2287
+
2089
2288
  ## `setDimensionFormatString`
2090
2289
 
2091
2290
  Dimension format string
@@ -6389,3 +6588,65 @@ Modify properties of an existing measure
6389
6588
  "title": "Update measure schema"
6390
6589
  }
6391
6590
  ```
6591
+
6592
+ ## `updateReferenceLine`
6593
+
6594
+ Update reference line
6595
+
6596
+ Change the value, label, color or width of a reference line, or move it to the other axis. Omitted fields keep their value
6597
+
6598
+ **Payload schema**
6599
+
6600
+ ```json
6601
+ {
6602
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
6603
+ "type": "object",
6604
+ "properties": {
6605
+ "axis": {
6606
+ "type": "string",
6607
+ "enum": ["x", "y"],
6608
+ "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"
6609
+ },
6610
+ "index": {
6611
+ "type": "integer",
6612
+ "minimum": 0,
6613
+ "maximum": 9007199254740991,
6614
+ "description": "Zero-based position of the line within its axis, as getReferenceLines lists"
6615
+ },
6616
+ "value": {
6617
+ "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)",
6618
+ "type": ["string", "number"]
6619
+ },
6620
+ "newAxis": {
6621
+ "description": "Move the line to this axis; it is appended after the existing lines",
6622
+ "type": "string",
6623
+ "enum": ["x", "y"]
6624
+ },
6625
+ "label": {
6626
+ "description": "Text drawn next to the line",
6627
+ "type": "string"
6628
+ },
6629
+ "color": {
6630
+ "description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
6631
+ "anyOf": [
6632
+ {
6633
+ "type": "string",
6634
+ "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
6635
+ },
6636
+ {
6637
+ "type": "null"
6638
+ }
6639
+ ]
6640
+ },
6641
+ "strokeWidth": {
6642
+ "description": "Line width in pixels, 0 to 50",
6643
+ "type": "number",
6644
+ "minimum": 0,
6645
+ "maximum": 50
6646
+ }
6647
+ },
6648
+ "required": ["axis", "index"],
6649
+ "additionalProperties": false,
6650
+ "title": "Update reference line schema"
6651
+ }
6652
+ ```
@@ -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.0`.
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.0`.
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.0`.
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.0`.
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.0`.
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.0`.
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.0`.
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.0`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8