@astrato-io/visualizations 0.10.1 → 0.12.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 (143) hide show
  1. package/CHANGELOG.md +30 -1
  2. package/README.md +148 -5
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +9 -146
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CQdoKSXX.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-DpT1lwWw.js} +20 -20
  7. package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-B7S0Q26A.js} +14 -14
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-DpKFJxmo.js} +167 -167
  10. package/chunks/{Title-BgYnaVTR.js → Title-m5damhc0.js} +37 -37
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-BA8_iU9q.js} +17 -17
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler--T4Qz3Wu.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-OFhxn2Go.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-hWZBYYvV.js} +71 -69
  15. package/chunks/{builder-C-TKA-My.js → builder-7w_bgV_h.js} +106 -55
  16. package/chunks/{coloring-BtnPiQ_o.js → coloring-Cd6p0GQJ.js} +93 -88
  17. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-CiJT8s1s.js} +169 -169
  18. package/chunks/defaults-CMFqXvaJ.js +3 -0
  19. package/chunks/{definitions-CT304NDn.js → definitions-DTauTjIX.js} +399 -398
  20. package/chunks/{escobar-CvEV2ES1.js → escobar-CMvphKSK.js} +4949 -4879
  21. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BpXttHFk.js} +449 -450
  22. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-DOGFweJz.js} +10 -10
  23. package/chunks/{filtering-8_bFv-jb.js → filtering-NOnDcGbo.js} +241 -241
  24. package/chunks/handlers-CyYFSfhM.js +15393 -0
  25. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-DuSERhBU.js} +8 -8
  26. package/chunks/{isEqual-D8Ay63xR.js → isEqual-4f8yUUtC.js} +1 -1
  27. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-Czm70MGc.js} +9 -9
  28. package/chunks/line.compiler-B-4H55_T.js +203 -0
  29. package/chunks/linear-Bq_r9l5S.js +264 -0
  30. package/chunks/{logger-DdZpR7xZ.js → logger-Cioob-QV.js} +74 -73
  31. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  32. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-Cv5V6EhF.js} +40 -40
  33. package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
  34. package/chunks/measure-format-default-B_kuGSzi.js +26 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-dGSe5UWy.js} +5 -5
  36. package/chunks/number.compiler-D7nMcEMv.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-CgfehCad.js} +11397 -11114
  38. package/chunks/{range-BdhzvYQ_.js → range-Dmwp9kVB.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-CfuL-m78.js} +82 -82
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers--g-zPFBW.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-DHayNJ2C.js} +245 -221
  42. package/chunks/{shared-C_2F90xq.js → shared-DoEN9nNM.js} +505 -494
  43. package/chunks/standalone-B3hRGgYi.js +773 -0
  44. package/chunks/{standalone-BkbiH-o8.js → standalone-BPNXgFft.js} +498 -759
  45. package/chunks/standalone-BPTT8XEu.js +424 -0
  46. package/chunks/standalone-BgAeHROc.js +2 -0
  47. package/chunks/{standalone-BE_ONgiG.js → standalone-BkQxag7M.js} +102 -102
  48. package/chunks/{standalone-Cc98Pdr6.js → standalone-Bxa3x6dg.js} +872 -872
  49. package/chunks/standalone-C0If-V6O.js +773 -0
  50. package/chunks/standalone-C1TOyflX.js +287 -0
  51. package/chunks/{standalone-CY_kjarf.js → standalone-CE5PwJN0.js} +18 -18
  52. package/chunks/{standalone-B8ZSqauS.js → standalone-CG7IFN6n.js} +120 -120
  53. package/chunks/{standalone-wOWRCpdn.js → standalone-CKlgGu80.js} +49 -49
  54. package/chunks/standalone-CNf-oA2U.js +355 -0
  55. package/chunks/{standalone-BDrXVxlP.js → standalone-CXPdWFlw.js} +14 -14
  56. package/chunks/{standalone-z0o52o5t.js → standalone-Cf0_5tbu.js} +5567 -5568
  57. package/chunks/{standalone-Cl0TSfqC.js → standalone-DMi4-Vp3.js} +122 -122
  58. package/chunks/{standalone-DNh9NcMa.js → standalone-DTEX67C8.js} +154 -154
  59. package/chunks/{standalone-DHRalbVO.js → standalone-DU46-kYv.js} +279 -279
  60. package/chunks/standalone-Dbn3jSH6.js +690 -0
  61. package/chunks/{standalone-CsoMmE9T.js → standalone-DdcAL_k_.js} +839 -843
  62. package/chunks/standalone-DwCIA0UG.js +1057 -0
  63. package/chunks/standalone-Dz13tl3P.js +357 -0
  64. package/chunks/standalone-H9GFzFk_.js +8377 -0
  65. package/chunks/{standalone-CaTxAydz.js → standalone-MduR0qre.js} +2227 -1000
  66. package/chunks/standalone-ejTz66P3.js +2 -0
  67. package/chunks/{standalone-DflyWtuR.js → standalone-keB-0wK3.js} +216 -216
  68. package/chunks/{standalone-BTY3w_JA.js → standalone-nnkuQd0K.js} +28 -28
  69. package/chunks/standalone-vGGR6Vcn.js +6 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-mS4UvhLT.js} +31 -31
  71. package/chunks/theme-MYp6Rj1J.js +232 -0
  72. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-AdSak4Ch.js} +1 -1
  73. package/chunks/{utils-DganVptf.js → utils-CUKgR7it.js} +4216 -4070
  74. package/chunks/{view-Bzlros43.js → view-BeYwpcVD.js} +1561 -1561
  75. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-B9qik5_K.js} +2683 -2342
  76. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-1GSeLT59.js} +3712 -3682
  77. package/definitions.js +2 -2
  78. package/docs/operations/astrato-app-filter-bar.md +1 -1
  79. package/docs/operations/bar.md +144 -32
  80. package/docs/operations/combo.md +79 -17
  81. package/docs/operations/date-picker.md +4 -4
  82. package/docs/operations/distribution-gauge.md +18 -16
  83. package/docs/operations/dot.md +107 -24
  84. package/docs/operations/filter.md +10 -8
  85. package/docs/operations/gauge.md +20 -18
  86. package/docs/operations/heatMap.md +73 -21
  87. package/docs/operations/histogram.md +45 -12
  88. package/docs/operations/iframe.md +1 -1
  89. package/docs/operations/image.md +1 -1
  90. package/docs/operations/index.md +12 -11
  91. package/docs/operations/line.md +86 -24
  92. package/docs/operations/map.md +5274 -0
  93. package/docs/operations/number.md +10 -9
  94. package/docs/operations/pie.md +23 -21
  95. package/docs/operations/radar.md +13 -11
  96. package/docs/operations/sankey.md +19 -17
  97. package/docs/operations/scatter.md +111 -28
  98. package/docs/operations/shape.md +5 -5
  99. package/docs/operations/simpleTextObject.md +4 -4
  100. package/docs/operations/slider.md +1 -1
  101. package/docs/operations/table.md +27 -25
  102. package/docs/operations/tree.md +5 -3
  103. package/docs/operations/treemap.md +70 -18
  104. package/docs/operations/waterfall.md +40 -7
  105. package/docs/operations/word-cloud.md +69 -17
  106. package/getters.js +3 -3
  107. package/index.js +585 -612
  108. package/metadata.js +2 -2
  109. package/operations.js +25 -18
  110. package/package.json +74 -70
  111. package/src/definitions/index.d.ts +1 -7
  112. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  113. package/src/definitions/model/definitions/schema-registry.d.ts +15 -14
  114. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +3 -3
  115. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  116. package/src/definitions/model/definitions/schemas/common.schema.d.ts +19 -6
  117. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  118. package/src/definitions/model/definitions/schemas/line.schema.d.ts +4 -3
  119. package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
  120. package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
  121. package/src/index.d.ts +1 -1
  122. package/src/operations/index.d.ts +11 -1
  123. package/src/types.d.ts +166 -1
  124. package/src/visualization-catalog.d.ts +3 -0
  125. package/styles.css +1 -1
  126. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  127. package/chunks/color-rules-DYJL4fIW.js +0 -15
  128. package/chunks/color-settings-DJFoFTip.js +0 -5
  129. package/chunks/defaults-Dtk7fg3C.js +0 -3
  130. package/chunks/handlers-C6CZ0XJA.js +0 -15399
  131. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  132. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  133. package/chunks/standalone-4MsKiqs0.js +0 -355
  134. package/chunks/standalone-B794g9pE.js +0 -1012
  135. package/chunks/standalone-BA2YXyJS.js +0 -422
  136. package/chunks/standalone-BgumbdaJ2.js +0 -357
  137. package/chunks/standalone-Blh4qejk.js +0 -689
  138. package/chunks/standalone-CXY4FpF7.js +0 -773
  139. package/chunks/standalone-DH0xTEes.js +0 -2
  140. package/chunks/standalone-DcnHjNnC.js +0 -2
  141. package/chunks/standalone-DrHdGkY7.js +0 -762
  142. package/chunks/standalone-c_rROMtx.js +0 -287
  143. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `heatMap` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.1`.
5
+ Reference for `@astrato-io/visualizations@0.12.0`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -47,6 +47,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
47
47
  - [`setColoringGradientAuto`](#setcoloringgradientauto)
48
48
  - [`setColoringGradientMax`](#setcoloringgradientmax)
49
49
  - [`setColoringGradientMin`](#setcoloringgradientmin)
50
+ - [`setColoringGradientRamp`](#setcoloringgradientramp)
50
51
  - [`setColoringOverwrites`](#setcoloringoverwrites)
51
52
  - [`setColoringRules`](#setcoloringrules)
52
53
  - [`setColoringType`](#setcoloringtype)
@@ -164,7 +165,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
164
165
  },
165
166
  "color": {
166
167
  "type": "string",
167
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
168
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
168
169
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
169
170
  },
170
171
  "operator": {
@@ -201,7 +202,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
201
202
  },
202
203
  "color": {
203
204
  "type": "string",
204
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
205
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
205
206
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
206
207
  },
207
208
  "operator": {
@@ -242,7 +243,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
242
243
  },
243
244
  "color": {
244
245
  "type": "string",
245
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
246
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
246
247
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
247
248
  },
248
249
  "operator": {
@@ -305,7 +306,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
305
306
  },
306
307
  "color": {
307
308
  "type": "string",
308
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
309
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
309
310
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
310
311
  },
311
312
  "operator": {
@@ -342,7 +343,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
342
343
  },
343
344
  "color": {
344
345
  "type": "string",
345
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
346
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
346
347
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
347
348
  },
348
349
  "operator": {
@@ -383,7 +384,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
383
384
  },
384
385
  "color": {
385
386
  "type": "string",
386
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
387
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
387
388
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
388
389
  },
389
390
  "operator": {
@@ -1501,7 +1502,7 @@ Change the color of axis value labels
1501
1502
  "anyOf": [
1502
1503
  {
1503
1504
  "type": "string",
1504
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1505
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1505
1506
  },
1506
1507
  {
1507
1508
  "type": "null"
@@ -1536,7 +1537,7 @@ Change the color of axis lines
1536
1537
  "anyOf": [
1537
1538
  {
1538
1539
  "type": "string",
1539
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1540
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1540
1541
  },
1541
1542
  {
1542
1543
  "type": "null"
@@ -1571,7 +1572,7 @@ Change the color of axis tick marks
1571
1572
  "anyOf": [
1572
1573
  {
1573
1574
  "type": "string",
1574
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1575
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1575
1576
  },
1576
1577
  {
1577
1578
  "type": "null"
@@ -1633,7 +1634,7 @@ Change the color of axis titles
1633
1634
  "anyOf": [
1634
1635
  {
1635
1636
  "type": "string",
1636
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1637
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1637
1638
  },
1638
1639
  {
1639
1640
  "type": "null"
@@ -1655,7 +1656,7 @@ Change the color of axis titles
1655
1656
 
1656
1657
  Chart palette
1657
1658
 
1658
- Apply an existing palette using a built-in palette name or a theme palette label like "theme palette 2". Built-in categorical palettes: astrato, classic, spectrum, flat, neon, instant, brewer, alternate, dark, bright. Built-in gradient palettes (gradient coloring): viridis, instant, coral, yellowred, greenblue, bluepurple, redpurple. Requires a palette-based coloring type. Your own colors are set with setCustomPaletteColors or setCustomGradientColors, on charts that offer them
1659
+ Apply an existing palette using a built-in palette name or a theme palette label like "theme palette 2". Built-in categorical palettes: astrato, classic, spectrum, flat, neon, instant, brewer, alternate, dark, bright. Built-in gradient palettes (gradient coloring): viridis, instant, coral, yellowred, greenblue, bluepurple, redpurple. Built-in diverging palettes (diverging gradient coloring): redblue, purplegreen, browngreen. Requires a palette-based coloring type. Your own colors are set with setCustomPaletteColors or setCustomGradientColors, on charts that offer them
1659
1660
 
1660
1661
  **Payload schema**
1661
1662
 
@@ -1680,7 +1681,7 @@ Set the single color used by the chart
1680
1681
  {
1681
1682
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1682
1683
  "type": "string",
1683
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1684
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1684
1685
  "title": "Coloring color schema"
1685
1686
  }
1686
1687
  ```
@@ -1769,6 +1770,55 @@ Set the minimum value of the gradient domain using a number or variable. Applies
1769
1770
  }
1770
1771
  ```
1771
1772
 
1773
+ ## `setColoringGradientRamp`
1774
+
1775
+ Gradient ramp
1776
+
1777
+ Set how the gradient spreads its colors. "diverging" centers the middle color on the midpoint (0 unless set; "auto" uses the middle of the gradient limits) and uses a diverging palette. "steps" draws the gradient as solid bands; null makes it continuous. Settings left out keep their current values. Requires gradient coloring
1778
+
1779
+ **Payload schema**
1780
+
1781
+ ```json
1782
+ {
1783
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1784
+ "type": "object",
1785
+ "properties": {
1786
+ "kind": {
1787
+ "description": "sequential runs from low to high; diverging runs away from the midpoint in both directions",
1788
+ "type": "string",
1789
+ "enum": ["sequential", "diverging"]
1790
+ },
1791
+ "midpoint": {
1792
+ "description": "Value a diverging gradient centers on, or \"auto\" for the middle of its limits. Defaults to 0",
1793
+ "anyOf": [
1794
+ {
1795
+ "type": "number"
1796
+ },
1797
+ {
1798
+ "type": "string",
1799
+ "const": "auto"
1800
+ }
1801
+ ]
1802
+ },
1803
+ "steps": {
1804
+ "description": "Number of solid bands to draw the gradient with. Null draws a continuous gradient",
1805
+ "anyOf": [
1806
+ {
1807
+ "type": "integer",
1808
+ "minimum": 2,
1809
+ "maximum": 12
1810
+ },
1811
+ {
1812
+ "type": "null"
1813
+ }
1814
+ ]
1815
+ }
1816
+ },
1817
+ "additionalProperties": false,
1818
+ "title": "Coloring gradient ramp schema"
1819
+ }
1820
+ ```
1821
+
1772
1822
  ## `setColoringOverwrites`
1773
1823
 
1774
1824
  Value colors
@@ -1807,7 +1857,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1807
1857
  },
1808
1858
  "color": {
1809
1859
  "type": "string",
1810
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1860
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1811
1861
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1812
1862
  },
1813
1863
  "operator": {
@@ -1853,7 +1903,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1853
1903
  },
1854
1904
  "color": {
1855
1905
  "type": "string",
1856
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1906
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1857
1907
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1858
1908
  },
1859
1909
  "operator": {
@@ -1894,7 +1944,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1894
1944
  },
1895
1945
  "color": {
1896
1946
  "type": "string",
1897
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1947
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1898
1948
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1899
1949
  },
1900
1950
  "operator": {
@@ -1968,7 +2018,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
1968
2018
  },
1969
2019
  "color": {
1970
2020
  "type": "string",
1971
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2021
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1972
2022
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1973
2023
  },
1974
2024
  "operator": {
@@ -2005,7 +2055,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
2005
2055
  },
2006
2056
  "color": {
2007
2057
  "type": "string",
2008
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2058
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
2009
2059
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
2010
2060
  },
2011
2061
  "operator": {
@@ -2046,7 +2096,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
2046
2096
  },
2047
2097
  "color": {
2048
2098
  "type": "string",
2049
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2099
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
2050
2100
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
2051
2101
  },
2052
2102
  "operator": {
@@ -2117,7 +2167,7 @@ Replace the whole custom gradient with a provided list of colors
2117
2167
  "type": "array",
2118
2168
  "items": {
2119
2169
  "type": "string",
2120
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2170
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2121
2171
  }
2122
2172
  }
2123
2173
  },
@@ -2255,6 +2305,7 @@ Set the display format type used by a dimension. This changes label formatting o
2255
2305
  "abbreviationNoDecimal",
2256
2306
  "abbreviation1Decimal",
2257
2307
  "abbreviation2Decimal",
2308
+ "abbreviationCompact",
2258
2309
  "percentageNoDecimal",
2259
2310
  "percentage1Decimal",
2260
2311
  "percentage2Decimal",
@@ -2556,7 +2607,7 @@ Change the color of legend text labels
2556
2607
  "anyOf": [
2557
2608
  {
2558
2609
  "type": "string",
2559
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2610
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2560
2611
  },
2561
2612
  {
2562
2613
  "type": "null"
@@ -4709,6 +4760,7 @@ Set the format type used by a measure
4709
4760
  "abbreviationNoDecimal",
4710
4761
  "abbreviation1Decimal",
4711
4762
  "abbreviation2Decimal",
4763
+ "abbreviationCompact",
4712
4764
  "percentageNoDecimal",
4713
4765
  "percentage1Decimal",
4714
4766
  "percentage2Decimal",
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `histogram` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.1`.
5
+ Reference for `@astrato-io/visualizations@0.12.0`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -45,6 +45,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
45
45
  - [`setLegendPosition`](#setlegendposition)
46
46
  - [`setLegendTitle`](#setlegendtitle)
47
47
  - [`setMeasureAxisBands`](#setmeasureaxisbands)
48
+ - [`setMeasureAxisLabelFormat`](#setmeasureaxislabelformat)
48
49
  - [`setMeasureCurrency`](#setmeasurecurrency)
49
50
  - [`setMeasureCurrencyIsPrefix`](#setmeasurecurrencyisprefix)
50
51
  - [`setMeasureFormatString`](#setmeasureformatstring)
@@ -112,7 +113,7 @@ Add a shaded band on the dimension axis between two raw dimension values (inclus
112
113
  "color": {
113
114
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
114
115
  "type": "string",
115
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
116
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
116
117
  },
117
118
  "label": {
118
119
  "description": "Text drawn inside the band",
@@ -149,7 +150,7 @@ Add a shaded band on the primary measure axis between two measure values
149
150
  "color": {
150
151
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
151
152
  "type": "string",
152
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
153
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
153
154
  },
154
155
  "label": {
155
156
  "description": "Text drawn inside the band",
@@ -193,7 +194,7 @@ Add a reference line at a value on the x or y axis, with an optional label, colo
193
194
  "anyOf": [
194
195
  {
195
196
  "type": "string",
196
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
197
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
197
198
  },
198
199
  {
199
200
  "type": "null"
@@ -393,7 +394,7 @@ Change the color of axis value labels
393
394
  "anyOf": [
394
395
  {
395
396
  "type": "string",
396
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
397
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
397
398
  },
398
399
  {
399
400
  "type": "null"
@@ -428,7 +429,7 @@ Change the color of axis lines
428
429
  "anyOf": [
429
430
  {
430
431
  "type": "string",
431
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
432
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
432
433
  },
433
434
  {
434
435
  "type": "null"
@@ -572,7 +573,7 @@ Change the color of axis tick marks
572
573
  "anyOf": [
573
574
  {
574
575
  "type": "string",
575
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
576
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
576
577
  },
577
578
  {
578
579
  "type": "null"
@@ -634,7 +635,7 @@ Change the color of axis titles
634
635
  "anyOf": [
635
636
  {
636
637
  "type": "string",
637
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
638
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
638
639
  },
639
640
  {
640
641
  "type": "null"
@@ -698,7 +699,7 @@ Replace all shaded bands on the dimension axis. Each band fills the plot between
698
699
  "color": {
699
700
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
700
701
  "type": "string",
701
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
702
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
702
703
  },
703
704
  "label": {
704
705
  "description": "Text drawn inside the band",
@@ -804,6 +805,7 @@ Set the display format type used by a dimension. This changes label formatting o
804
805
  "abbreviationNoDecimal",
805
806
  "abbreviation1Decimal",
806
807
  "abbreviation2Decimal",
808
+ "abbreviationCompact",
807
809
  "percentageNoDecimal",
808
810
  "percentage1Decimal",
809
811
  "percentage2Decimal",
@@ -1095,7 +1097,7 @@ Change the color of legend text labels
1095
1097
  "anyOf": [
1096
1098
  {
1097
1099
  "type": "string",
1098
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1100
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1099
1101
  },
1100
1102
  {
1101
1103
  "type": "null"
@@ -1220,7 +1222,7 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
1220
1222
  "color": {
1221
1223
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
1222
1224
  "type": "string",
1223
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1225
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1224
1226
  },
1225
1227
  "label": {
1226
1228
  "description": "Text drawn inside the band",
@@ -1239,6 +1241,36 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
1239
1241
  }
1240
1242
  ```
1241
1243
 
1244
+ ## `setMeasureAxisLabelFormat`
1245
+
1246
+ Measure axis label format
1247
+
1248
+ Print measure axis values compactly, eg. 40M instead of 40,000,000.00, or with the measure's format. Data labels and tooltips keep the measure's format.
1249
+
1250
+ **Payload schema**
1251
+
1252
+ ```json
1253
+ {
1254
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1255
+ "type": "object",
1256
+ "properties": {
1257
+ "axisName": {
1258
+ "type": "string",
1259
+ "enum": ["primaryMeasure"],
1260
+ "description": "Measure axis to change"
1261
+ },
1262
+ "labelFormat": {
1263
+ "type": "string",
1264
+ "enum": ["compact", "value"],
1265
+ "description": "compact abbreviates each axis value, eg. 1.5M or $50M; value prints it with the measure's format. Percent, date, time and duration formats, patterns with conditions or colors, already scaled patterns and fixed-decimal abbreviations keep the measure's format."
1266
+ }
1267
+ },
1268
+ "required": ["axisName", "labelFormat"],
1269
+ "additionalProperties": false,
1270
+ "title": "Measure axis label format schema"
1271
+ }
1272
+ ```
1273
+
1242
1274
  ## `setMeasureCurrency`
1243
1275
 
1244
1276
  Measure currency
@@ -1388,6 +1420,7 @@ Set the format type used by a measure
1388
1420
  "abbreviationNoDecimal",
1389
1421
  "abbreviation1Decimal",
1390
1422
  "abbreviation2Decimal",
1423
+ "abbreviationCompact",
1391
1424
  "percentageNoDecimal",
1392
1425
  "percentage1Decimal",
1393
1426
  "percentage2Decimal",
@@ -2096,7 +2129,7 @@ Change the value, label, color or width of a reference line, or move it to the o
2096
2129
  "anyOf": [
2097
2130
  {
2098
2131
  "type": "string",
2099
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2132
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2100
2133
  },
2101
2134
  {
2102
2135
  "type": "null"
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `iframe` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.1`.
5
+ Reference for `@astrato-io/visualizations@0.12.0`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `image` operations
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.1`.
5
+ Reference for `@astrato-io/visualizations@0.12.0`.
6
6
 
7
7
  [All visualization types](./index.md)
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Visualization operations reference
4
4
 
5
- Reference for `@astrato-io/visualizations@0.10.1`.
5
+ Reference for `@astrato-io/visualizations@0.12.0`.
6
6
 
7
7
  Read the page for your visualization type to find every operation exposed by its standalone metadata, including its description and complete JSON payload schema. These files are included in the installed package under `docs/operations/`; you can read them without importing JavaScript or loading a chart.
8
8
 
@@ -19,28 +19,29 @@ This reference describes the standalone operation catalog, rather than the small
19
19
  | Type | Family | Operations |
20
20
  | ------------------------------------------------------- | ------ | ---------- |
21
21
  | [`astrato-app-filter-bar`](./astrato-app-filter-bar.md) | filter | 8 |
22
- | [`bar`](./bar.md) | chart | 163 |
23
- | [`combo`](./combo.md) | chart | 136 |
22
+ | [`bar`](./bar.md) | chart | 166 |
23
+ | [`combo`](./combo.md) | chart | 138 |
24
24
  | [`date-picker`](./date-picker.md) | filter | 16 |
25
25
  | [`distribution-gauge`](./distribution-gauge.md) | chart | 50 |
26
- | [`dot`](./dot.md) | chart | 111 |
26
+ | [`dot`](./dot.md) | chart | 113 |
27
27
  | [`filter`](./filter.md) | filter | 33 |
28
28
  | [`gauge`](./gauge.md) | chart | 60 |
29
- | [`heatMap`](./heatMap.md) | chart | 120 |
30
- | [`histogram`](./histogram.md) | chart | 53 |
29
+ | [`heatMap`](./heatMap.md) | chart | 121 |
30
+ | [`histogram`](./histogram.md) | chart | 54 |
31
31
  | [`iframe`](./iframe.md) | object | 1 |
32
32
  | [`image`](./image.md) | object | 6 |
33
- | [`line`](./line.md) | chart | 151 |
33
+ | [`line`](./line.md) | chart | 153 |
34
+ | [`map`](./map.md) | chart | 123 |
34
35
  | [`number`](./number.md) | object | 72 |
35
36
  | [`pie`](./pie.md) | chart | 121 |
36
37
  | [`radar`](./radar.md) | chart | 81 |
37
38
  | [`sankey`](./sankey.md) | chart | 49 |
38
- | [`scatter`](./scatter.md) | chart | 126 |
39
+ | [`scatter`](./scatter.md) | chart | 128 |
39
40
  | [`shape`](./shape.md) | object | 14 |
40
41
  | [`simpleTextObject`](./simpleTextObject.md) | object | 35 |
41
42
  | [`slider`](./slider.md) | filter | 7 |
42
43
  | [`table`](./table.md) | chart | 237 |
43
44
  | [`tree`](./tree.md) | chart | 60 |
44
- | [`treemap`](./treemap.md) | chart | 69 |
45
- | [`waterfall`](./waterfall.md) | chart | 56 |
46
- | [`word-cloud`](./word-cloud.md) | chart | 45 |
45
+ | [`treemap`](./treemap.md) | chart | 70 |
46
+ | [`waterfall`](./waterfall.md) | chart | 57 |
47
+ | [`word-cloud`](./word-cloud.md) | chart | 46 |