@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/definitions.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
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
|
|
|
@@ -51,6 +51,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
51
51
|
- [`resetChartPaletteToThemeDefault`](#resetchartpalettetothemedefault)
|
|
52
52
|
- [`setAnimationEnabled`](#setanimationenabled)
|
|
53
53
|
- [`setAxisLabelColor`](#setaxislabelcolor)
|
|
54
|
+
- [`setAxisLabelWrap`](#setaxislabelwrap)
|
|
54
55
|
- [`setAxisLineColor`](#setaxislinecolor)
|
|
55
56
|
- [`setAxisRangeMax`](#setaxisrangemax)
|
|
56
57
|
- [`setAxisRangeMin`](#setaxisrangemin)
|
|
@@ -75,6 +76,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
75
76
|
- [`setColoringGradientField`](#setcoloringgradientfield)
|
|
76
77
|
- [`setColoringGradientMax`](#setcoloringgradientmax)
|
|
77
78
|
- [`setColoringGradientMin`](#setcoloringgradientmin)
|
|
79
|
+
- [`setColoringGradientRamp`](#setcoloringgradientramp)
|
|
78
80
|
- [`setColoringMeasureAggregation`](#setcoloringmeasureaggregation)
|
|
79
81
|
- [`setColoringOverwrites`](#setcoloringoverwrites)
|
|
80
82
|
- [`setColoringPersistentColors`](#setcoloringpersistentcolors)
|
|
@@ -129,6 +131,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
129
131
|
- [`setMeasureAdvancedWindowBegin`](#setmeasureadvancedwindowbegin)
|
|
130
132
|
- [`setMeasureAdvancedWindowEnd`](#setmeasureadvancedwindowend)
|
|
131
133
|
- [`setMeasureAxisBands`](#setmeasureaxisbands)
|
|
134
|
+
- [`setMeasureAxisLabelFormat`](#setmeasureaxislabelformat)
|
|
132
135
|
- [`setMeasureCurrency`](#setmeasurecurrency)
|
|
133
136
|
- [`setMeasureCurrencyIsPrefix`](#setmeasurecurrencyisprefix)
|
|
134
137
|
- [`setMeasureDataLabelBackdropColor`](#setmeasuredatalabelbackdropcolor)
|
|
@@ -207,7 +210,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
|
|
|
207
210
|
},
|
|
208
211
|
"color": {
|
|
209
212
|
"type": "string",
|
|
210
|
-
"pattern": "
|
|
213
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
211
214
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
212
215
|
},
|
|
213
216
|
"operator": {
|
|
@@ -244,7 +247,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
|
|
|
244
247
|
},
|
|
245
248
|
"color": {
|
|
246
249
|
"type": "string",
|
|
247
|
-
"pattern": "
|
|
250
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
248
251
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
249
252
|
},
|
|
250
253
|
"operator": {
|
|
@@ -285,7 +288,7 @@ Append one value color, eg. color the dimension value "Happy" dark teal. Value c
|
|
|
285
288
|
},
|
|
286
289
|
"color": {
|
|
287
290
|
"type": "string",
|
|
288
|
-
"pattern": "
|
|
291
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
289
292
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
290
293
|
},
|
|
291
294
|
"operator": {
|
|
@@ -348,7 +351,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
|
|
|
348
351
|
},
|
|
349
352
|
"color": {
|
|
350
353
|
"type": "string",
|
|
351
|
-
"pattern": "
|
|
354
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
352
355
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
353
356
|
},
|
|
354
357
|
"operator": {
|
|
@@ -385,7 +388,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
|
|
|
385
388
|
},
|
|
386
389
|
"color": {
|
|
387
390
|
"type": "string",
|
|
388
|
-
"pattern": "
|
|
391
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
389
392
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
390
393
|
},
|
|
391
394
|
"operator": {
|
|
@@ -426,7 +429,7 @@ Append one measure color rule, eg. color marks red when Sales is below 100. Earl
|
|
|
426
429
|
},
|
|
427
430
|
"color": {
|
|
428
431
|
"type": "string",
|
|
429
|
-
"pattern": "
|
|
432
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
430
433
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
431
434
|
},
|
|
432
435
|
"operator": {
|
|
@@ -504,7 +507,7 @@ Add a shaded band on the dimension axis between two raw dimension values (inclus
|
|
|
504
507
|
"color": {
|
|
505
508
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
506
509
|
"type": "string",
|
|
507
|
-
"pattern": "
|
|
510
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
508
511
|
},
|
|
509
512
|
"label": {
|
|
510
513
|
"description": "Text drawn inside the band",
|
|
@@ -694,7 +697,7 @@ Add a shaded band on the primary measure axis between two measure values
|
|
|
694
697
|
"color": {
|
|
695
698
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
696
699
|
"type": "string",
|
|
697
|
-
"pattern": "
|
|
700
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
698
701
|
},
|
|
699
702
|
"label": {
|
|
700
703
|
"description": "Text drawn inside the band",
|
|
@@ -923,7 +926,7 @@ Add a reference line at a value on the x or y axis, with an optional label, colo
|
|
|
923
926
|
"anyOf": [
|
|
924
927
|
{
|
|
925
928
|
"type": "string",
|
|
926
|
-
"pattern": "
|
|
929
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
927
930
|
},
|
|
928
931
|
{
|
|
929
932
|
"type": "null"
|
|
@@ -1972,7 +1975,7 @@ Change the color of axis value labels
|
|
|
1972
1975
|
"anyOf": [
|
|
1973
1976
|
{
|
|
1974
1977
|
"type": "string",
|
|
1975
|
-
"pattern": "
|
|
1978
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
1976
1979
|
},
|
|
1977
1980
|
{
|
|
1978
1981
|
"type": "null"
|
|
@@ -1990,6 +1993,34 @@ Change the color of axis value labels
|
|
|
1990
1993
|
}
|
|
1991
1994
|
```
|
|
1992
1995
|
|
|
1996
|
+
## `setAxisLabelWrap`
|
|
1997
|
+
|
|
1998
|
+
Wrap axis labels
|
|
1999
|
+
|
|
2000
|
+
Wrap category axis labels onto up to labelWrapLines lines instead of tilting them
|
|
2001
|
+
|
|
2002
|
+
**Payload schema**
|
|
2003
|
+
|
|
2004
|
+
```json
|
|
2005
|
+
{
|
|
2006
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2007
|
+
"type": "object",
|
|
2008
|
+
"properties": {
|
|
2009
|
+
"labelWrap": {
|
|
2010
|
+
"type": "boolean"
|
|
2011
|
+
},
|
|
2012
|
+
"labelWrapLines": {
|
|
2013
|
+
"type": "integer",
|
|
2014
|
+
"minimum": 1,
|
|
2015
|
+
"maximum": 10
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
2018
|
+
"required": ["labelWrap"],
|
|
2019
|
+
"additionalProperties": false,
|
|
2020
|
+
"title": "Set axis label wrap schema"
|
|
2021
|
+
}
|
|
2022
|
+
```
|
|
2023
|
+
|
|
1993
2024
|
## `setAxisLineColor`
|
|
1994
2025
|
|
|
1995
2026
|
Axis line color
|
|
@@ -2007,7 +2038,7 @@ Change the color of axis lines
|
|
|
2007
2038
|
"anyOf": [
|
|
2008
2039
|
{
|
|
2009
2040
|
"type": "string",
|
|
2010
|
-
"pattern": "
|
|
2041
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2011
2042
|
},
|
|
2012
2043
|
{
|
|
2013
2044
|
"type": "null"
|
|
@@ -2181,7 +2212,7 @@ Change the color of axis tick marks
|
|
|
2181
2212
|
"anyOf": [
|
|
2182
2213
|
{
|
|
2183
2214
|
"type": "string",
|
|
2184
|
-
"pattern": "
|
|
2215
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2185
2216
|
},
|
|
2186
2217
|
{
|
|
2187
2218
|
"type": "null"
|
|
@@ -2243,7 +2274,7 @@ Change the color of axis titles
|
|
|
2243
2274
|
"anyOf": [
|
|
2244
2275
|
{
|
|
2245
2276
|
"type": "string",
|
|
2246
|
-
"pattern": "
|
|
2277
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2247
2278
|
},
|
|
2248
2279
|
{
|
|
2249
2280
|
"type": "null"
|
|
@@ -2397,7 +2428,7 @@ Set the color of bar borders
|
|
|
2397
2428
|
"anyOf": [
|
|
2398
2429
|
{
|
|
2399
2430
|
"type": "string",
|
|
2400
|
-
"pattern": "
|
|
2431
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2401
2432
|
},
|
|
2402
2433
|
{
|
|
2403
2434
|
"type": "null"
|
|
@@ -2444,7 +2475,7 @@ Adjust the thickness of bar borders
|
|
|
2444
2475
|
|
|
2445
2476
|
Chart palette
|
|
2446
2477
|
|
|
2447
|
-
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
|
|
2448
2479
|
|
|
2449
2480
|
**Payload schema**
|
|
2450
2481
|
|
|
@@ -2469,7 +2500,7 @@ Set the single color used by the chart
|
|
|
2469
2500
|
{
|
|
2470
2501
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2471
2502
|
"type": "string",
|
|
2472
|
-
"pattern": "
|
|
2503
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2473
2504
|
"title": "Coloring color schema"
|
|
2474
2505
|
}
|
|
2475
2506
|
```
|
|
@@ -2591,6 +2622,55 @@ Set the minimum value of the gradient domain using a number or variable. Applies
|
|
|
2591
2622
|
}
|
|
2592
2623
|
```
|
|
2593
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
|
+
|
|
2594
2674
|
## `setColoringMeasureAggregation`
|
|
2595
2675
|
|
|
2596
2676
|
Coloring measure aggregation
|
|
@@ -2646,7 +2726,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
|
|
|
2646
2726
|
},
|
|
2647
2727
|
"color": {
|
|
2648
2728
|
"type": "string",
|
|
2649
|
-
"pattern": "
|
|
2729
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2650
2730
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2651
2731
|
},
|
|
2652
2732
|
"operator": {
|
|
@@ -2692,7 +2772,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
|
|
|
2692
2772
|
},
|
|
2693
2773
|
"color": {
|
|
2694
2774
|
"type": "string",
|
|
2695
|
-
"pattern": "
|
|
2775
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2696
2776
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2697
2777
|
},
|
|
2698
2778
|
"operator": {
|
|
@@ -2733,7 +2813,7 @@ Replace all value colors, eg. color the dimension value "Happy" dark teal. Value
|
|
|
2733
2813
|
},
|
|
2734
2814
|
"color": {
|
|
2735
2815
|
"type": "string",
|
|
2736
|
-
"pattern": "
|
|
2816
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2737
2817
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2738
2818
|
},
|
|
2739
2819
|
"operator": {
|
|
@@ -2824,7 +2904,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
|
|
|
2824
2904
|
},
|
|
2825
2905
|
"color": {
|
|
2826
2906
|
"type": "string",
|
|
2827
|
-
"pattern": "
|
|
2907
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2828
2908
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2829
2909
|
},
|
|
2830
2910
|
"operator": {
|
|
@@ -2861,7 +2941,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
|
|
|
2861
2941
|
},
|
|
2862
2942
|
"color": {
|
|
2863
2943
|
"type": "string",
|
|
2864
|
-
"pattern": "
|
|
2944
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2865
2945
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2866
2946
|
},
|
|
2867
2947
|
"operator": {
|
|
@@ -2902,7 +2982,7 @@ Replace all measure color rules, eg. color marks red when Sales is below 100. Ru
|
|
|
2902
2982
|
},
|
|
2903
2983
|
"color": {
|
|
2904
2984
|
"type": "string",
|
|
2905
|
-
"pattern": "
|
|
2985
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$",
|
|
2906
2986
|
"description": "Color applied when the condition matches, as #RRGGBB or #RRGGBBAA"
|
|
2907
2987
|
},
|
|
2908
2988
|
"operator": {
|
|
@@ -2990,7 +3070,7 @@ Replace the whole custom gradient with a provided list of colors
|
|
|
2990
3070
|
"type": "array",
|
|
2991
3071
|
"items": {
|
|
2992
3072
|
"type": "string",
|
|
2993
|
-
"pattern": "
|
|
3073
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
2994
3074
|
}
|
|
2995
3075
|
}
|
|
2996
3076
|
},
|
|
@@ -3059,7 +3139,7 @@ Replace the whole custom categorical palette with a provided list of colors and
|
|
|
3059
3139
|
"type": "array",
|
|
3060
3140
|
"items": {
|
|
3061
3141
|
"type": "string",
|
|
3062
|
-
"pattern": "
|
|
3142
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
3063
3143
|
}
|
|
3064
3144
|
}
|
|
3065
3145
|
},
|
|
@@ -3098,7 +3178,7 @@ Replace all shaded bands on the dimension axis. Each band fills the plot between
|
|
|
3098
3178
|
"color": {
|
|
3099
3179
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
3100
3180
|
"type": "string",
|
|
3101
|
-
"pattern": "
|
|
3181
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
3102
3182
|
},
|
|
3103
3183
|
"label": {
|
|
3104
3184
|
"description": "Text drawn inside the band",
|
|
@@ -3204,6 +3284,7 @@ Set the display format type used by a dimension. This changes label formatting o
|
|
|
3204
3284
|
"abbreviationNoDecimal",
|
|
3205
3285
|
"abbreviation1Decimal",
|
|
3206
3286
|
"abbreviation2Decimal",
|
|
3287
|
+
"abbreviationCompact",
|
|
3207
3288
|
"percentageNoDecimal",
|
|
3208
3289
|
"percentage1Decimal",
|
|
3209
3290
|
"percentage2Decimal",
|
|
@@ -3527,7 +3608,7 @@ Change the color of legend text labels
|
|
|
3527
3608
|
"anyOf": [
|
|
3528
3609
|
{
|
|
3529
3610
|
"type": "string",
|
|
3530
|
-
"pattern": "
|
|
3611
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
3531
3612
|
},
|
|
3532
3613
|
{
|
|
3533
3614
|
"type": "null"
|
|
@@ -5211,7 +5292,7 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
|
|
|
5211
5292
|
"color": {
|
|
5212
5293
|
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
5213
5294
|
"type": "string",
|
|
5214
|
-
"pattern": "
|
|
5295
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
5215
5296
|
},
|
|
5216
5297
|
"label": {
|
|
5217
5298
|
"description": "Text drawn inside the band",
|
|
@@ -5230,6 +5311,36 @@ Replace all shaded bands on the primary measure axis. Each band fills the plot b
|
|
|
5230
5311
|
}
|
|
5231
5312
|
```
|
|
5232
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
|
+
|
|
5233
5344
|
## `setMeasureCurrency`
|
|
5234
5345
|
|
|
5235
5346
|
Measure currency
|
|
@@ -5317,7 +5428,7 @@ Set the backdrop color behind measure data labels
|
|
|
5317
5428
|
"anyOf": [
|
|
5318
5429
|
{
|
|
5319
5430
|
"type": "string",
|
|
5320
|
-
"pattern": "
|
|
5431
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
5321
5432
|
},
|
|
5322
5433
|
{
|
|
5323
5434
|
"type": "null"
|
|
@@ -5545,7 +5656,7 @@ Set the text color of data labels for a measure
|
|
|
5545
5656
|
"anyOf": [
|
|
5546
5657
|
{
|
|
5547
5658
|
"type": "string",
|
|
5548
|
-
"pattern": "
|
|
5659
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
5549
5660
|
},
|
|
5550
5661
|
{
|
|
5551
5662
|
"type": "null"
|
|
@@ -5915,6 +6026,7 @@ Set the format type used by a measure
|
|
|
5915
6026
|
"abbreviationNoDecimal",
|
|
5916
6027
|
"abbreviation1Decimal",
|
|
5917
6028
|
"abbreviation2Decimal",
|
|
6029
|
+
"abbreviationCompact",
|
|
5918
6030
|
"percentageNoDecimal",
|
|
5919
6031
|
"percentage1Decimal",
|
|
5920
6032
|
"percentage2Decimal",
|
|
@@ -6019,7 +6131,7 @@ Set a color override for a measure
|
|
|
6019
6131
|
},
|
|
6020
6132
|
"graphColor": {
|
|
6021
6133
|
"type": "string",
|
|
6022
|
-
"pattern": "
|
|
6134
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
6023
6135
|
}
|
|
6024
6136
|
},
|
|
6025
6137
|
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "graphColor"],
|
|
@@ -7217,7 +7329,7 @@ Change the value, label, color or width of a reference line, or move it to the o
|
|
|
7217
7329
|
"anyOf": [
|
|
7218
7330
|
{
|
|
7219
7331
|
"type": "string",
|
|
7220
|
-
"pattern": "
|
|
7332
|
+
"pattern": "^(#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})|theme:[a-z][a-zA-Z0-9]*(\\.[a-zA-Z0-9]+)*)$"
|
|
7221
7333
|
},
|
|
7222
7334
|
{
|
|
7223
7335
|
"type": "null"
|