@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/definitions.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { N as e } from "./chunks/shared-
|
|
2
|
-
import { i as t, n, r, t as i } from "./chunks/definitions-
|
|
1
|
+
import { N as e } from "./chunks/shared-DoEN9nNM.js";
|
|
2
|
+
import { i as t, n, r, t as i } from "./chunks/definitions-DTauTjIX.js";
|
|
3
3
|
export { i as compileVisualizationDefinition, e as createVisualizationAvailableFields, n as getVisualizationDefinitionDescriptor, r as listVisualizationDefinitionDescriptors, t as validateVisualizationDefinition };
|
package/docs/operations/bar.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `bar` 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
|
|
|
@@ -76,6 +76,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
76
76
|
- [`setColoringGradientField`](#setcoloringgradientfield)
|
|
77
77
|
- [`setColoringGradientMax`](#setcoloringgradientmax)
|
|
78
78
|
- [`setColoringGradientMin`](#setcoloringgradientmin)
|
|
79
|
+
- [`setColoringGradientRamp`](#setcoloringgradientramp)
|
|
79
80
|
- [`setColoringMeasureAggregation`](#setcoloringmeasureaggregation)
|
|
80
81
|
- [`setColoringOverwrites`](#setcoloringoverwrites)
|
|
81
82
|
- [`setColoringPersistentColors`](#setcoloringpersistentcolors)
|
|
@@ -130,6 +131,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
130
131
|
- [`setMeasureAdvancedWindowBegin`](#setmeasureadvancedwindowbegin)
|
|
131
132
|
- [`setMeasureAdvancedWindowEnd`](#setmeasureadvancedwindowend)
|
|
132
133
|
- [`setMeasureAxisBands`](#setmeasureaxisbands)
|
|
134
|
+
- [`setMeasureAxisLabelFormat`](#setmeasureaxislabelformat)
|
|
133
135
|
- [`setMeasureCurrency`](#setmeasurecurrency)
|
|
134
136
|
- [`setMeasureCurrencyIsPrefix`](#setmeasurecurrencyisprefix)
|
|
135
137
|
- [`setMeasureDataLabelBackdropColor`](#setmeasuredatalabelbackdropcolor)
|
|
@@ -208,7 +210,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
|
|
|
208
210
|
},
|
|
209
211
|
"color": {
|
|
210
212
|
"type": "string",
|
|
211
|
-
"pattern": "
|
|
213
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
212
214
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
213
215
|
},
|
|
214
216
|
"operator": {
|
|
@@ -245,7 +247,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
|
|
|
245
247
|
},
|
|
246
248
|
"color": {
|
|
247
249
|
"type": "string",
|
|
248
|
-
"pattern": "
|
|
250
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
249
251
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
250
252
|
},
|
|
251
253
|
"operator": {
|
|
@@ -286,7 +288,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
|
|
|
286
288
|
},
|
|
287
289
|
"color": {
|
|
288
290
|
"type": "string",
|
|
289
|
-
"pattern": "
|
|
291
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
290
292
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
291
293
|
},
|
|
292
294
|
"operator": {
|
|
@@ -349,7 +351,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
|
|
|
349
351
|
},
|
|
350
352
|
"color": {
|
|
351
353
|
"type": "string",
|
|
352
|
-
"pattern": "
|
|
354
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
353
355
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
354
356
|
},
|
|
355
357
|
"operator": {
|
|
@@ -386,7 +388,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
|
|
|
386
388
|
},
|
|
387
389
|
"color": {
|
|
388
390
|
"type": "string",
|
|
389
|
-
"pattern": "
|
|
391
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
390
392
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
391
393
|
},
|
|
392
394
|
"operator": {
|
|
@@ -427,7 +429,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
|
|
|
427
429
|
},
|
|
428
430
|
"color": {
|
|
429
431
|
"type": "string",
|
|
430
|
-
"pattern": "
|
|
432
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
431
433
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
432
434
|
},
|
|
433
435
|
"operator": {
|
|
@@ -505,7 +507,7 @@ Add a shaded band on the dimension axis between two raw dimension values (inclus
|
|
|
505
507
|
"color": {
|
|
506
508
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
507
509
|
"type": "string",
|
|
508
|
-
"pattern": "
|
|
510
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
509
511
|
},
|
|
510
512
|
"label": {
|
|
511
513
|
"description": "Text drawn inside the band",
|
|
@@ -695,7 +697,7 @@ Add a shaded band on the primary measure axis between two measure values
|
|
|
695
697
|
"color": {
|
|
696
698
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
697
699
|
"type": "string",
|
|
698
|
-
"pattern": "
|
|
700
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
699
701
|
},
|
|
700
702
|
"label": {
|
|
701
703
|
"description": "Text drawn inside the band",
|
|
@@ -924,7 +926,7 @@ Add a reference line at a value on the x or y axis, with an optional label, colo
|
|
|
924
926
|
"anyOf": [
|
|
925
927
|
{
|
|
926
928
|
"type": "string",
|
|
927
|
-
"pattern": "
|
|
929
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
928
930
|
},
|
|
929
931
|
{
|
|
930
932
|
"type": "null"
|
|
@@ -1973,7 +1975,7 @@ Change the color of axis value labels
|
|
|
1973
1975
|
"anyOf": [
|
|
1974
1976
|
{
|
|
1975
1977
|
"type": "string",
|
|
1976
|
-
"pattern": "
|
|
1978
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1977
1979
|
},
|
|
1978
1980
|
{
|
|
1979
1981
|
"type": "null"
|
|
@@ -2036,7 +2038,7 @@ Change the color of axis lines
|
|
|
2036
2038
|
"anyOf": [
|
|
2037
2039
|
{
|
|
2038
2040
|
"type": "string",
|
|
2039
|
-
"pattern": "
|
|
2041
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2040
2042
|
},
|
|
2041
2043
|
{
|
|
2042
2044
|
"type": "null"
|
|
@@ -2210,7 +2212,7 @@ Change the color of axis tick marks
|
|
|
2210
2212
|
"anyOf": [
|
|
2211
2213
|
{
|
|
2212
2214
|
"type": "string",
|
|
2213
|
-
"pattern": "
|
|
2215
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2214
2216
|
},
|
|
2215
2217
|
{
|
|
2216
2218
|
"type": "null"
|
|
@@ -2272,7 +2274,7 @@ Change the color of axis titles
|
|
|
2272
2274
|
"anyOf": [
|
|
2273
2275
|
{
|
|
2274
2276
|
"type": "string",
|
|
2275
|
-
"pattern": "
|
|
2277
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2276
2278
|
},
|
|
2277
2279
|
{
|
|
2278
2280
|
"type": "null"
|
|
@@ -2426,7 +2428,7 @@ Set the color of bar borders
|
|
|
2426
2428
|
"anyOf": [
|
|
2427
2429
|
{
|
|
2428
2430
|
"type": "string",
|
|
2429
|
-
"pattern": "
|
|
2431
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2430
2432
|
},
|
|
2431
2433
|
{
|
|
2432
2434
|
"type": "null"
|
|
@@ -2473,7 +2475,7 @@ Adjust the thickness of bar borders
|
|
|
2473
2475
|
|
|
2474
2476
|
Chart palette
|
|
2475
2477
|
|
|
2476
|
-
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
|
|
2478
|
+
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
|
|
2477
2479
|
|
|
2478
2480
|
**Payload schema**
|
|
2479
2481
|
|
|
@@ -2498,7 +2500,7 @@ Set the single color used by the chart
|
|
|
2498
2500
|
{
|
|
2499
2501
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2500
2502
|
"type": "string",
|
|
2501
|
-
"pattern": "
|
|
2503
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2502
2504
|
"title": "Coloring color schema"
|
|
2503
2505
|
}
|
|
2504
2506
|
```
|
|
@@ -2620,6 +2622,55 @@ Set the minimum value of the gradient domain using a number or variable. Applies
|
|
|
2620
2622
|
}
|
|
2621
2623
|
```
|
|
2622
2624
|
|
|
2625
|
+
## `setColoringGradientRamp`
|
|
2626
|
+
|
|
2627
|
+
Gradient ramp
|
|
2628
|
+
|
|
2629
|
+
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
|
|
2630
|
+
|
|
2631
|
+
**Payload schema**
|
|
2632
|
+
|
|
2633
|
+
```json
|
|
2634
|
+
{
|
|
2635
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2636
|
+
"type": "object",
|
|
2637
|
+
"properties": {
|
|
2638
|
+
"kind": {
|
|
2639
|
+
"description": "sequential runs from low to high; diverging runs away from the midpoint in both directions",
|
|
2640
|
+
"type": "string",
|
|
2641
|
+
"enum": ["sequential", "diverging"]
|
|
2642
|
+
},
|
|
2643
|
+
"midpoint": {
|
|
2644
|
+
"description": "Value a diverging gradient centers on, or \"auto\" for the middle of its limits. Defaults to 0",
|
|
2645
|
+
"anyOf": [
|
|
2646
|
+
{
|
|
2647
|
+
"type": "number"
|
|
2648
|
+
},
|
|
2649
|
+
{
|
|
2650
|
+
"type": "string",
|
|
2651
|
+
"const": "auto"
|
|
2652
|
+
}
|
|
2653
|
+
]
|
|
2654
|
+
},
|
|
2655
|
+
"steps": {
|
|
2656
|
+
"description": "Number of solid bands to draw the gradient with. Null draws a continuous gradient",
|
|
2657
|
+
"anyOf": [
|
|
2658
|
+
{
|
|
2659
|
+
"type": "integer",
|
|
2660
|
+
"minimum": 2,
|
|
2661
|
+
"maximum": 12
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
"type": "null"
|
|
2665
|
+
}
|
|
2666
|
+
]
|
|
2667
|
+
}
|
|
2668
|
+
},
|
|
2669
|
+
"additionalProperties": false,
|
|
2670
|
+
"title": "Coloring gradient ramp schema"
|
|
2671
|
+
}
|
|
2672
|
+
```
|
|
2673
|
+
|
|
2623
2674
|
## `setColoringMeasureAggregation`
|
|
2624
2675
|
|
|
2625
2676
|
Coloring measure aggregation
|
|
@@ -2675,7 +2726,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
|
|
|
2675
2726
|
},
|
|
2676
2727
|
"color": {
|
|
2677
2728
|
"type": "string",
|
|
2678
|
-
"pattern": "
|
|
2729
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2679
2730
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2680
2731
|
},
|
|
2681
2732
|
"operator": {
|
|
@@ -2721,7 +2772,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
|
|
|
2721
2772
|
},
|
|
2722
2773
|
"color": {
|
|
2723
2774
|
"type": "string",
|
|
2724
|
-
"pattern": "
|
|
2775
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2725
2776
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2726
2777
|
},
|
|
2727
2778
|
"operator": {
|
|
@@ -2762,7 +2813,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
|
|
|
2762
2813
|
},
|
|
2763
2814
|
"color": {
|
|
2764
2815
|
"type": "string",
|
|
2765
|
-
"pattern": "
|
|
2816
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2766
2817
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2767
2818
|
},
|
|
2768
2819
|
"operator": {
|
|
@@ -2853,7 +2904,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
|
|
|
2853
2904
|
},
|
|
2854
2905
|
"color": {
|
|
2855
2906
|
"type": "string",
|
|
2856
|
-
"pattern": "
|
|
2907
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2857
2908
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2858
2909
|
},
|
|
2859
2910
|
"operator": {
|
|
@@ -2890,7 +2941,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
|
|
|
2890
2941
|
},
|
|
2891
2942
|
"color": {
|
|
2892
2943
|
"type": "string",
|
|
2893
|
-
"pattern": "
|
|
2944
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2894
2945
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2895
2946
|
},
|
|
2896
2947
|
"operator": {
|
|
@@ -2931,7 +2982,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
|
|
|
2931
2982
|
},
|
|
2932
2983
|
"color": {
|
|
2933
2984
|
"type": "string",
|
|
2934
|
-
"pattern": "
|
|
2985
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2935
2986
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2936
2987
|
},
|
|
2937
2988
|
"operator": {
|
|
@@ -3019,7 +3070,7 @@ Replace the whole custom gradient with a provided list of colors
|
|
|
3019
3070
|
"type": "array",
|
|
3020
3071
|
"items": {
|
|
3021
3072
|
"type": "string",
|
|
3022
|
-
"pattern": "
|
|
3073
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
3023
3074
|
}
|
|
3024
3075
|
}
|
|
3025
3076
|
},
|
|
@@ -3088,7 +3139,7 @@ Replace the whole custom categorical palette with a provided list of colors and
|
|
|
3088
3139
|
"type": "array",
|
|
3089
3140
|
"items": {
|
|
3090
3141
|
"type": "string",
|
|
3091
|
-
"pattern": "
|
|
3142
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
3092
3143
|
}
|
|
3093
3144
|
}
|
|
3094
3145
|
},
|
|
@@ -3127,7 +3178,7 @@ Replace all shaded bands on the dimension axis. Each band fills the plot between
|
|
|
3127
3178
|
"color": {
|
|
3128
3179
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
3129
3180
|
"type": "string",
|
|
3130
|
-
"pattern": "
|
|
3181
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
3131
3182
|
},
|
|
3132
3183
|
"label": {
|
|
3133
3184
|
"description": "Text drawn inside the band",
|
|
@@ -3233,6 +3284,7 @@ Set the display format type used by a dimension. This changes label formatting o
|
|
|
3233
3284
|
"abbreviationNoDecimal",
|
|
3234
3285
|
"abbreviation1Decimal",
|
|
3235
3286
|
"abbreviation2Decimal",
|
|
3287
|
+
"abbreviationCompact",
|
|
3236
3288
|
"percentageNoDecimal",
|
|
3237
3289
|
"percentage1Decimal",
|
|
3238
3290
|
"percentage2Decimal",
|
|
@@ -3556,7 +3608,7 @@ Change the color of legend text labels
|
|
|
3556
3608
|
"anyOf": [
|
|
3557
3609
|
{
|
|
3558
3610
|
"type": "string",
|
|
3559
|
-
"pattern": "
|
|
3611
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
3560
3612
|
},
|
|
3561
3613
|
{
|
|
3562
3614
|
"type": "null"
|
|
@@ -5240,7 +5292,7 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
|
|
|
5240
5292
|
"color": {
|
|
5241
5293
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
5242
5294
|
"type": "string",
|
|
5243
|
-
"pattern": "
|
|
5295
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
5244
5296
|
},
|
|
5245
5297
|
"label": {
|
|
5246
5298
|
"description": "Text drawn inside the band",
|
|
@@ -5259,6 +5311,36 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
|
|
|
5259
5311
|
}
|
|
5260
5312
|
```
|
|
5261
5313
|
|
|
5314
|
+
## `setMeasureAxisLabelFormat`
|
|
5315
|
+
|
|
5316
|
+
Measure axis label format
|
|
5317
|
+
|
|
5318
|
+
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.
|
|
5319
|
+
|
|
5320
|
+
**Payload schema**
|
|
5321
|
+
|
|
5322
|
+
```json
|
|
5323
|
+
{
|
|
5324
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
5325
|
+
"type": "object",
|
|
5326
|
+
"properties": {
|
|
5327
|
+
"axisName": {
|
|
5328
|
+
"type": "string",
|
|
5329
|
+
"enum": ["primaryMeasure", "secondaryMeasure"],
|
|
5330
|
+
"description": "Measure axis to change"
|
|
5331
|
+
},
|
|
5332
|
+
"labelFormat": {
|
|
5333
|
+
"type": "string",
|
|
5334
|
+
"enum": ["compact", "value"],
|
|
5335
|
+
"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."
|
|
5336
|
+
}
|
|
5337
|
+
},
|
|
5338
|
+
"required": ["axisName", "labelFormat"],
|
|
5339
|
+
"additionalProperties": false,
|
|
5340
|
+
"title": "Measure axis label format schema"
|
|
5341
|
+
}
|
|
5342
|
+
```
|
|
5343
|
+
|
|
5262
5344
|
## `setMeasureCurrency`
|
|
5263
5345
|
|
|
5264
5346
|
Measure currency
|
|
@@ -5346,7 +5428,7 @@ Set the backdrop color behind measure data labels
|
|
|
5346
5428
|
"anyOf": [
|
|
5347
5429
|
{
|
|
5348
5430
|
"type": "string",
|
|
5349
|
-
"pattern": "
|
|
5431
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
5350
5432
|
},
|
|
5351
5433
|
{
|
|
5352
5434
|
"type": "null"
|
|
@@ -5574,7 +5656,7 @@ Set the text color of data labels for a measure
|
|
|
5574
5656
|
"anyOf": [
|
|
5575
5657
|
{
|
|
5576
5658
|
"type": "string",
|
|
5577
|
-
"pattern": "
|
|
5659
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
5578
5660
|
},
|
|
5579
5661
|
{
|
|
5580
5662
|
"type": "null"
|
|
@@ -5944,6 +6026,7 @@ Set the format type used by a measure
|
|
|
5944
6026
|
"abbreviationNoDecimal",
|
|
5945
6027
|
"abbreviation1Decimal",
|
|
5946
6028
|
"abbreviation2Decimal",
|
|
6029
|
+
"abbreviationCompact",
|
|
5947
6030
|
"percentageNoDecimal",
|
|
5948
6031
|
"percentage1Decimal",
|
|
5949
6032
|
"percentage2Decimal",
|
|
@@ -6048,7 +6131,7 @@ Set a color override for a measure
|
|
|
6048
6131
|
},
|
|
6049
6132
|
"graphColor": {
|
|
6050
6133
|
"type": "string",
|
|
6051
|
-
"pattern": "
|
|
6134
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
6052
6135
|
}
|
|
6053
6136
|
},
|
|
6054
6137
|
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "graphColor"],
|
|
@@ -7246,7 +7329,7 @@ Change the value, label, color or width of a reference line, or move it to the o
|
|
|
7246
7329
|
"anyOf": [
|
|
7247
7330
|
{
|
|
7248
7331
|
"type": "string",
|
|
7249
|
-
"pattern": "
|
|
7332
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
7250
7333
|
},
|
|
7251
7334
|
{
|
|
7252
7335
|
"type": "null"
|
package/docs/operations/combo.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `combo` 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
|
|
|
@@ -103,6 +103,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
103
103
|
- [`setMeasureAdvancedWindowBegin`](#setmeasureadvancedwindowbegin)
|
|
104
104
|
- [`setMeasureAdvancedWindowEnd`](#setmeasureadvancedwindowend)
|
|
105
105
|
- [`setMeasureAxisBands`](#setmeasureaxisbands)
|
|
106
|
+
- [`setMeasureAxisLabelFormat`](#setmeasureaxislabelformat)
|
|
106
107
|
- [`setMeasureCurrency`](#setmeasurecurrency)
|
|
107
108
|
- [`setMeasureCurrencyIsPrefix`](#setmeasurecurrencyisprefix)
|
|
108
109
|
- [`setMeasureDataLabelBackdropColor`](#setmeasuredatalabelbackdropcolor)
|
|
@@ -196,7 +197,7 @@ Add a shaded band on the dimension axis between two raw dimension values (inclus
|
|
|
196
197
|
"color": {
|
|
197
198
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
198
199
|
"type": "string",
|
|
199
|
-
"pattern": "
|
|
200
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
200
201
|
},
|
|
201
202
|
"label": {
|
|
202
203
|
"description": "Text drawn inside the band",
|
|
@@ -386,7 +387,7 @@ Add a shaded band on the primary measure axis between two measure values
|
|
|
386
387
|
"color": {
|
|
387
388
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
388
389
|
"type": "string",
|
|
389
|
-
"pattern": "
|
|
390
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
390
391
|
},
|
|
391
392
|
"label": {
|
|
392
393
|
"description": "Text drawn inside the band",
|
|
@@ -615,7 +616,7 @@ Add a reference line at a value on the x or y axis, with an optional label, colo
|
|
|
615
616
|
"anyOf": [
|
|
616
617
|
{
|
|
617
618
|
"type": "string",
|
|
618
|
-
"pattern": "
|
|
619
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
619
620
|
},
|
|
620
621
|
{
|
|
621
622
|
"type": "null"
|
|
@@ -1436,7 +1437,7 @@ Change the color of axis value labels
|
|
|
1436
1437
|
"anyOf": [
|
|
1437
1438
|
{
|
|
1438
1439
|
"type": "string",
|
|
1439
|
-
"pattern": "
|
|
1440
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1440
1441
|
},
|
|
1441
1442
|
{
|
|
1442
1443
|
"type": "null"
|
|
@@ -1499,7 +1500,7 @@ Change the color of axis lines
|
|
|
1499
1500
|
"anyOf": [
|
|
1500
1501
|
{
|
|
1501
1502
|
"type": "string",
|
|
1502
|
-
"pattern": "
|
|
1503
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1503
1504
|
},
|
|
1504
1505
|
{
|
|
1505
1506
|
"type": "null"
|
|
@@ -1673,7 +1674,7 @@ Change the color of axis tick marks
|
|
|
1673
1674
|
"anyOf": [
|
|
1674
1675
|
{
|
|
1675
1676
|
"type": "string",
|
|
1676
|
-
"pattern": "
|
|
1677
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1677
1678
|
},
|
|
1678
1679
|
{
|
|
1679
1680
|
"type": "null"
|
|
@@ -1735,7 +1736,7 @@ Change the color of axis titles
|
|
|
1735
1736
|
"anyOf": [
|
|
1736
1737
|
{
|
|
1737
1738
|
"type": "string",
|
|
1738
|
-
"pattern": "
|
|
1739
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1739
1740
|
},
|
|
1740
1741
|
{
|
|
1741
1742
|
"type": "null"
|
|
@@ -1757,7 +1758,7 @@ Change the color of axis titles
|
|
|
1757
1758
|
|
|
1758
1759
|
Chart palette
|
|
1759
1760
|
|
|
1760
|
-
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
|
|
1761
1762
|
|
|
1762
1763
|
**Payload schema**
|
|
1763
1764
|
|
|
@@ -1782,7 +1783,7 @@ Set the single color used by the chart
|
|
|
1782
1783
|
{
|
|
1783
1784
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1784
1785
|
"type": "string",
|
|
1785
|
-
"pattern": "
|
|
1786
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
1786
1787
|
"title": "Coloring color schema"
|
|
1787
1788
|
}
|
|
1788
1789
|
```
|
|
@@ -1895,7 +1896,7 @@ Replace the whole custom categorical palette with a provided list of colors and
|
|
|
1895
1896
|
"type": "array",
|
|
1896
1897
|
"items": {
|
|
1897
1898
|
"type": "string",
|
|
1898
|
-
"pattern": "
|
|
1899
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1899
1900
|
}
|
|
1900
1901
|
}
|
|
1901
1902
|
},
|
|
@@ -1934,7 +1935,7 @@ Replace all shaded bands on the dimension axis. Each band fills the plot between
|
|
|
1934
1935
|
"color": {
|
|
1935
1936
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
1936
1937
|
"type": "string",
|
|
1937
|
-
"pattern": "
|
|
1938
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1938
1939
|
},
|
|
1939
1940
|
"label": {
|
|
1940
1941
|
"description": "Text drawn inside the band",
|
|
@@ -2040,6 +2041,7 @@ Set the display format type used by a dimension. This changes label formatting o
|
|
|
2040
2041
|
"abbreviationNoDecimal",
|
|
2041
2042
|
"abbreviation1Decimal",
|
|
2042
2043
|
"abbreviation2Decimal",
|
|
2044
|
+
"abbreviationCompact",
|
|
2043
2045
|
"percentageNoDecimal",
|
|
2044
2046
|
"percentage1Decimal",
|
|
2045
2047
|
"percentage2Decimal",
|
|
@@ -2363,7 +2365,7 @@ Change the color of legend text labels
|
|
|
2363
2365
|
"anyOf": [
|
|
2364
2366
|
{
|
|
2365
2367
|
"type": "string",
|
|
2366
|
-
"pattern": "
|
|
2368
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2367
2369
|
},
|
|
2368
2370
|
{
|
|
2369
2371
|
"type": "null"
|
|
@@ -4047,7 +4049,7 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
|
|
|
4047
4049
|
"color": {
|
|
4048
4050
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
4049
4051
|
"type": "string",
|
|
4050
|
-
"pattern": "
|
|
4052
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
4051
4053
|
},
|
|
4052
4054
|
"label": {
|
|
4053
4055
|
"description": "Text drawn inside the band",
|
|
@@ -4066,6 +4068,36 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
|
|
|
4066
4068
|
}
|
|
4067
4069
|
```
|
|
4068
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
|
+
|
|
4069
4101
|
## `setMeasureCurrency`
|
|
4070
4102
|
|
|
4071
4103
|
Measure currency
|
|
@@ -4153,7 +4185,7 @@ Set the backdrop color behind measure data labels
|
|
|
4153
4185
|
"anyOf": [
|
|
4154
4186
|
{
|
|
4155
4187
|
"type": "string",
|
|
4156
|
-
"pattern": "
|
|
4188
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
4157
4189
|
},
|
|
4158
4190
|
{
|
|
4159
4191
|
"type": "null"
|
|
@@ -4634,6 +4666,7 @@ Set the format type used by a measure
|
|
|
4634
4666
|
"abbreviationNoDecimal",
|
|
4635
4667
|
"abbreviation1Decimal",
|
|
4636
4668
|
"abbreviation2Decimal",
|
|
4669
|
+
"abbreviationCompact",
|
|
4637
4670
|
"percentageNoDecimal",
|
|
4638
4671
|
"percentage1Decimal",
|
|
4639
4672
|
"percentage2Decimal",
|
|
@@ -4738,7 +4771,7 @@ Set a color override for a measure
|
|
|
4738
4771
|
},
|
|
4739
4772
|
"graphColor": {
|
|
4740
4773
|
"type": "string",
|
|
4741
|
-
"pattern": "
|
|
4774
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
4742
4775
|
}
|
|
4743
4776
|
},
|
|
4744
4777
|
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "graphColor"],
|
|
@@ -6073,7 +6106,7 @@ Change the value, label, color or width of a reference line, or move it to the o
|
|
|
6073
6106
|
"anyOf": [
|
|
6074
6107
|
{
|
|
6075
6108
|
"type": "string",
|
|
6076
|
-
"pattern": "
|
|
6109
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
6077
6110
|
},
|
|
6078
6111
|
{
|
|
6079
6112
|
"type": "null"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `date-picker` 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
|
|
|
@@ -93,7 +93,7 @@ Set the date picker background color
|
|
|
93
93
|
"anyOf": [
|
|
94
94
|
{
|
|
95
95
|
"type": "string",
|
|
96
|
-
"pattern": "
|
|
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": "
|
|
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": "
|
|
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"
|