@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
  # `dot` 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
 
@@ -50,6 +50,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
50
50
  - [`setColoringGradientField`](#setcoloringgradientfield)
51
51
  - [`setColoringGradientMax`](#setcoloringgradientmax)
52
52
  - [`setColoringGradientMin`](#setcoloringgradientmin)
53
+ - [`setColoringGradientRamp`](#setcoloringgradientramp)
53
54
  - [`setColoringMeasureAggregation`](#setcoloringmeasureaggregation)
54
55
  - [`setColoringOverwrites`](#setcoloringoverwrites)
55
56
  - [`setColoringPersistentColors`](#setcoloringpersistentcolors)
@@ -98,6 +99,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
98
99
  - [`setMeasureAdvancedStandardDeviations`](#setmeasureadvancedstandarddeviations)
99
100
  - [`setMeasureAdvancedWindowBegin`](#setmeasureadvancedwindowbegin)
100
101
  - [`setMeasureAdvancedWindowEnd`](#setmeasureadvancedwindowend)
102
+ - [`setMeasureAxisLabelFormat`](#setmeasureaxislabelformat)
101
103
  - [`setMeasureCurrency`](#setmeasurecurrency)
102
104
  - [`setMeasureCurrencyIsPrefix`](#setmeasurecurrencyisprefix)
103
105
  - [`setMeasureDefinedParameter`](#setmeasuredefinedparameter)
@@ -155,7 +157,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
155
157
  },
156
158
  "color": {
157
159
  "type": "string",
158
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
160
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
159
161
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
160
162
  },
161
163
  "operator": {
@@ -192,7 +194,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
192
194
  },
193
195
  "color": {
194
196
  "type": "string",
195
- "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]+)*)$",
196
198
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
197
199
  },
198
200
  "operator": {
@@ -233,7 +235,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
233
235
  },
234
236
  "color": {
235
237
  "type": "string",
236
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
238
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
237
239
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
238
240
  },
239
241
  "operator": {
@@ -296,7 +298,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
296
298
  },
297
299
  "color": {
298
300
  "type": "string",
299
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
301
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
300
302
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
301
303
  },
302
304
  "operator": {
@@ -333,7 +335,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
333
335
  },
334
336
  "color": {
335
337
  "type": "string",
336
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
338
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
337
339
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
338
340
  },
339
341
  "operator": {
@@ -374,7 +376,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
374
376
  },
375
377
  "color": {
376
378
  "type": "string",
377
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
379
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
378
380
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
379
381
  },
380
382
  "operator": {
@@ -797,7 +799,7 @@ Add a reference line at a value on the x or y axis, with an optional label, colo
797
799
  "anyOf": [
798
800
  {
799
801
  "type": "string",
800
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
802
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
801
803
  },
802
804
  {
803
805
  "type": "null"
@@ -1467,7 +1469,7 @@ Change the color of axis value labels
1467
1469
  "anyOf": [
1468
1470
  {
1469
1471
  "type": "string",
1470
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1472
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1471
1473
  },
1472
1474
  {
1473
1475
  "type": "null"
@@ -1502,7 +1504,7 @@ Change the color of axis lines
1502
1504
  "anyOf": [
1503
1505
  {
1504
1506
  "type": "string",
1505
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1507
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1506
1508
  },
1507
1509
  {
1508
1510
  "type": "null"
@@ -1646,7 +1648,7 @@ Change the color of axis tick marks
1646
1648
  "anyOf": [
1647
1649
  {
1648
1650
  "type": "string",
1649
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1651
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1650
1652
  },
1651
1653
  {
1652
1654
  "type": "null"
@@ -1708,7 +1710,7 @@ Change the color of axis titles
1708
1710
  "anyOf": [
1709
1711
  {
1710
1712
  "type": "string",
1711
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1713
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1712
1714
  },
1713
1715
  {
1714
1716
  "type": "null"
@@ -1730,7 +1732,7 @@ Change the color of axis titles
1730
1732
 
1731
1733
  Chart palette
1732
1734
 
1733
- 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
1735
+ 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
1734
1736
 
1735
1737
  **Payload schema**
1736
1738
 
@@ -1755,7 +1757,7 @@ Set the single color used by the chart
1755
1757
  {
1756
1758
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1757
1759
  "type": "string",
1758
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1760
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1759
1761
  "title": "Coloring color schema"
1760
1762
  }
1761
1763
  ```
@@ -1877,6 +1879,55 @@ Set the minimum value of the gradient domain using a number or variable. Applies
1877
1879
  }
1878
1880
  ```
1879
1881
 
1882
+ ## `setColoringGradientRamp`
1883
+
1884
+ Gradient ramp
1885
+
1886
+ 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
1887
+
1888
+ **Payload schema**
1889
+
1890
+ ```json
1891
+ {
1892
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1893
+ "type": "object",
1894
+ "properties": {
1895
+ "kind": {
1896
+ "description": "sequential runs from low to high; diverging runs away from the midpoint in both directions",
1897
+ "type": "string",
1898
+ "enum": ["sequential", "diverging"]
1899
+ },
1900
+ "midpoint": {
1901
+ "description": "Value a diverging gradient centers on, or \"auto\" for the middle of its limits. Defaults to 0",
1902
+ "anyOf": [
1903
+ {
1904
+ "type": "number"
1905
+ },
1906
+ {
1907
+ "type": "string",
1908
+ "const": "auto"
1909
+ }
1910
+ ]
1911
+ },
1912
+ "steps": {
1913
+ "description": "Number of solid bands to draw the gradient with. Null draws a continuous gradient",
1914
+ "anyOf": [
1915
+ {
1916
+ "type": "integer",
1917
+ "minimum": 2,
1918
+ "maximum": 12
1919
+ },
1920
+ {
1921
+ "type": "null"
1922
+ }
1923
+ ]
1924
+ }
1925
+ },
1926
+ "additionalProperties": false,
1927
+ "title": "Coloring gradient ramp schema"
1928
+ }
1929
+ ```
1930
+
1880
1931
  ## `setColoringMeasureAggregation`
1881
1932
 
1882
1933
  Coloring measure aggregation
@@ -1932,7 +1983,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1932
1983
  },
1933
1984
  "color": {
1934
1985
  "type": "string",
1935
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1986
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1936
1987
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1937
1988
  },
1938
1989
  "operator": {
@@ -1978,7 +2029,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1978
2029
  },
1979
2030
  "color": {
1980
2031
  "type": "string",
1981
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2032
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1982
2033
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1983
2034
  },
1984
2035
  "operator": {
@@ -2019,7 +2070,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
2019
2070
  },
2020
2071
  "color": {
2021
2072
  "type": "string",
2022
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2073
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
2023
2074
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
2024
2075
  },
2025
2076
  "operator": {
@@ -2110,7 +2161,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
2110
2161
  },
2111
2162
  "color": {
2112
2163
  "type": "string",
2113
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2164
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
2114
2165
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
2115
2166
  },
2116
2167
  "operator": {
@@ -2147,7 +2198,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
2147
2198
  },
2148
2199
  "color": {
2149
2200
  "type": "string",
2150
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2201
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
2151
2202
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
2152
2203
  },
2153
2204
  "operator": {
@@ -2188,7 +2239,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
2188
2239
  },
2189
2240
  "color": {
2190
2241
  "type": "string",
2191
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2242
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
2192
2243
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
2193
2244
  },
2194
2245
  "operator": {
@@ -2276,7 +2327,7 @@ Replace the whole custom gradient with a provided list of colors
2276
2327
  "type": "array",
2277
2328
  "items": {
2278
2329
  "type": "string",
2279
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2330
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2280
2331
  }
2281
2332
  }
2282
2333
  },
@@ -2304,7 +2355,7 @@ Replace the whole custom categorical palette with a provided list of colors and
2304
2355
  "type": "array",
2305
2356
  "items": {
2306
2357
  "type": "string",
2307
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2358
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2308
2359
  }
2309
2360
  }
2310
2361
  },
@@ -2401,6 +2452,7 @@ Set the display format type used by a dimension. This changes label formatting o
2401
2452
  "abbreviationNoDecimal",
2402
2453
  "abbreviation1Decimal",
2403
2454
  "abbreviation2Decimal",
2455
+ "abbreviationCompact",
2404
2456
  "percentageNoDecimal",
2405
2457
  "percentage1Decimal",
2406
2458
  "percentage2Decimal",
@@ -2670,7 +2722,7 @@ Change the color of legend text labels
2670
2722
  "anyOf": [
2671
2723
  {
2672
2724
  "type": "string",
2673
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2725
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2674
2726
  },
2675
2727
  {
2676
2728
  "type": "null"
@@ -4325,6 +4377,36 @@ Set periods after for moving calculation
4325
4377
  }
4326
4378
  ```
4327
4379
 
4380
+ ## `setMeasureAxisLabelFormat`
4381
+
4382
+ Measure axis label format
4383
+
4384
+ 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.
4385
+
4386
+ **Payload schema**
4387
+
4388
+ ```json
4389
+ {
4390
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4391
+ "type": "object",
4392
+ "properties": {
4393
+ "axisName": {
4394
+ "type": "string",
4395
+ "enum": ["primaryMeasure"],
4396
+ "description": "Measure axis to change"
4397
+ },
4398
+ "labelFormat": {
4399
+ "type": "string",
4400
+ "enum": ["compact", "value"],
4401
+ "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."
4402
+ }
4403
+ },
4404
+ "required": ["axisName", "labelFormat"],
4405
+ "additionalProperties": false,
4406
+ "title": "Measure axis label format schema"
4407
+ }
4408
+ ```
4409
+
4328
4410
  ## `setMeasureCurrency`
4329
4411
 
4330
4412
  Measure currency
@@ -4743,6 +4825,7 @@ Set the format type used by a measure
4743
4825
  "abbreviationNoDecimal",
4744
4826
  "abbreviation1Decimal",
4745
4827
  "abbreviation2Decimal",
4828
+ "abbreviationCompact",
4746
4829
  "percentageNoDecimal",
4747
4830
  "percentage1Decimal",
4748
4831
  "percentage2Decimal",
@@ -5696,7 +5779,7 @@ Change the value, label, color or width of a reference line, or move it to the o
5696
5779
  "anyOf": [
5697
5780
  {
5698
5781
  "type": "string",
5699
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
5782
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
5700
5783
  },
5701
5784
  {
5702
5785
  "type": "null"
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `filter` 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
 
@@ -317,6 +317,7 @@ Set the display format type used by a dimension. This changes label formatting o
317
317
  "abbreviationNoDecimal",
318
318
  "abbreviation1Decimal",
319
319
  "abbreviation2Decimal",
320
+ "abbreviationCompact",
320
321
  "percentageNoDecimal",
321
322
  "percentage1Decimal",
322
323
  "percentage2Decimal",
@@ -519,13 +520,13 @@ Set the filter background color
519
520
  "anyOf": [
520
521
  {
521
522
  "type": "string",
522
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
523
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
523
524
  },
524
525
  {
525
526
  "type": "null"
526
527
  }
527
528
  ],
528
- "description": "Background color (hex, with optional alpha)",
529
+ "description": "Background color (hex with optional alpha, or a theme color reference such as theme:primary)",
529
530
  "title": "Filter background color schema"
530
531
  }
531
532
  ```
@@ -544,7 +545,7 @@ Set the filter border color
544
545
  "description": "Border color",
545
546
  "title": "Filter border color schema",
546
547
  "type": "string",
547
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
548
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
548
549
  }
549
550
  ```
550
551
 
@@ -661,13 +662,13 @@ Update filter font family, size, color, or style
661
662
  "anyOf": [
662
663
  {
663
664
  "type": "string",
664
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
665
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
665
666
  },
666
667
  {
667
668
  "type": "null"
668
669
  }
669
670
  ],
670
- "description": "Font color (hex, with optional alpha)"
671
+ "description": "Font color (hex with optional alpha, or a theme color reference such as theme:primary)"
671
672
  }
672
673
  },
673
674
  "additionalProperties": false,
@@ -734,10 +735,10 @@ Set the filter progress bar color
734
735
  ```json
735
736
  {
736
737
  "$schema": "https://json-schema.org/draft/2020-12/schema",
737
- "description": "Progress bar color (hex, with optional alpha)",
738
+ "description": "Progress bar color (hex with optional alpha, or a theme color reference such as theme:primary)",
738
739
  "title": "Filter progress bar color schema",
739
740
  "type": "string",
740
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
741
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
741
742
  }
742
743
  ```
743
744
 
@@ -1077,6 +1078,7 @@ Set the format type used by a measure
1077
1078
  "abbreviationNoDecimal",
1078
1079
  "abbreviation1Decimal",
1079
1080
  "abbreviation2Decimal",
1081
+ "abbreviationCompact",
1080
1082
  "percentageNoDecimal",
1081
1083
  "percentage1Decimal",
1082
1084
  "percentage2Decimal",
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `gauge` 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
 
@@ -104,7 +104,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
104
104
  },
105
105
  "color": {
106
106
  "type": "string",
107
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
107
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
108
108
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
109
109
  },
110
110
  "operator": {
@@ -141,7 +141,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
141
141
  },
142
142
  "color": {
143
143
  "type": "string",
144
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
144
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
145
145
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
146
146
  },
147
147
  "operator": {
@@ -182,7 +182,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
182
182
  },
183
183
  "color": {
184
184
  "type": "string",
185
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
185
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
186
186
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
187
187
  },
188
188
  "operator": {
@@ -245,7 +245,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
245
245
  },
246
246
  "color": {
247
247
  "type": "string",
248
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
248
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
249
249
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
250
250
  },
251
251
  "operator": {
@@ -282,7 +282,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
282
282
  },
283
283
  "color": {
284
284
  "type": "string",
285
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
285
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
286
286
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
287
287
  },
288
288
  "operator": {
@@ -323,7 +323,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
323
323
  },
324
324
  "color": {
325
325
  "type": "string",
326
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
326
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
327
327
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
328
328
  },
329
329
  "operator": {
@@ -1137,7 +1137,7 @@ Turn the chart animations on or off. They are on by default; the host can still
1137
1137
 
1138
1138
  Chart palette
1139
1139
 
1140
- 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
1140
+ 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
1141
1141
 
1142
1142
  **Payload schema**
1143
1143
 
@@ -1162,7 +1162,7 @@ Set the single color used by the chart
1162
1162
  {
1163
1163
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1164
1164
  "type": "string",
1165
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1165
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1166
1166
  "title": "Coloring color schema"
1167
1167
  }
1168
1168
  ```
@@ -1205,7 +1205,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1205
1205
  },
1206
1206
  "color": {
1207
1207
  "type": "string",
1208
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1208
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1209
1209
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1210
1210
  },
1211
1211
  "operator": {
@@ -1251,7 +1251,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1251
1251
  },
1252
1252
  "color": {
1253
1253
  "type": "string",
1254
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1254
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1255
1255
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1256
1256
  },
1257
1257
  "operator": {
@@ -1292,7 +1292,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1292
1292
  },
1293
1293
  "color": {
1294
1294
  "type": "string",
1295
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1295
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1296
1296
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1297
1297
  },
1298
1298
  "operator": {
@@ -1383,7 +1383,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
1383
1383
  },
1384
1384
  "color": {
1385
1385
  "type": "string",
1386
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1386
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1387
1387
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1388
1388
  },
1389
1389
  "operator": {
@@ -1420,7 +1420,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
1420
1420
  },
1421
1421
  "color": {
1422
1422
  "type": "string",
1423
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1423
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1424
1424
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1425
1425
  },
1426
1426
  "operator": {
@@ -1461,7 +1461,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
1461
1461
  },
1462
1462
  "color": {
1463
1463
  "type": "string",
1464
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1464
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1465
1465
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1466
1466
  },
1467
1467
  "operator": {
@@ -1549,7 +1549,7 @@ Replace the whole custom categorical palette with a provided list of colors and
1549
1549
  "type": "array",
1550
1550
  "items": {
1551
1551
  "type": "string",
1552
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1552
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1553
1553
  }
1554
1554
  }
1555
1555
  },
@@ -1646,6 +1646,7 @@ Set the display format type used by a dimension. This changes label formatting o
1646
1646
  "abbreviationNoDecimal",
1647
1647
  "abbreviation1Decimal",
1648
1648
  "abbreviation2Decimal",
1649
+ "abbreviationCompact",
1649
1650
  "percentageNoDecimal",
1650
1651
  "percentage1Decimal",
1651
1652
  "percentage2Decimal",
@@ -1983,7 +1984,7 @@ Change the color of legend text labels
1983
1984
  "anyOf": [
1984
1985
  {
1985
1986
  "type": "string",
1986
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1987
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1987
1988
  },
1988
1989
  {
1989
1990
  "type": "null"
@@ -2497,6 +2498,7 @@ Set the format type used by a measure
2497
2498
  "abbreviationNoDecimal",
2498
2499
  "abbreviation1Decimal",
2499
2500
  "abbreviation2Decimal",
2501
+ "abbreviationCompact",
2500
2502
  "percentageNoDecimal",
2501
2503
  "percentage1Decimal",
2502
2504
  "percentage2Decimal",
@@ -2601,7 +2603,7 @@ Set a color override for a measure
2601
2603
  },
2602
2604
  "graphColor": {
2603
2605
  "type": "string",
2604
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2606
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2605
2607
  }
2606
2608
  },
2607
2609
  "required": ["dataItemInternalKey", "dataItemUniqueSignature", "graphColor"],