@astrato-io/visualizations 0.11.0 → 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 +19 -0
- package/README.md +129 -4
- package/VISUALIZATION_DEFINITIONS.md +3 -1
- package/chunks/{Button-CPG4WX8X.js → Button-CQdoKSXX.js} +3 -3
- package/chunks/{CircularProgress-PSLW8HmD.js → CircularProgress-DpT1lwWw.js} +18 -18
- package/chunks/FieldTypeIcon-Cg4F9Q5D.js +22 -0
- package/chunks/{LinearProgress-KQ2EQlGL.js → LinearProgress-B7S0Q26A.js} +8 -8
- package/chunks/{MenuOption-B-6K7kks.js → MenuOption-DpKFJxmo.js} +133 -133
- package/chunks/{Title-BmvwZYkh.js → Title-m5damhc0.js} +10 -10
- package/chunks/{_createAggregator-CFmH6gUN.js → _createAggregator-BA8_iU9q.js} +7 -7
- package/chunks/{app-filter-bar.compiler-BY5-T16I.js → app-filter-bar.compiler--T4Qz3Wu.js} +3 -3
- package/chunks/{bar-layout-BNou0dZF.js → bar-layout-OFhxn2Go.js} +2 -2
- package/chunks/{bar.compiler-BkhO7sDd.js → bar.compiler-hWZBYYvV.js} +62 -62
- package/chunks/{builder-CNjuqD2z.js → builder-7w_bgV_h.js} +31 -31
- package/chunks/{coloring-BOiP0rmn.js → coloring-Cd6p0GQJ.js} +88 -83
- package/chunks/{createSimplePaletteValueFilter-BkgQ7MFE.js → createSimplePaletteValueFilter-CiJT8s1s.js} +55 -55
- package/chunks/defaults-CMFqXvaJ.js +3 -0
- package/chunks/{definitions-AS9GcavE.js → definitions-DTauTjIX.js} +412 -406
- package/chunks/{escobar-cQ1eQ64G.js → escobar-CMvphKSK.js} +4787 -4717
- package/chunks/{extend-preset-BlCbcXKR.js → extend-preset-BpXttHFk.js} +371 -372
- package/chunks/{filter.compiler-CI7dDNM1.js → filter.compiler-DOGFweJz.js} +4 -4
- package/chunks/{filtering-Dwi7hDPZ.js → filtering-NOnDcGbo.js} +183 -183
- package/chunks/handlers-CyYFSfhM.js +15393 -0
- package/chunks/{icon-picker-styles-CBlxEu3s.js → icon-picker-styles-DuSERhBU.js} +2 -2
- package/chunks/{isEqual-BdHo6wqq.js → isEqual-4f8yUUtC.js} +1 -1
- package/chunks/{isFocusVisible-C1nlVUwL.js → isFocusVisible-Czm70MGc.js} +1 -1
- package/chunks/line.compiler-B-4H55_T.js +203 -0
- package/chunks/{logger-Bc-DqDM_.js → logger-Cioob-QV.js} +71 -70
- package/chunks/{map.compiler-CRO6XpdI.js → map.compiler-Cv5V6EhF.js} +13 -13
- package/chunks/measure-axis-label-format-COy8U_dd.js +27 -0
- package/chunks/{measure-format-default-B6ghxih7.js → measure-format-default-B_kuGSzi.js} +7 -3
- package/chunks/{metadata-CtkvZEhS.js → metadata-dGSe5UWy.js} +5 -5
- package/chunks/{number.compiler-kV4lobCZ.js → number.compiler-D7nMcEMv.js} +8 -8
- package/chunks/{operations-COl9wgqi.js → operations-CgfehCad.js} +11462 -11223
- package/chunks/{range-CMJ5yc5Z.js → range-Dmwp9kVB.js} +2 -2
- package/chunks/{react-dom-BjsCbYHq.js → react-dom-CfuL-m78.js} +24 -24
- package/chunks/{render-wrappers-DFHi3Wkr.js → render-wrappers--g-zPFBW.js} +1 -1
- package/chunks/{requirements-C5YLmHKe.js → requirements-DHayNJ2C.js} +83 -83
- package/chunks/{shared-DyqxOie0.js → shared-DoEN9nNM.js} +282 -277
- package/chunks/standalone-B3hRGgYi.js +773 -0
- package/chunks/{standalone-BYK2U0Vd.js → standalone-BPNXgFft.js} +380 -380
- package/chunks/standalone-BPTT8XEu.js +424 -0
- package/chunks/standalone-BgAeHROc.js +2 -0
- package/chunks/{standalone-I5kRIsp8.js → standalone-BkQxag7M.js} +81 -81
- package/chunks/{standalone-DYVYccmY.js → standalone-Bxa3x6dg.js} +913 -913
- package/chunks/standalone-C0If-V6O.js +773 -0
- package/chunks/standalone-C1TOyflX.js +287 -0
- package/chunks/{standalone-DaNxWIKn.js → standalone-CE5PwJN0.js} +21 -21
- package/chunks/{standalone-K2OvRAQM.js → standalone-CG7IFN6n.js} +121 -121
- package/chunks/{standalone-Db_HNuWx.js → standalone-CKlgGu80.js} +44 -44
- package/chunks/standalone-CNf-oA2U.js +355 -0
- package/chunks/{standalone-9jrQ3zJT.js → standalone-CXPdWFlw.js} +10 -10
- package/chunks/{standalone-c4CPN6ug.js → standalone-Cf0_5tbu.js} +5783 -5785
- package/chunks/{standalone-Bp4G3MDx.js → standalone-DMi4-Vp3.js} +118 -118
- package/chunks/{standalone-BrjtMIdd.js → standalone-DTEX67C8.js} +108 -108
- package/chunks/{standalone-iOnJhCvA.js → standalone-DU46-kYv.js} +181 -181
- package/chunks/standalone-Dbn3jSH6.js +690 -0
- package/chunks/{standalone-CS5VGoja.js → standalone-DdcAL_k_.js} +833 -837
- package/chunks/standalone-DwCIA0UG.js +1057 -0
- package/chunks/standalone-Dz13tl3P.js +357 -0
- package/chunks/{standalone-CIjNYyya.js → standalone-H9GFzFk_.js} +937 -938
- package/chunks/{standalone-ChfEHb28.js → standalone-MduR0qre.js} +1279 -1279
- package/chunks/standalone-ejTz66P3.js +2 -0
- package/chunks/{standalone-D9k5SCd8.js → standalone-keB-0wK3.js} +189 -189
- package/chunks/{standalone-Bsfz5vnJ.js → standalone-nnkuQd0K.js} +35 -35
- package/chunks/standalone-vGGR6Vcn.js +6 -0
- package/chunks/{table.compiler-CMH_dtYs.js → table.compiler-mS4UvhLT.js} +12 -12
- package/chunks/theme-MYp6Rj1J.js +232 -0
- package/chunks/{useFieldName-BfxBzhhH.js → useFieldName-AdSak4Ch.js} +1 -1
- package/chunks/{utils-BdJrEeIQ.js → utils-CUKgR7it.js} +3265 -3133
- package/chunks/{view-Q-_XIrWE.js → view-BeYwpcVD.js} +478 -478
- package/chunks/{visualization-filters-BwS0xUqs.js → visualization-filters-B9qik5_K.js} +2706 -2384
- package/chunks/{with-html-element-D_ooGNWI.js → with-html-element-1GSeLT59.js} +3888 -3870
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +115 -32
- package/docs/operations/combo.md +50 -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 +11 -11
- package/docs/operations/line.md +57 -24
- package/docs/operations/map.md +16 -16
- 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 +2 -2
- package/index.js +474 -525
- package/metadata.js +2 -2
- package/operations.js +24 -17
- package/package.json +71 -72
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +13 -12
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -2
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +5 -4
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +3 -2
- 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/chunks/FieldTypeIcon-5k2bkqd0.js +0 -22
- package/chunks/category-axis-D1OVyMrr.js +0 -20
- package/chunks/color-rules-DYJL4fIW.js +0 -15
- package/chunks/color-settings-DJFoFTip.js +0 -5
- package/chunks/defaults-B5_8S-J-.js +0 -3
- package/chunks/handlers-C63NVo7i.js +0 -15433
- package/chunks/line.compiler-DCv3h42f.js +0 -198
- package/chunks/standalone-06i1wmIX.js +0 -6
- package/chunks/standalone-B6zUvxNQ.js +0 -357
- package/chunks/standalone-Be5APcVv.js +0 -762
- package/chunks/standalone-BuXpKMnc.js +0 -2
- package/chunks/standalone-CUGt2FUF.js +0 -2
- package/chunks/standalone-CnF2OYLQ.js +0 -355
- package/chunks/standalone-CznEEiq3.js +0 -422
- package/chunks/standalone-DcuE8KBa.js +0 -287
- package/chunks/standalone-pCrzBiTy.js +0 -773
- package/chunks/standalone-qrZaimgC.js +0 -689
- package/chunks/standalone-yqDJ8h3K.js +0 -1012
package/docs/operations/gauge.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `gauge` 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
|
|
|
@@ -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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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"],
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `heatMap` 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
|
|
|
@@ -47,6 +47,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
47
47
|
- [`setColoringGradientAuto`](#setcoloringgradientauto)
|
|
48
48
|
- [`setColoringGradientMax`](#setcoloringgradientmax)
|
|
49
49
|
- [`setColoringGradientMin`](#setcoloringgradientmin)
|
|
50
|
+
- [`setColoringGradientRamp`](#setcoloringgradientramp)
|
|
50
51
|
- [`setColoringOverwrites`](#setcoloringoverwrites)
|
|
51
52
|
- [`setColoringRules`](#setcoloringrules)
|
|
52
53
|
- [`setColoringType`](#setcoloringtype)
|
|
@@ -164,7 +165,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
|
|
|
164
165
|
},
|
|
165
166
|
"color": {
|
|
166
167
|
"type": "string",
|
|
167
|
-
"pattern": "
|
|
168
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
168
169
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
169
170
|
},
|
|
170
171
|
"operator": {
|
|
@@ -201,7 +202,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
|
|
|
201
202
|
},
|
|
202
203
|
"color": {
|
|
203
204
|
"type": "string",
|
|
204
|
-
"pattern": "
|
|
205
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
205
206
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
206
207
|
},
|
|
207
208
|
"operator": {
|
|
@@ -242,7 +243,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
|
|
|
242
243
|
},
|
|
243
244
|
"color": {
|
|
244
245
|
"type": "string",
|
|
245
|
-
"pattern": "
|
|
246
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
246
247
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
247
248
|
},
|
|
248
249
|
"operator": {
|
|
@@ -305,7 +306,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
|
|
|
305
306
|
},
|
|
306
307
|
"color": {
|
|
307
308
|
"type": "string",
|
|
308
|
-
"pattern": "
|
|
309
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
309
310
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
310
311
|
},
|
|
311
312
|
"operator": {
|
|
@@ -342,7 +343,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
|
|
|
342
343
|
},
|
|
343
344
|
"color": {
|
|
344
345
|
"type": "string",
|
|
345
|
-
"pattern": "
|
|
346
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
346
347
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
347
348
|
},
|
|
348
349
|
"operator": {
|
|
@@ -383,7 +384,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
|
|
|
383
384
|
},
|
|
384
385
|
"color": {
|
|
385
386
|
"type": "string",
|
|
386
|
-
"pattern": "
|
|
387
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
387
388
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
388
389
|
},
|
|
389
390
|
"operator": {
|
|
@@ -1501,7 +1502,7 @@ Change the color of axis value labels
|
|
|
1501
1502
|
"anyOf": [
|
|
1502
1503
|
{
|
|
1503
1504
|
"type": "string",
|
|
1504
|
-
"pattern": "
|
|
1505
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1505
1506
|
},
|
|
1506
1507
|
{
|
|
1507
1508
|
"type": "null"
|
|
@@ -1536,7 +1537,7 @@ Change the color of axis lines
|
|
|
1536
1537
|
"anyOf": [
|
|
1537
1538
|
{
|
|
1538
1539
|
"type": "string",
|
|
1539
|
-
"pattern": "
|
|
1540
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1540
1541
|
},
|
|
1541
1542
|
{
|
|
1542
1543
|
"type": "null"
|
|
@@ -1571,7 +1572,7 @@ Change the color of axis tick marks
|
|
|
1571
1572
|
"anyOf": [
|
|
1572
1573
|
{
|
|
1573
1574
|
"type": "string",
|
|
1574
|
-
"pattern": "
|
|
1575
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1575
1576
|
},
|
|
1576
1577
|
{
|
|
1577
1578
|
"type": "null"
|
|
@@ -1633,7 +1634,7 @@ Change the color of axis titles
|
|
|
1633
1634
|
"anyOf": [
|
|
1634
1635
|
{
|
|
1635
1636
|
"type": "string",
|
|
1636
|
-
"pattern": "
|
|
1637
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1637
1638
|
},
|
|
1638
1639
|
{
|
|
1639
1640
|
"type": "null"
|
|
@@ -1655,7 +1656,7 @@ Change the color of axis titles
|
|
|
1655
1656
|
|
|
1656
1657
|
Chart palette
|
|
1657
1658
|
|
|
1658
|
-
Apply an existing palette using a built-in palette name or a theme palette label like "theme palette 2". Built-in categorical palettes: astrato, classic, spectrum, flat, neon, instant, brewer, alternate, dark, bright. Built-in gradient palettes (gradient coloring): viridis, instant, coral, yellowred, greenblue, bluepurple, redpurple. Requires a palette-based coloring type. Your own colors are set with setCustomPaletteColors or setCustomGradientColors, on charts that offer them
|
|
1659
|
+
Apply an existing palette using a built-in palette name or a theme palette label like "theme palette 2". Built-in categorical palettes: astrato, classic, spectrum, flat, neon, instant, brewer, alternate, dark, bright. Built-in gradient palettes (gradient coloring): viridis, instant, coral, yellowred, greenblue, bluepurple, redpurple. Built-in diverging palettes (diverging gradient coloring): redblue, purplegreen, browngreen. Requires a palette-based coloring type. Your own colors are set with setCustomPaletteColors or setCustomGradientColors, on charts that offer them
|
|
1659
1660
|
|
|
1660
1661
|
**Payload schema**
|
|
1661
1662
|
|
|
@@ -1680,7 +1681,7 @@ Set the single color used by the chart
|
|
|
1680
1681
|
{
|
|
1681
1682
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1682
1683
|
"type": "string",
|
|
1683
|
-
"pattern": "
|
|
1684
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
1684
1685
|
"title": "Coloring color schema"
|
|
1685
1686
|
}
|
|
1686
1687
|
```
|
|
@@ -1769,6 +1770,55 @@ Set the minimum value of the gradient domain using a number or variable. Applies
|
|
|
1769
1770
|
}
|
|
1770
1771
|
```
|
|
1771
1772
|
|
|
1773
|
+
## `setColoringGradientRamp`
|
|
1774
|
+
|
|
1775
|
+
Gradient ramp
|
|
1776
|
+
|
|
1777
|
+
Set how the gradient spreads its colors. "diverging" centers the middle color on the midpoint (0 unless set; "auto" uses the middle of the gradient limits) and uses a diverging palette. "steps" draws the gradient as solid bands; null makes it continuous. Settings left out keep their current values. Requires gradient coloring
|
|
1778
|
+
|
|
1779
|
+
**Payload schema**
|
|
1780
|
+
|
|
1781
|
+
```json
|
|
1782
|
+
{
|
|
1783
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1784
|
+
"type": "object",
|
|
1785
|
+
"properties": {
|
|
1786
|
+
"kind": {
|
|
1787
|
+
"description": "sequential runs from low to high; diverging runs away from the midpoint in both directions",
|
|
1788
|
+
"type": "string",
|
|
1789
|
+
"enum": ["sequential", "diverging"]
|
|
1790
|
+
},
|
|
1791
|
+
"midpoint": {
|
|
1792
|
+
"description": "Value a diverging gradient centers on, or \"auto\" for the middle of its limits. Defaults to 0",
|
|
1793
|
+
"anyOf": [
|
|
1794
|
+
{
|
|
1795
|
+
"type": "number"
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"type": "string",
|
|
1799
|
+
"const": "auto"
|
|
1800
|
+
}
|
|
1801
|
+
]
|
|
1802
|
+
},
|
|
1803
|
+
"steps": {
|
|
1804
|
+
"description": "Number of solid bands to draw the gradient with. Null draws a continuous gradient",
|
|
1805
|
+
"anyOf": [
|
|
1806
|
+
{
|
|
1807
|
+
"type": "integer",
|
|
1808
|
+
"minimum": 2,
|
|
1809
|
+
"maximum": 12
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
"type": "null"
|
|
1813
|
+
}
|
|
1814
|
+
]
|
|
1815
|
+
}
|
|
1816
|
+
},
|
|
1817
|
+
"additionalProperties": false,
|
|
1818
|
+
"title": "Coloring gradient ramp schema"
|
|
1819
|
+
}
|
|
1820
|
+
```
|
|
1821
|
+
|
|
1772
1822
|
## `setColoringOverwrites`
|
|
1773
1823
|
|
|
1774
1824
|
Value colors
|
|
@@ -1807,7 +1857,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
|
|
|
1807
1857
|
},
|
|
1808
1858
|
"color": {
|
|
1809
1859
|
"type": "string",
|
|
1810
|
-
"pattern": "
|
|
1860
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
1811
1861
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
1812
1862
|
},
|
|
1813
1863
|
"operator": {
|
|
@@ -1853,7 +1903,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
|
|
|
1853
1903
|
},
|
|
1854
1904
|
"color": {
|
|
1855
1905
|
"type": "string",
|
|
1856
|
-
"pattern": "
|
|
1906
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
1857
1907
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
1858
1908
|
},
|
|
1859
1909
|
"operator": {
|
|
@@ -1894,7 +1944,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
|
|
|
1894
1944
|
},
|
|
1895
1945
|
"color": {
|
|
1896
1946
|
"type": "string",
|
|
1897
|
-
"pattern": "
|
|
1947
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
1898
1948
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
1899
1949
|
},
|
|
1900
1950
|
"operator": {
|
|
@@ -1968,7 +2018,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
|
|
|
1968
2018
|
},
|
|
1969
2019
|
"color": {
|
|
1970
2020
|
"type": "string",
|
|
1971
|
-
"pattern": "
|
|
2021
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
1972
2022
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
1973
2023
|
},
|
|
1974
2024
|
"operator": {
|
|
@@ -2005,7 +2055,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
|
|
|
2005
2055
|
},
|
|
2006
2056
|
"color": {
|
|
2007
2057
|
"type": "string",
|
|
2008
|
-
"pattern": "
|
|
2058
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2009
2059
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2010
2060
|
},
|
|
2011
2061
|
"operator": {
|
|
@@ -2046,7 +2096,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
|
|
|
2046
2096
|
},
|
|
2047
2097
|
"color": {
|
|
2048
2098
|
"type": "string",
|
|
2049
|
-
"pattern": "
|
|
2099
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2050
2100
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2051
2101
|
},
|
|
2052
2102
|
"operator": {
|
|
@@ -2117,7 +2167,7 @@ Replace the whole custom gradient with a provided list of colors
|
|
|
2117
2167
|
"type": "array",
|
|
2118
2168
|
"items": {
|
|
2119
2169
|
"type": "string",
|
|
2120
|
-
"pattern": "
|
|
2170
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2121
2171
|
}
|
|
2122
2172
|
}
|
|
2123
2173
|
},
|
|
@@ -2255,6 +2305,7 @@ Set the display format type used by a dimension. This changes label formatting o
|
|
|
2255
2305
|
"abbreviationNoDecimal",
|
|
2256
2306
|
"abbreviation1Decimal",
|
|
2257
2307
|
"abbreviation2Decimal",
|
|
2308
|
+
"abbreviationCompact",
|
|
2258
2309
|
"percentageNoDecimal",
|
|
2259
2310
|
"percentage1Decimal",
|
|
2260
2311
|
"percentage2Decimal",
|
|
@@ -2556,7 +2607,7 @@ Change the color of legend text labels
|
|
|
2556
2607
|
"anyOf": [
|
|
2557
2608
|
{
|
|
2558
2609
|
"type": "string",
|
|
2559
|
-
"pattern": "
|
|
2610
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2560
2611
|
},
|
|
2561
2612
|
{
|
|
2562
2613
|
"type": "null"
|
|
@@ -4709,6 +4760,7 @@ Set the format type used by a measure
|
|
|
4709
4760
|
"abbreviationNoDecimal",
|
|
4710
4761
|
"abbreviation1Decimal",
|
|
4711
4762
|
"abbreviation2Decimal",
|
|
4763
|
+
"abbreviationCompact",
|
|
4712
4764
|
"percentageNoDecimal",
|
|
4713
4765
|
"percentage1Decimal",
|
|
4714
4766
|
"percentage2Decimal",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `histogram` operations
|
|
4
4
|
|
|
5
|
-
Reference for `@astrato-io/visualizations@0.
|
|
5
|
+
Reference for `@astrato-io/visualizations@0.12.0`.
|
|
6
6
|
|
|
7
7
|
[All visualization types](./index.md)
|
|
8
8
|
|
|
@@ -45,6 +45,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
45
45
|
- [`setLegendPosition`](#setlegendposition)
|
|
46
46
|
- [`setLegendTitle`](#setlegendtitle)
|
|
47
47
|
- [`setMeasureAxisBands`](#setmeasureaxisbands)
|
|
48
|
+
- [`setMeasureAxisLabelFormat`](#setmeasureaxislabelformat)
|
|
48
49
|
- [`setMeasureCurrency`](#setmeasurecurrency)
|
|
49
50
|
- [`setMeasureCurrencyIsPrefix`](#setmeasurecurrencyisprefix)
|
|
50
51
|
- [`setMeasureFormatString`](#setmeasureformatstring)
|
|
@@ -112,7 +113,7 @@ Add a shaded band on the dimension axis between two raw dimension values (inclus
|
|
|
112
113
|
"color": {
|
|
113
114
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
114
115
|
"type": "string",
|
|
115
|
-
"pattern": "
|
|
116
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
116
117
|
},
|
|
117
118
|
"label": {
|
|
118
119
|
"description": "Text drawn inside the band",
|
|
@@ -149,7 +150,7 @@ Add a shaded band on the primary measure axis between two measure values
|
|
|
149
150
|
"color": {
|
|
150
151
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
151
152
|
"type": "string",
|
|
152
|
-
"pattern": "
|
|
153
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
153
154
|
},
|
|
154
155
|
"label": {
|
|
155
156
|
"description": "Text drawn inside the band",
|
|
@@ -193,7 +194,7 @@ Add a reference line at a value on the x or y axis, with an optional label, colo
|
|
|
193
194
|
"anyOf": [
|
|
194
195
|
{
|
|
195
196
|
"type": "string",
|
|
196
|
-
"pattern": "
|
|
197
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
197
198
|
},
|
|
198
199
|
{
|
|
199
200
|
"type": "null"
|
|
@@ -393,7 +394,7 @@ Change the color of axis value labels
|
|
|
393
394
|
"anyOf": [
|
|
394
395
|
{
|
|
395
396
|
"type": "string",
|
|
396
|
-
"pattern": "
|
|
397
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
397
398
|
},
|
|
398
399
|
{
|
|
399
400
|
"type": "null"
|
|
@@ -428,7 +429,7 @@ Change the color of axis lines
|
|
|
428
429
|
"anyOf": [
|
|
429
430
|
{
|
|
430
431
|
"type": "string",
|
|
431
|
-
"pattern": "
|
|
432
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
432
433
|
},
|
|
433
434
|
{
|
|
434
435
|
"type": "null"
|
|
@@ -572,7 +573,7 @@ Change the color of axis tick marks
|
|
|
572
573
|
"anyOf": [
|
|
573
574
|
{
|
|
574
575
|
"type": "string",
|
|
575
|
-
"pattern": "
|
|
576
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
576
577
|
},
|
|
577
578
|
{
|
|
578
579
|
"type": "null"
|
|
@@ -634,7 +635,7 @@ Change the color of axis titles
|
|
|
634
635
|
"anyOf": [
|
|
635
636
|
{
|
|
636
637
|
"type": "string",
|
|
637
|
-
"pattern": "
|
|
638
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
638
639
|
},
|
|
639
640
|
{
|
|
640
641
|
"type": "null"
|
|
@@ -698,7 +699,7 @@ Replace all shaded bands on the dimension axis. Each band fills the plot between
|
|
|
698
699
|
"color": {
|
|
699
700
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
700
701
|
"type": "string",
|
|
701
|
-
"pattern": "
|
|
702
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
702
703
|
},
|
|
703
704
|
"label": {
|
|
704
705
|
"description": "Text drawn inside the band",
|
|
@@ -804,6 +805,7 @@ Set the display format type used by a dimension. This changes label formatting o
|
|
|
804
805
|
"abbreviationNoDecimal",
|
|
805
806
|
"abbreviation1Decimal",
|
|
806
807
|
"abbreviation2Decimal",
|
|
808
|
+
"abbreviationCompact",
|
|
807
809
|
"percentageNoDecimal",
|
|
808
810
|
"percentage1Decimal",
|
|
809
811
|
"percentage2Decimal",
|
|
@@ -1095,7 +1097,7 @@ Change the color of legend text labels
|
|
|
1095
1097
|
"anyOf": [
|
|
1096
1098
|
{
|
|
1097
1099
|
"type": "string",
|
|
1098
|
-
"pattern": "
|
|
1100
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1099
1101
|
},
|
|
1100
1102
|
{
|
|
1101
1103
|
"type": "null"
|
|
@@ -1220,7 +1222,7 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
|
|
|
1220
1222
|
"color": {
|
|
1221
1223
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
1222
1224
|
"type": "string",
|
|
1223
|
-
"pattern": "
|
|
1225
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1224
1226
|
},
|
|
1225
1227
|
"label": {
|
|
1226
1228
|
"description": "Text drawn inside the band",
|
|
@@ -1239,6 +1241,36 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
|
|
|
1239
1241
|
}
|
|
1240
1242
|
```
|
|
1241
1243
|
|
|
1244
|
+
## `setMeasureAxisLabelFormat`
|
|
1245
|
+
|
|
1246
|
+
Measure axis label format
|
|
1247
|
+
|
|
1248
|
+
Print measure axis values compactly, eg. 40M instead of 40,000,000.00, or with the measure's format. Data labels and tooltips keep the measure's format.
|
|
1249
|
+
|
|
1250
|
+
**Payload schema**
|
|
1251
|
+
|
|
1252
|
+
```json
|
|
1253
|
+
{
|
|
1254
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1255
|
+
"type": "object",
|
|
1256
|
+
"properties": {
|
|
1257
|
+
"axisName": {
|
|
1258
|
+
"type": "string",
|
|
1259
|
+
"enum": ["primaryMeasure"],
|
|
1260
|
+
"description": "Measure axis to change"
|
|
1261
|
+
},
|
|
1262
|
+
"labelFormat": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"enum": ["compact", "value"],
|
|
1265
|
+
"description": "compact abbreviates each axis value, eg. 1.5M or $50M; value prints it with the measure's format. Percent, date, time and duration formats, patterns with conditions or colors, already scaled patterns and fixed-decimal abbreviations keep the measure's format."
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
"required": ["axisName", "labelFormat"],
|
|
1269
|
+
"additionalProperties": false,
|
|
1270
|
+
"title": "Measure axis label format schema"
|
|
1271
|
+
}
|
|
1272
|
+
```
|
|
1273
|
+
|
|
1242
1274
|
## `setMeasureCurrency`
|
|
1243
1275
|
|
|
1244
1276
|
Measure currency
|
|
@@ -1388,6 +1420,7 @@ Set the format type used by a measure
|
|
|
1388
1420
|
"abbreviationNoDecimal",
|
|
1389
1421
|
"abbreviation1Decimal",
|
|
1390
1422
|
"abbreviation2Decimal",
|
|
1423
|
+
"abbreviationCompact",
|
|
1391
1424
|
"percentageNoDecimal",
|
|
1392
1425
|
"percentage1Decimal",
|
|
1393
1426
|
"percentage2Decimal",
|
|
@@ -2096,7 +2129,7 @@ Change the value, label, color or width of a reference line, or move it to the o
|
|
|
2096
2129
|
"anyOf": [
|
|
2097
2130
|
{
|
|
2098
2131
|
"type": "string",
|
|
2099
|
-
"pattern": "
|
|
2132
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2100
2133
|
},
|
|
2101
2134
|
{
|
|
2102
2135
|
"type": "null"
|