@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.
- package/CHANGELOG.md +30 -1
- package/README.md +148 -5
- package/THIRD_PARTY_NOTICES.md +494 -0
- package/VISUALIZATION_DEFINITIONS.md +9 -146
- package/chunks/{Button-Dn3rJrYf.js → Button-CQdoKSXX.js} +3 -3
- package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-DpT1lwWw.js} +20 -20
- package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
- package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-B7S0Q26A.js} +14 -14
- package/chunks/{MenuOption-Czc34u4q.js → MenuOption-DpKFJxmo.js} +167 -167
- package/chunks/{Title-BgYnaVTR.js → Title-m5damhc0.js} +37 -37
- package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-BA8_iU9q.js} +17 -17
- package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler--T4Qz3Wu.js} +8 -8
- package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-OFhxn2Go.js} +2 -2
- package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-hWZBYYvV.js} +71 -69
- package/chunks/{builder-C-TKA-My.js → builder-7w_bgV_h.js} +106 -55
- package/chunks/{coloring-BtnPiQ_o.js → coloring-Cd6p0GQJ.js} +93 -88
- package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-CiJT8s1s.js} +169 -169
- package/chunks/defaults-CMFqXvaJ.js +3 -0
- package/chunks/{definitions-CT304NDn.js → definitions-DTauTjIX.js} +399 -398
- package/chunks/{escobar-CvEV2ES1.js → escobar-CMvphKSK.js} +4949 -4879
- package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BpXttHFk.js} +449 -450
- package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-DOGFweJz.js} +10 -10
- package/chunks/{filtering-8_bFv-jb.js → filtering-NOnDcGbo.js} +241 -241
- package/chunks/handlers-CyYFSfhM.js +15393 -0
- package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-DuSERhBU.js} +8 -8
- package/chunks/{isEqual-D8Ay63xR.js → isEqual-4f8yUUtC.js} +1 -1
- package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-Czm70MGc.js} +9 -9
- package/chunks/line.compiler-B-4H55_T.js +203 -0
- package/chunks/linear-Bq_r9l5S.js +264 -0
- package/chunks/{logger-DdZpR7xZ.js → logger-Cioob-QV.js} +74 -73
- package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
- package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-Cv5V6EhF.js} +40 -40
- package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
- package/chunks/measure-format-default-B_kuGSzi.js +26 -0
- package/chunks/{metadata-BQm_TXI1.js → metadata-dGSe5UWy.js} +5 -5
- package/chunks/number.compiler-D7nMcEMv.js +57 -0
- package/chunks/{operations-DKQWuLL7.js → operations-CgfehCad.js} +11397 -11114
- package/chunks/{range-BdhzvYQ_.js → range-Dmwp9kVB.js} +2 -2
- package/chunks/{react-dom-BGP4tbXV.js → react-dom-CfuL-m78.js} +82 -82
- package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers--g-zPFBW.js} +1 -1
- package/chunks/{requirements-e8Fe96ag.js → requirements-DHayNJ2C.js} +245 -221
- package/chunks/{shared-C_2F90xq.js → shared-DoEN9nNM.js} +505 -494
- package/chunks/standalone-B3hRGgYi.js +773 -0
- package/chunks/{standalone-BkbiH-o8.js → standalone-BPNXgFft.js} +498 -759
- package/chunks/standalone-BPTT8XEu.js +424 -0
- package/chunks/standalone-BgAeHROc.js +2 -0
- package/chunks/{standalone-BE_ONgiG.js → standalone-BkQxag7M.js} +102 -102
- package/chunks/{standalone-Cc98Pdr6.js → standalone-Bxa3x6dg.js} +872 -872
- package/chunks/standalone-C0If-V6O.js +773 -0
- package/chunks/standalone-C1TOyflX.js +287 -0
- package/chunks/{standalone-CY_kjarf.js → standalone-CE5PwJN0.js} +18 -18
- package/chunks/{standalone-B8ZSqauS.js → standalone-CG7IFN6n.js} +120 -120
- package/chunks/{standalone-wOWRCpdn.js → standalone-CKlgGu80.js} +49 -49
- package/chunks/standalone-CNf-oA2U.js +355 -0
- package/chunks/{standalone-BDrXVxlP.js → standalone-CXPdWFlw.js} +14 -14
- package/chunks/{standalone-z0o52o5t.js → standalone-Cf0_5tbu.js} +5567 -5568
- package/chunks/{standalone-Cl0TSfqC.js → standalone-DMi4-Vp3.js} +122 -122
- package/chunks/{standalone-DNh9NcMa.js → standalone-DTEX67C8.js} +154 -154
- package/chunks/{standalone-DHRalbVO.js → standalone-DU46-kYv.js} +279 -279
- package/chunks/standalone-Dbn3jSH6.js +690 -0
- package/chunks/{standalone-CsoMmE9T.js → standalone-DdcAL_k_.js} +839 -843
- package/chunks/standalone-DwCIA0UG.js +1057 -0
- package/chunks/standalone-Dz13tl3P.js +357 -0
- package/chunks/standalone-H9GFzFk_.js +8377 -0
- package/chunks/{standalone-CaTxAydz.js → standalone-MduR0qre.js} +2227 -1000
- package/chunks/standalone-ejTz66P3.js +2 -0
- package/chunks/{standalone-DflyWtuR.js → standalone-keB-0wK3.js} +216 -216
- package/chunks/{standalone-BTY3w_JA.js → standalone-nnkuQd0K.js} +28 -28
- package/chunks/standalone-vGGR6Vcn.js +6 -0
- package/chunks/{table.compiler-COaHE9VD.js → table.compiler-mS4UvhLT.js} +31 -31
- package/chunks/theme-MYp6Rj1J.js +232 -0
- package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-AdSak4Ch.js} +1 -1
- package/chunks/{utils-DganVptf.js → utils-CUKgR7it.js} +4216 -4070
- package/chunks/{view-Bzlros43.js → view-BeYwpcVD.js} +1561 -1561
- package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-B9qik5_K.js} +2683 -2342
- package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-1GSeLT59.js} +3712 -3682
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +144 -32
- package/docs/operations/combo.md +79 -17
- package/docs/operations/date-picker.md +4 -4
- package/docs/operations/distribution-gauge.md +18 -16
- package/docs/operations/dot.md +107 -24
- package/docs/operations/filter.md +10 -8
- package/docs/operations/gauge.md +20 -18
- package/docs/operations/heatMap.md +73 -21
- package/docs/operations/histogram.md +45 -12
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +12 -11
- package/docs/operations/line.md +86 -24
- package/docs/operations/map.md +5274 -0
- package/docs/operations/number.md +10 -9
- package/docs/operations/pie.md +23 -21
- package/docs/operations/radar.md +13 -11
- package/docs/operations/sankey.md +19 -17
- package/docs/operations/scatter.md +111 -28
- package/docs/operations/shape.md +5 -5
- package/docs/operations/simpleTextObject.md +4 -4
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +27 -25
- package/docs/operations/tree.md +5 -3
- package/docs/operations/treemap.md +70 -18
- package/docs/operations/waterfall.md +40 -7
- package/docs/operations/word-cloud.md +69 -17
- package/getters.js +3 -3
- package/index.js +585 -612
- package/metadata.js +2 -2
- package/operations.js +25 -18
- package/package.json +74 -70
- package/src/definitions/index.d.ts +1 -7
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
- package/src/definitions/model/definitions/schema-registry.d.ts +15 -14
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +3 -3
- package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +19 -6
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +4 -3
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +1 -1
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +14 -14
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +11 -1
- package/src/types.d.ts +166 -1
- package/src/visualization-catalog.d.ts +3 -0
- package/styles.css +1 -1
- package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
- package/chunks/color-rules-DYJL4fIW.js +0 -15
- package/chunks/color-settings-DJFoFTip.js +0 -5
- package/chunks/defaults-Dtk7fg3C.js +0 -3
- package/chunks/handlers-C6CZ0XJA.js +0 -15399
- package/chunks/line.compiler-DmHpmQCC.js +0 -198
- package/chunks/number.compiler-DQdg6zTy.js +0 -53
- package/chunks/standalone-4MsKiqs0.js +0 -355
- package/chunks/standalone-B794g9pE.js +0 -1012
- package/chunks/standalone-BA2YXyJS.js +0 -422
- package/chunks/standalone-BgumbdaJ2.js +0 -357
- package/chunks/standalone-Blh4qejk.js +0 -689
- package/chunks/standalone-CXY4FpF7.js +0 -773
- package/chunks/standalone-DH0xTEes.js +0 -2
- package/chunks/standalone-DcnHjNnC.js +0 -2
- package/chunks/standalone-DrHdGkY7.js +0 -762
- package/chunks/standalone-c_rROMtx.js +0 -287
- package/chunks/standalone-drcFLeN6.js +0 -6
package/docs/operations/line.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `line` operations
|
|
4
4
|
|
|
5
|
-
Reference for `@astrato-io/visualizations@0.
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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"
|