@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
  # `line` 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
 
@@ -44,6 +44,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
44
44
  - [`resetChartPaletteToThemeDefault`](#resetchartpalettetothemedefault)
45
45
  - [`setAnimationEnabled`](#setanimationenabled)
46
46
  - [`setAxisLabelColor`](#setaxislabelcolor)
47
+ - [`setAxisLabelWrap`](#setaxislabelwrap)
47
48
  - [`setAxisLineColor`](#setaxislinecolor)
48
49
  - [`setAxisRangeMax`](#setaxisrangemax)
49
50
  - [`setAxisRangeMin`](#setaxisrangemin)
@@ -111,6 +112,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
111
112
  - [`setMeasureAdvancedWindowBegin`](#setmeasureadvancedwindowbegin)
112
113
  - [`setMeasureAdvancedWindowEnd`](#setmeasureadvancedwindowend)
113
114
  - [`setMeasureAxisBands`](#setmeasureaxisbands)
115
+ - [`setMeasureAxisLabelFormat`](#setmeasureaxislabelformat)
114
116
  - [`setMeasureCurrency`](#setmeasurecurrency)
115
117
  - [`setMeasureCurrencyIsPrefix`](#setmeasurecurrencyisprefix)
116
118
  - [`setMeasureDataLabelBackdropColor`](#setmeasuredatalabelbackdropcolor)
@@ -195,7 +197,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
195
197
  },
196
198
  "color": {
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
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
200
202
  },
201
203
  "operator": {
@@ -232,7 +234,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
232
234
  },
233
235
  "color": {
234
236
  "type": "string",
235
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
237
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
236
238
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
237
239
  },
238
240
  "operator": {
@@ -273,7 +275,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
273
275
  },
274
276
  "color": {
275
277
  "type": "string",
276
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
278
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
277
279
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
278
280
  },
279
281
  "operator": {
@@ -351,7 +353,7 @@ Add a shaded band on the dimension axis between two raw dimension values (inclus
351
353
  "color": {
352
354
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
353
355
  "type": "string",
354
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
356
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
355
357
  },
356
358
  "label": {
357
359
  "description": "Text drawn inside the band",
@@ -541,7 +543,7 @@ Add a shaded band on the primary measure axis between two measure values
541
543
  "color": {
542
544
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
543
545
  "type": "string",
544
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
546
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
545
547
  },
546
548
  "label": {
547
549
  "description": "Text drawn inside the band",
@@ -770,7 +772,7 @@ Add a reference line at a value on the x or y axis, with an optional label, colo
770
772
  "anyOf": [
771
773
  {
772
774
  "type": "string",
773
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
775
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
774
776
  },
775
777
  {
776
778
  "type": "null"
@@ -1617,7 +1619,7 @@ Change the color of axis value labels
1617
1619
  "anyOf": [
1618
1620
  {
1619
1621
  "type": "string",
1620
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1622
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1621
1623
  },
1622
1624
  {
1623
1625
  "type": "null"
@@ -1635,6 +1637,34 @@ Change the color of axis value labels
1635
1637
  }
1636
1638
  ```
1637
1639
 
1640
+ ## `setAxisLabelWrap`
1641
+
1642
+ Wrap axis labels
1643
+
1644
+ Wrap category axis labels onto up to labelWrapLines lines instead of tilting them
1645
+
1646
+ **Payload schema**
1647
+
1648
+ ```json
1649
+ {
1650
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1651
+ "type": "object",
1652
+ "properties": {
1653
+ "labelWrap": {
1654
+ "type": "boolean"
1655
+ },
1656
+ "labelWrapLines": {
1657
+ "type": "integer",
1658
+ "minimum": 1,
1659
+ "maximum": 10
1660
+ }
1661
+ },
1662
+ "required": ["labelWrap"],
1663
+ "additionalProperties": false,
1664
+ "title": "Set axis label wrap schema"
1665
+ }
1666
+ ```
1667
+
1638
1668
  ## `setAxisLineColor`
1639
1669
 
1640
1670
  Axis line color
@@ -1652,7 +1682,7 @@ Change the color of axis lines
1652
1682
  "anyOf": [
1653
1683
  {
1654
1684
  "type": "string",
1655
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1685
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1656
1686
  },
1657
1687
  {
1658
1688
  "type": "null"
@@ -1826,7 +1856,7 @@ Change the color of axis tick marks
1826
1856
  "anyOf": [
1827
1857
  {
1828
1858
  "type": "string",
1829
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1859
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1830
1860
  },
1831
1861
  {
1832
1862
  "type": "null"
@@ -1888,7 +1918,7 @@ Change the color of axis titles
1888
1918
  "anyOf": [
1889
1919
  {
1890
1920
  "type": "string",
1891
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
1921
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
1892
1922
  },
1893
1923
  {
1894
1924
  "type": "null"
@@ -1910,7 +1940,7 @@ Change the color of axis titles
1910
1940
 
1911
1941
  Chart palette
1912
1942
 
1913
- 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
1943
+ 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
1914
1944
 
1915
1945
  **Payload schema**
1916
1946
 
@@ -1935,7 +1965,7 @@ Set the single color used by the chart
1935
1965
  {
1936
1966
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1937
1967
  "type": "string",
1938
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
1968
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1939
1969
  "title": "Coloring color schema"
1940
1970
  }
1941
1971
  ```
@@ -1978,7 +2008,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
1978
2008
  },
1979
2009
  "color": {
1980
2010
  "type": "string",
1981
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2011
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
1982
2012
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
1983
2013
  },
1984
2014
  "operator": {
@@ -2024,7 +2054,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
2024
2054
  },
2025
2055
  "color": {
2026
2056
  "type": "string",
2027
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2057
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
2028
2058
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
2029
2059
  },
2030
2060
  "operator": {
@@ -2065,7 +2095,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
2065
2095
  },
2066
2096
  "color": {
2067
2097
  "type": "string",
2068
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
2098
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
2069
2099
  "description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
2070
2100
  },
2071
2101
  "operator": {
@@ -2211,7 +2241,7 @@ Replace the whole custom categorical palette with a provided list of colors and
2211
2241
  "type": "array",
2212
2242
  "items": {
2213
2243
  "type": "string",
2214
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2244
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2215
2245
  }
2216
2246
  }
2217
2247
  },
@@ -2267,7 +2297,7 @@ Replace all shaded bands on the dimension axis. Each band fills the plot between
2267
2297
  "color": {
2268
2298
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
2269
2299
  "type": "string",
2270
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2300
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2271
2301
  },
2272
2302
  "label": {
2273
2303
  "description": "Text drawn inside the band",
@@ -2373,6 +2403,7 @@ Set the display format type used by a dimension. This changes label formatting o
2373
2403
  "abbreviationNoDecimal",
2374
2404
  "abbreviation1Decimal",
2375
2405
  "abbreviation2Decimal",
2406
+ "abbreviationCompact",
2376
2407
  "percentageNoDecimal",
2377
2408
  "percentage1Decimal",
2378
2409
  "percentage2Decimal",
@@ -2729,7 +2760,7 @@ Change the color of legend text labels
2729
2760
  "anyOf": [
2730
2761
  {
2731
2762
  "type": "string",
2732
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
2763
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
2733
2764
  },
2734
2765
  {
2735
2766
  "type": "null"
@@ -4447,7 +4478,7 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
4447
4478
  "color": {
4448
4479
  "description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
4449
4480
  "type": "string",
4450
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
4481
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
4451
4482
  },
4452
4483
  "label": {
4453
4484
  "description": "Text drawn inside the band",
@@ -4466,6 +4497,36 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
4466
4497
  }
4467
4498
  ```
4468
4499
 
4500
+ ## `setMeasureAxisLabelFormat`
4501
+
4502
+ Measure axis label format
4503
+
4504
+ 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.
4505
+
4506
+ **Payload schema**
4507
+
4508
+ ```json
4509
+ {
4510
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4511
+ "type": "object",
4512
+ "properties": {
4513
+ "axisName": {
4514
+ "type": "string",
4515
+ "enum": ["primaryMeasure", "secondaryMeasure"],
4516
+ "description": "Measure axis to change"
4517
+ },
4518
+ "labelFormat": {
4519
+ "type": "string",
4520
+ "enum": ["compact", "value"],
4521
+ "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."
4522
+ }
4523
+ },
4524
+ "required": ["axisName", "labelFormat"],
4525
+ "additionalProperties": false,
4526
+ "title": "Measure axis label format schema"
4527
+ }
4528
+ ```
4529
+
4469
4530
  ## `setMeasureCurrency`
4470
4531
 
4471
4532
  Measure currency
@@ -4553,7 +4614,7 @@ Set the backdrop color behind measure data labels
4553
4614
  "anyOf": [
4554
4615
  {
4555
4616
  "type": "string",
4556
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
4617
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
4557
4618
  },
4558
4619
  {
4559
4620
  "type": "null"
@@ -4766,7 +4827,7 @@ Set the text color of data labels for a measure
4766
4827
  "anyOf": [
4767
4828
  {
4768
4829
  "type": "string",
4769
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
4830
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
4770
4831
  },
4771
4832
  {
4772
4833
  "type": "null"
@@ -5136,6 +5197,7 @@ Set the format type used by a measure
5136
5197
  "abbreviationNoDecimal",
5137
5198
  "abbreviation1Decimal",
5138
5199
  "abbreviation2Decimal",
5200
+ "abbreviationCompact",
5139
5201
  "percentageNoDecimal",
5140
5202
  "percentage1Decimal",
5141
5203
  "percentage2Decimal",
@@ -5240,7 +5302,7 @@ Set a color override for a measure
5240
5302
  },
5241
5303
  "graphColor": {
5242
5304
  "type": "string",
5243
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
5305
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
5244
5306
  }
5245
5307
  },
5246
5308
  "required": ["dataItemInternalKey", "dataItemUniqueSignature", "graphColor"],
@@ -6649,7 +6711,7 @@ Change the value, label, color or width of a reference line, or move it to the o
6649
6711
  "anyOf": [
6650
6712
  {
6651
6713
  "type": "string",
6652
- "pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
6714
+ "pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
6653
6715
  },
6654
6716
  {
6655
6717
  "type": "null"