@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
  # `combo` 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
 
@@ -42,6 +42,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
42
42
  - [`resetChartPaletteToThemeDefault`](#resetchartpalettetothemedefault)
43
43
  - [`setAnimationEnabled`](#setanimationenabled)
44
44
  - [`setAxisLabelColor`](#setaxislabelcolor)
45
+ - [`setAxisLabelWrap`](#setaxislabelwrap)
45
46
  - [`setAxisLineColor`](#setaxislinecolor)
46
47
  - [`setAxisRangeMax`](#setaxisrangemax)
47
48
  - [`setAxisRangeMin`](#setaxisrangemin)
@@ -102,6 +103,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
102
103
  - [`setMeasureAdvancedWindowBegin`](#setmeasureadvancedwindowbegin)
103
104
  - [`setMeasureAdvancedWindowEnd`](#setmeasureadvancedwindowend)
104
105
  - [`setMeasureAxisBands`](#setmeasureaxisbands)
106
+ - [`setMeasureAxisLabelFormat`](#setmeasureaxislabelformat)
105
107
  - [`setMeasureCurrency`](#setmeasurecurrency)
106
108
  - [`setMeasureCurrencyIsPrefix`](#setmeasurecurrencyisprefix)
107
109
  - [`setMeasureDataLabelBackdropColor`](#setmeasuredatalabelbackdropcolor)
@@ -195,7 +197,7 @@ Add a shaded band on the dimension axis between two raw dimension values (inclus
195
197
  "color": {
196
198
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
197
199
  "type": "string",
198
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
200
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
199
201
  },
200
202
  "label": {
201
203
  "description": "Text drawn inside the band",
@@ -385,7 +387,7 @@ Add a shaded band on the primary measure axis between two measure values
385
387
  "color": {
386
388
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
387
389
  "type": "string",
388
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
390
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
389
391
  },
390
392
  "label": {
391
393
  "description": "Text drawn inside the band",
@@ -614,7 +616,7 @@ Add a reference line at a value on the x or y axis, with an optional label, colo
614
616
  "anyOf": [
615
617
  {
616
618
  "type": "string",
617
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
619
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
618
620
  },
619
621
  {
620
622
  "type": "null"
@@ -1435,7 +1437,7 @@ Change the color of axis value labels
1435
1437
  "anyOf": [
1436
1438
  {
1437
1439
  "type": "string",
1438
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1440
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1439
1441
  },
1440
1442
  {
1441
1443
  "type": "null"
@@ -1453,6 +1455,34 @@ Change the color of axis value labels
1453
1455
  }
1454
1456
  ```
1455
1457
 
1458
+ ## `setAxisLabelWrap`
1459
+
1460
+ Wrap axis labels
1461
+
1462
+ Wrap category axis labels onto up to labelWrapLines lines instead of tilting them
1463
+
1464
+ **Payload schema**
1465
+
1466
+ ```json
1467
+ {
1468
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1469
+ "type": "object",
1470
+ "properties": {
1471
+ "labelWrap": {
1472
+ "type": "boolean"
1473
+ },
1474
+ "labelWrapLines": {
1475
+ "type": "integer",
1476
+ "minimum": 1,
1477
+ "maximum": 10
1478
+ }
1479
+ },
1480
+ "required": ["labelWrap"],
1481
+ "additionalProperties": false,
1482
+ "title": "Set axis label wrap schema"
1483
+ }
1484
+ ```
1485
+
1456
1486
  ## `setAxisLineColor`
1457
1487
 
1458
1488
  Axis line color
@@ -1470,7 +1500,7 @@ Change the color of axis lines
1470
1500
  "anyOf": [
1471
1501
  {
1472
1502
  "type": "string",
1473
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1503
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1474
1504
  },
1475
1505
  {
1476
1506
  "type": "null"
@@ -1644,7 +1674,7 @@ Change the color of axis tick marks
1644
1674
  "anyOf": [
1645
1675
  {
1646
1676
  "type": "string",
1647
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1677
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1648
1678
  },
1649
1679
  {
1650
1680
  "type": "null"
@@ -1706,7 +1736,7 @@ Change the color of axis titles
1706
1736
  "anyOf": [
1707
1737
  {
1708
1738
  "type": "string",
1709
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1739
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1710
1740
  },
1711
1741
  {
1712
1742
  "type": "null"
@@ -1728,7 +1758,7 @@ Change the color of axis titles
1728
1758
 
1729
1759
  Chart palette
1730
1760
 
1731
- 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
1761
+ 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
1732
1762
 
1733
1763
  **Payload schema**
1734
1764
 
@@ -1753,7 +1783,7 @@ Set the single color used by the chart
1753
1783
  {
1754
1784
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1755
1785
  "type": "string",
1756
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1786
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1757
1787
  "title": "Coloring color schema"
1758
1788
  }
1759
1789
  ```
@@ -1866,7 +1896,7 @@ Replace the whole custom categorical palette with a provided list of colors and
1866
1896
  "type": "array",
1867
1897
  "items": {
1868
1898
  "type": "string",
1869
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1899
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1870
1900
  }
1871
1901
  }
1872
1902
  },
@@ -1905,7 +1935,7 @@ Replace all shaded bands on the dimension axis. Each band fills the plot between
1905
1935
  "color": {
1906
1936
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
1907
1937
  "type": "string",
1908
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1938
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1909
1939
  },
1910
1940
  "label": {
1911
1941
  "description": "Text drawn inside the band",
@@ -2011,6 +2041,7 @@ Set the display format type used by a dimension. This changes label formatting o
2011
2041
  "abbreviationNoDecimal",
2012
2042
  "abbreviation1Decimal",
2013
2043
  "abbreviation2Decimal",
2044
+ "abbreviationCompact",
2014
2045
  "percentageNoDecimal",
2015
2046
  "percentage1Decimal",
2016
2047
  "percentage2Decimal",
@@ -2334,7 +2365,7 @@ Change the color of legend text labels
2334
2365
  "anyOf": [
2335
2366
  {
2336
2367
  "type": "string",
2337
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2368
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2338
2369
  },
2339
2370
  {
2340
2371
  "type": "null"
@@ -4018,7 +4049,7 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
4018
4049
  "color": {
4019
4050
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
4020
4051
  "type": "string",
4021
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
4052
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
4022
4053
  },
4023
4054
  "label": {
4024
4055
  "description": "Text drawn inside the band",
@@ -4037,6 +4068,36 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
4037
4068
  }
4038
4069
  ```
4039
4070
 
4071
+ ## `setMeasureAxisLabelFormat`
4072
+
4073
+ Measure axis label format
4074
+
4075
+ 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.
4076
+
4077
+ **Payload schema**
4078
+
4079
+ ```json
4080
+ {
4081
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4082
+ "type": "object",
4083
+ "properties": {
4084
+ "axisName": {
4085
+ "type": "string",
4086
+ "enum": ["primaryMeasure", "secondaryMeasure"],
4087
+ "description": "Measure axis to change"
4088
+ },
4089
+ "labelFormat": {
4090
+ "type": "string",
4091
+ "enum": ["compact", "value"],
4092
+ "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."
4093
+ }
4094
+ },
4095
+ "required": ["axisName", "labelFormat"],
4096
+ "additionalProperties": false,
4097
+ "title": "Measure axis label format schema"
4098
+ }
4099
+ ```
4100
+
4040
4101
  ## `setMeasureCurrency`
4041
4102
 
4042
4103
  Measure currency
@@ -4124,7 +4185,7 @@ Set the backdrop color behind measure data labels
4124
4185
  "anyOf": [
4125
4186
  {
4126
4187
  "type": "string",
4127
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
4188
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
4128
4189
  },
4129
4190
  {
4130
4191
  "type": "null"
@@ -4605,6 +4666,7 @@ Set the format type used by a measure
4605
4666
  "abbreviationNoDecimal",
4606
4667
  "abbreviation1Decimal",
4607
4668
  "abbreviation2Decimal",
4669
+ "abbreviationCompact",
4608
4670
  "percentageNoDecimal",
4609
4671
  "percentage1Decimal",
4610
4672
  "percentage2Decimal",
@@ -4709,7 +4771,7 @@ Set a color override for a measure
4709
4771
  },
4710
4772
  "graphColor": {
4711
4773
  "type": "string",
4712
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
4774
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
4713
4775
  }
4714
4776
  },
4715
4777
  "required": ["dataItemInternalKey", "dataItemUniqueSignature", "graphColor"],
@@ -6044,7 +6106,7 @@ Change the value, label, color or width of a reference line, or move it to the o
6044
6106
  "anyOf": [
6045
6107
  {
6046
6108
  "type": "string",
6047
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
6109
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
6048
6110
  },
6049
6111
  {
6050
6112
  "type": "null"
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `date-picker` 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
 
@@ -93,7 +93,7 @@ Set the date picker background color
93
93
  "anyOf": [
94
94
  {
95
95
  "type": "string",
96
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
96
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
97
97
  },
98
98
  {
99
99
  "type": "null"
@@ -189,7 +189,7 @@ Set the date picker hover color
189
189
  "anyOf": [
190
190
  {
191
191
  "type": "string",
192
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
192
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
193
193
  },
194
194
  {
195
195
  "type": "null"
@@ -245,7 +245,7 @@ Set the date picker selected date color
245
245
  "anyOf": [
246
246
  {
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
  },
250
250
  {
251
251
  "type": "null"
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `distribution-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
 
@@ -94,7 +94,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
94
94
  },
95
95
  "color": {
96
96
  "type": "string",
97
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
97
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
98
98
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
99
99
  },
100
100
  "operator": {
@@ -131,7 +131,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
131
131
  },
132
132
  "color": {
133
133
  "type": "string",
134
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
134
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
135
135
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
136
136
  },
137
137
  "operator": {
@@ -172,7 +172,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
172
172
  },
173
173
  "color": {
174
174
  "type": "string",
175
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
175
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
176
176
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
177
177
  },
178
178
  "operator": {
@@ -235,7 +235,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
235
235
  },
236
236
  "color": {
237
237
  "type": "string",
238
- "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]+)*)$",
239
239
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
240
240
  },
241
241
  "operator": {
@@ -272,7 +272,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
272
272
  },
273
273
  "color": {
274
274
  "type": "string",
275
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
275
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
276
276
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
277
277
  },
278
278
  "operator": {
@@ -313,7 +313,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
313
313
  },
314
314
  "color": {
315
315
  "type": "string",
316
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
316
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
317
317
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
318
318
  },
319
319
  "operator": {
@@ -1099,7 +1099,7 @@ Turn the chart animations on or off. They are on by default; the host can still
1099
1099
 
1100
1100
  Chart palette
1101
1101
 
1102
- 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
1102
+ 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
1103
1103
 
1104
1104
  **Payload schema**
1105
1105
 
@@ -1150,7 +1150,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1150
1150
  },
1151
1151
  "color": {
1152
1152
  "type": "string",
1153
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1153
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1154
1154
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1155
1155
  },
1156
1156
  "operator": {
@@ -1196,7 +1196,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1196
1196
  },
1197
1197
  "color": {
1198
1198
  "type": "string",
1199
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1199
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1200
1200
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1201
1201
  },
1202
1202
  "operator": {
@@ -1237,7 +1237,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1237
1237
  },
1238
1238
  "color": {
1239
1239
  "type": "string",
1240
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1240
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1241
1241
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1242
1242
  },
1243
1243
  "operator": {
@@ -1311,7 +1311,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
1311
1311
  },
1312
1312
  "color": {
1313
1313
  "type": "string",
1314
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1314
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1315
1315
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1316
1316
  },
1317
1317
  "operator": {
@@ -1348,7 +1348,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
1348
1348
  },
1349
1349
  "color": {
1350
1350
  "type": "string",
1351
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1351
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1352
1352
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1353
1353
  },
1354
1354
  "operator": {
@@ -1389,7 +1389,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
1389
1389
  },
1390
1390
  "color": {
1391
1391
  "type": "string",
1392
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1392
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1393
1393
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1394
1394
  },
1395
1395
  "operator": {
@@ -1460,7 +1460,7 @@ Replace the whole custom categorical palette with a provided list of colors and
1460
1460
  "type": "array",
1461
1461
  "items": {
1462
1462
  "type": "string",
1463
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1463
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1464
1464
  }
1465
1465
  }
1466
1466
  },
@@ -1557,6 +1557,7 @@ Set the display format type used by a dimension. This changes label formatting o
1557
1557
  "abbreviationNoDecimal",
1558
1558
  "abbreviation1Decimal",
1559
1559
  "abbreviation2Decimal",
1560
+ "abbreviationCompact",
1560
1561
  "percentageNoDecimal",
1561
1562
  "percentage1Decimal",
1562
1563
  "percentage2Decimal",
@@ -1808,7 +1809,7 @@ Change the color of legend text labels
1808
1809
  "anyOf": [
1809
1810
  {
1810
1811
  "type": "string",
1811
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1812
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1812
1813
  },
1813
1814
  {
1814
1815
  "type": "null"
@@ -2322,6 +2323,7 @@ Set the format type used by a measure
2322
2323
  "abbreviationNoDecimal",
2323
2324
  "abbreviation1Decimal",
2324
2325
  "abbreviation2Decimal",
2326
+ "abbreviationCompact",
2325
2327
  "percentageNoDecimal",
2326
2328
  "percentage1Decimal",
2327
2329
  "percentage2Decimal",