@astrato-io/visualizations 0.9.0 → 0.10.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/README.md +8 -4
- package/THIRD_PARTY_NOTICES.md +163 -14
- package/VISUALIZATION_DEFINITIONS.md +319 -32
- package/chunks/{Button-5CxPEACP.js → Button-CCF851ea.js} +4 -4
- package/chunks/{CircularProgress-DFS-LQb7.js → CircularProgress-yupH6YWs.js} +39 -39
- package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
- package/chunks/{LinearProgress-CjIQfkNA.js → LinearProgress-CyFjN4px.js} +9 -9
- package/chunks/{MenuOption-Cb7B7x6z.js → MenuOption-CQpT79AP.js} +143 -142
- package/chunks/{Title-CtFw1bVg.js → Title-C-p4ZarD.js} +22 -22
- package/chunks/_createAggregator-BF4qG9XK.js +50 -0
- package/chunks/{app-filter-bar.compiler-B9775gLJ.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
- package/chunks/bar-layout-DStC-GNV.js +9 -0
- package/chunks/{bar.compiler-B7wlH_Ro.js → bar.compiler-CQAu8KL8.js} +102 -84
- package/chunks/{builder-Dxo7D7c6.js → builder-CScg1TOS.js} +71 -38
- package/chunks/color-rules-DYJL4fIW.js +15 -0
- package/chunks/color-settings-DJFoFTip.js +5 -0
- package/chunks/{coloring-B-Wa8D5P.js → coloring-9jU3s_-p.js} +41 -41
- package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
- package/chunks/defaults-cyNhn37t.js +3 -0
- package/chunks/{definitions-DNpzD9tY.js → definitions-C4grxhye.js} +613 -401
- package/chunks/{escobar-C4Nm3eJ7.js → escobar-CjirINHP.js} +5326 -5079
- package/chunks/{extend-preset-BVKFtoe-.js → extend-preset-D-l9u_we.js} +974 -909
- package/chunks/{filter.compiler-BlS3zoy_.js → filter.compiler-lji2Acgn.js} +10 -10
- package/chunks/{filtering-CGuLpg7u.js → filtering-C1zakrrX.js} +385 -429
- package/chunks/handlers-ZviIUC-j.js +15387 -0
- package/chunks/{icon-picker-styles-DYQgVEKG.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
- package/chunks/isEqual-Ch9OEye3.js +16 -0
- package/chunks/{isFocusVisible-B1_z03UT.js → isFocusVisible-CgMP0qkR.js} +1 -1
- package/chunks/label-format-type-C46pzgx7.js +17 -0
- package/chunks/{line.compiler-Bo9i9qag.js → line.compiler-De5fiKuR.js} +9 -9
- package/chunks/{logger-3lng-wOw.js → logger-CKRjhSHQ.js} +71 -64
- package/chunks/map.compiler-CKzorLgK.js +345 -0
- package/chunks/{metadata-Fmx1swpK.js → metadata-Bb9pTXrq.js} +1 -1
- package/chunks/{number.compiler-CdLd5aGW.js → number.compiler-CaTmJkmi.js} +7 -7
- package/chunks/operations-DZoY50VX.js +31297 -0
- package/chunks/{range-CzO4isKK.js → range-D1BTmFMp.js} +2 -2
- package/chunks/{react-dom-BwZT0N3F.js → react-dom-Dgv2azN2.js} +70 -70
- package/chunks/{render-wrappers-CAuvgMxi.js → render-wrappers-_P3xwu5A.js} +1 -1
- package/chunks/{requirements-CYpVh65U.js → requirements-NHNrR8Ie.js} +59 -57
- package/chunks/shared-UitWpq1J.js +1331 -0
- package/chunks/{standalone-CoQxJ6ov.js → standalone-B0U6c3su.js} +804 -804
- package/chunks/{standalone-C6XDHYAM.js → standalone-BBu90BhK.js} +109 -109
- package/chunks/standalone-BEekPuA12.js +357 -0
- package/chunks/{standalone-CPUiiWNP.js → standalone-BOzHA_d4.js} +41 -41
- package/chunks/standalone-BR2JuRIC.js +422 -0
- package/chunks/{standalone-DuwTOBXH.js → standalone-BapqaniK.js} +592 -592
- package/chunks/{standalone-DWPfdP0A.js → standalone-Bnnr87pc.js} +523 -523
- package/chunks/standalone-BwJqDj2Z.js +396 -0
- package/chunks/{standalone-LFVgLhia.js → standalone-ByKKqT5L.js} +266 -258
- package/chunks/{standalone-BDrQMxLi.js → standalone-CRdDZYeM.js} +1788 -1004
- package/chunks/standalone-CRfDOO1x.js +287 -0
- package/chunks/{standalone-BvWdpUL3.js → standalone-CVknVdUC.js} +21 -18
- package/chunks/standalone-CbPk8bKn.js +580 -0
- package/chunks/{standalone-r4ObFvys.js → standalone-Ck63MZzj.js} +218 -216
- package/chunks/{standalone-Cu73fzSr.js → standalone-DCFY1MAV.js} +6040 -5820
- package/chunks/{standalone-CiaaibTa.js → standalone-DZDGX3aa.js} +174 -174
- package/chunks/standalone-DhfgeJIk.js +1012 -0
- package/chunks/standalone-DibjA73M.js +6 -0
- package/chunks/{standalone-CXniic5x.js → standalone-DtBk_iUz.js} +6 -5
- package/chunks/standalone-DxBAyqAu.js +772 -0
- package/chunks/standalone-KMQPsNsq.js +2 -0
- package/chunks/standalone-MBLSvsrY.js +2 -0
- package/chunks/standalone-U0WJwFlG.js +354 -0
- package/chunks/{standalone-CNkHsynO.js → standalone-swGs70tD.js} +54 -56
- package/chunks/standalone-wgFAVnnm.js +355 -0
- package/chunks/standalone-xGV0dqPV.js +689 -0
- package/chunks/{table.compiler-C1qjqXaT.js → table.compiler-OWSx5MOq.js} +4 -4
- package/chunks/{useFieldName-mWrD_uk_.js → useFieldName-B8iCYyw1.js} +1 -1
- package/chunks/{utils-DYYD4Zzf.js → utils-3Igg6xmO.js} +4740 -4737
- package/chunks/{view-7fH6mGmY.js → view-DdMLZySj.js} +1988 -1632
- package/chunks/{visualization-filters-mVnsnvLP.js → visualization-filters-CzvFHE6M.js} +3158 -2417
- package/chunks/{with-html-element-B0Clt4jY.js → with-html-element-DOfkR3C1.js} +3353 -3160
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +303 -2
- package/docs/operations/combo.md +262 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +148 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +262 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +7 -7
- package/docs/operations/line.md +262 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +148 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +374 -157
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +507 -459
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +72 -67
- package/src/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/available-fields.d.ts +2 -2
- package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
- package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +188 -2
- package/src/definitions/model/definitions/index.d.ts +2 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +305 -0
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +2 -0
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +4 -3
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
- package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
- package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
- package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
- package/src/definitions/model/definitions/types/index.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +1 -1
- package/src/types.d.ts +45 -41
- package/chunks/FieldTypeIcon-pSVQFemC.js +0 -22
- package/chunks/ToggleButton-Br9HCPCv.js +0 -150
- package/chunks/color-rules-CN7TcGrC.js +0 -6
- package/chunks/color-settings-3VRlf_Vw.js +0 -6
- package/chunks/handlers-CMbyj5y1.js +0 -12930
- package/chunks/isEqual-DBg_b35N.js +0 -12
- package/chunks/label-format-type-weq1XfcX.js +0 -8
- package/chunks/operations-HSqnCRvv.js +0 -26324
- package/chunks/shared-DFoJxjVN.js +0 -1218
- package/chunks/standalone-530a5lvf.js +0 -1003
- package/chunks/standalone-5DnapeHH.js +0 -420
- package/chunks/standalone-B4jrf4KE.js +0 -354
- package/chunks/standalone-B6s_xG2u.js +0 -354
- package/chunks/standalone-BMoJXGYe.js +0 -2
- package/chunks/standalone-BfvGggeM2.js +0 -355
- package/chunks/standalone-CMJJIi9v.js +0 -2
- package/chunks/standalone-C_Jd4gkj.js +0 -6
- package/chunks/standalone-DBeXQrwH.js +0 -468
- package/chunks/standalone-DMCwtebn.js +0 -396
- package/chunks/standalone-DpSRmAWx.js +0 -287
- package/chunks/standalone-kzAhwH19.js +0 -689
- package/chunks/standalone-mb7LwEiq.js +0 -3874
- /package/chunks/{src-BOS6SqkZ2.js → src-BOS6SqkZ.js} +0 -0
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.10.0`.
|
|
6
6
|
|
|
7
7
|
[All visualization types](./index.md)
|
|
8
8
|
|
|
@@ -11,11 +11,13 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
11
11
|
## Available operations
|
|
12
12
|
|
|
13
13
|
- [`addDimension`](#adddimension)
|
|
14
|
+
- [`addDimensionAxisBand`](#adddimensionaxisband)
|
|
14
15
|
- [`addMeasure`](#addmeasure)
|
|
15
16
|
- [`addMeasureAdvancedAdditionalDimensionDataField`](#addmeasureadvancedadditionaldimensiondatafield)
|
|
16
17
|
- [`addMeasureAdvancedDimensionDataField`](#addmeasureadvanceddimensiondatafield)
|
|
17
18
|
- [`addMeasureAxisBand`](#addmeasureaxisband)
|
|
18
19
|
- [`addMeasureFilter`](#addmeasurefilter)
|
|
20
|
+
- [`addReferenceLine`](#addreferenceline)
|
|
19
21
|
- [`addResultFilter`](#addresultfilter)
|
|
20
22
|
- [`changeMeasureAggregation`](#changemeasureaggregation)
|
|
21
23
|
- [`changeMeasureAxis`](#changemeasureaxis)
|
|
@@ -29,12 +31,14 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
29
31
|
- [`enableTooltips`](#enabletooltips)
|
|
30
32
|
- [`enableTopN`](#enabletopn)
|
|
31
33
|
- [`removeDimension`](#removedimension)
|
|
34
|
+
- [`removeDimensionAxisBand`](#removedimensionaxisband)
|
|
32
35
|
- [`removeMeasure`](#removemeasure)
|
|
33
36
|
- [`removeMeasureAdvancedAdditionalDimensionDataField`](#removemeasureadvancedadditionaldimensiondatafield)
|
|
34
37
|
- [`removeMeasureAdvancedCompareMeasure`](#removemeasureadvancedcomparemeasure)
|
|
35
38
|
- [`removeMeasureAdvancedDimensionDataField`](#removemeasureadvanceddimensiondatafield)
|
|
36
39
|
- [`removeMeasureAxisBand`](#removemeasureaxisband)
|
|
37
40
|
- [`removeMeasureGraphColor`](#removemeasuregraphcolor)
|
|
41
|
+
- [`removeReferenceLine`](#removereferenceline)
|
|
38
42
|
- [`resetChartPaletteToThemeDefault`](#resetchartpalettetothemedefault)
|
|
39
43
|
- [`setAnimationEnabled`](#setanimationenabled)
|
|
40
44
|
- [`setAxisLabelColor`](#setaxislabelcolor)
|
|
@@ -53,6 +57,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
53
57
|
- [`setComboMeasureGraphType`](#setcombomeasuregraphtype)
|
|
54
58
|
- [`setCustomNullValue`](#setcustomnullvalue)
|
|
55
59
|
- [`setCustomPaletteColors`](#setcustompalettecolors)
|
|
60
|
+
- [`setDimensionAxisBands`](#setdimensionaxisbands)
|
|
56
61
|
- [`setDimensionFormatString`](#setdimensionformatstring)
|
|
57
62
|
- [`setDimensionFormatType`](#setdimensionformattype)
|
|
58
63
|
- [`setDimensionTemporalGrouping`](#setdimensiontemporalgrouping)
|
|
@@ -140,6 +145,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
140
145
|
- [`toggleSortingItem`](#togglesortingitem)
|
|
141
146
|
- [`updateDimension`](#updatedimension)
|
|
142
147
|
- [`updateMeasure`](#updatemeasure)
|
|
148
|
+
- [`updateReferenceLine`](#updatereferenceline)
|
|
143
149
|
|
|
144
150
|
## `addDimension`
|
|
145
151
|
|
|
@@ -165,6 +171,43 @@ Add a new dimension to the chart
|
|
|
165
171
|
}
|
|
166
172
|
```
|
|
167
173
|
|
|
174
|
+
## `addDimensionAxisBand`
|
|
175
|
+
|
|
176
|
+
Add dimension axis band
|
|
177
|
+
|
|
178
|
+
Add a shaded band on the dimension axis between two raw dimension values (inclusive for categories)
|
|
179
|
+
|
|
180
|
+
**Payload schema**
|
|
181
|
+
|
|
182
|
+
```json
|
|
183
|
+
{
|
|
184
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
185
|
+
"type": "object",
|
|
186
|
+
"properties": {
|
|
187
|
+
"start": {
|
|
188
|
+
"description": "Raw dimension value: number for numeric/bin axes, ISO 8601 date or date-time with an uppercase T and Z (for example 2026-10-01 or 2026-10-01T12:30:00Z) or epoch milliseconds for dates, exact number/string/boolean for categories. Dates without an offset use UTC. Discrete endpoints must exist in the current data. Band start, inclusive for categories",
|
|
189
|
+
"type": ["number", "string", "boolean"]
|
|
190
|
+
},
|
|
191
|
+
"end": {
|
|
192
|
+
"description": "Raw dimension value: number for numeric/bin axes, ISO 8601 date or date-time with an uppercase T and Z (for example 2026-10-01 or 2026-10-01T12:30:00Z) or epoch milliseconds for dates, exact number/string/boolean for categories. Dates without an offset use UTC. Discrete endpoints must exist in the current data. Band end, inclusive for categories",
|
|
193
|
+
"type": ["number", "string", "boolean"]
|
|
194
|
+
},
|
|
195
|
+
"color": {
|
|
196
|
+
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
197
|
+
"type": "string",
|
|
198
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
199
|
+
},
|
|
200
|
+
"label": {
|
|
201
|
+
"description": "Text drawn inside the band",
|
|
202
|
+
"type": "string"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"required": ["start", "end"],
|
|
206
|
+
"additionalProperties": false,
|
|
207
|
+
"title": "Add dimension axis band schema"
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
168
211
|
## `addMeasure`
|
|
169
212
|
|
|
170
213
|
Add measure
|
|
@@ -540,6 +583,57 @@ Add another measure filter before aggregation. Keeps existing filters.
|
|
|
540
583
|
}
|
|
541
584
|
```
|
|
542
585
|
|
|
586
|
+
## `addReferenceLine`
|
|
587
|
+
|
|
588
|
+
Add reference line
|
|
589
|
+
|
|
590
|
+
Add a reference line at a value on the x or y axis, with an optional label, color and width
|
|
591
|
+
|
|
592
|
+
**Payload schema**
|
|
593
|
+
|
|
594
|
+
```json
|
|
595
|
+
{
|
|
596
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
597
|
+
"type": "object",
|
|
598
|
+
"properties": {
|
|
599
|
+
"axis": {
|
|
600
|
+
"type": "string",
|
|
601
|
+
"enum": ["x", "y"],
|
|
602
|
+
"description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
|
|
603
|
+
},
|
|
604
|
+
"value": {
|
|
605
|
+
"description": "Axis value to draw the line at: a number on a measure axis, the category name on a category axis, and a number of epoch milliseconds on a date axis (a date string is accepted but draws nothing)",
|
|
606
|
+
"type": ["string", "number"]
|
|
607
|
+
},
|
|
608
|
+
"label": {
|
|
609
|
+
"description": "Text drawn next to the line",
|
|
610
|
+
"type": "string"
|
|
611
|
+
},
|
|
612
|
+
"color": {
|
|
613
|
+
"description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
|
|
614
|
+
"anyOf": [
|
|
615
|
+
{
|
|
616
|
+
"type": "string",
|
|
617
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"type": "null"
|
|
621
|
+
}
|
|
622
|
+
]
|
|
623
|
+
},
|
|
624
|
+
"strokeWidth": {
|
|
625
|
+
"description": "Line width in pixels, 0 to 50",
|
|
626
|
+
"type": "number",
|
|
627
|
+
"minimum": 0,
|
|
628
|
+
"maximum": 50
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"required": ["axis", "value"],
|
|
632
|
+
"additionalProperties": false,
|
|
633
|
+
"title": "Add reference line schema"
|
|
634
|
+
}
|
|
635
|
+
```
|
|
636
|
+
|
|
543
637
|
## `addResultFilter`
|
|
544
638
|
|
|
545
639
|
Add result filter
|
|
@@ -1021,6 +1115,32 @@ Remove a dimension from the chart
|
|
|
1021
1115
|
}
|
|
1022
1116
|
```
|
|
1023
1117
|
|
|
1118
|
+
## `removeDimensionAxisBand`
|
|
1119
|
+
|
|
1120
|
+
Remove dimension axis band
|
|
1121
|
+
|
|
1122
|
+
Remove one shaded band from the dimension axis by its position
|
|
1123
|
+
|
|
1124
|
+
**Payload schema**
|
|
1125
|
+
|
|
1126
|
+
```json
|
|
1127
|
+
{
|
|
1128
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1129
|
+
"type": "object",
|
|
1130
|
+
"properties": {
|
|
1131
|
+
"index": {
|
|
1132
|
+
"type": "integer",
|
|
1133
|
+
"minimum": 0,
|
|
1134
|
+
"maximum": 9007199254740991,
|
|
1135
|
+
"description": "Zero-based position of the band to remove"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
"required": ["index"],
|
|
1139
|
+
"additionalProperties": false,
|
|
1140
|
+
"title": "Remove dimension axis band schema"
|
|
1141
|
+
}
|
|
1142
|
+
```
|
|
1143
|
+
|
|
1024
1144
|
## `removeMeasure`
|
|
1025
1145
|
|
|
1026
1146
|
Remove measure
|
|
@@ -1225,6 +1345,37 @@ Remove a measure color override
|
|
|
1225
1345
|
}
|
|
1226
1346
|
```
|
|
1227
1347
|
|
|
1348
|
+
## `removeReferenceLine`
|
|
1349
|
+
|
|
1350
|
+
Remove reference line
|
|
1351
|
+
|
|
1352
|
+
Remove one reference line by its axis and position
|
|
1353
|
+
|
|
1354
|
+
**Payload schema**
|
|
1355
|
+
|
|
1356
|
+
```json
|
|
1357
|
+
{
|
|
1358
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1359
|
+
"type": "object",
|
|
1360
|
+
"properties": {
|
|
1361
|
+
"axis": {
|
|
1362
|
+
"type": "string",
|
|
1363
|
+
"enum": ["x", "y"],
|
|
1364
|
+
"description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
|
|
1365
|
+
},
|
|
1366
|
+
"index": {
|
|
1367
|
+
"type": "integer",
|
|
1368
|
+
"minimum": 0,
|
|
1369
|
+
"maximum": 9007199254740991,
|
|
1370
|
+
"description": "Zero-based position of the line within its axis"
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1373
|
+
"required": ["axis", "index"],
|
|
1374
|
+
"additionalProperties": false,
|
|
1375
|
+
"title": "Remove reference line schema"
|
|
1376
|
+
}
|
|
1377
|
+
```
|
|
1378
|
+
|
|
1228
1379
|
## `resetChartPaletteToThemeDefault`
|
|
1229
1380
|
|
|
1230
1381
|
Reset chart palette
|
|
@@ -1725,6 +1876,54 @@ Replace the whole custom categorical palette with a provided list of colors and
|
|
|
1725
1876
|
}
|
|
1726
1877
|
```
|
|
1727
1878
|
|
|
1879
|
+
## `setDimensionAxisBands`
|
|
1880
|
+
|
|
1881
|
+
Dimension axis bands
|
|
1882
|
+
|
|
1883
|
+
Replace all shaded bands on the dimension axis. Each band fills the plot between two raw dimension values (inclusive for categories)
|
|
1884
|
+
|
|
1885
|
+
**Payload schema**
|
|
1886
|
+
|
|
1887
|
+
```json
|
|
1888
|
+
{
|
|
1889
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1890
|
+
"type": "object",
|
|
1891
|
+
"properties": {
|
|
1892
|
+
"bands": {
|
|
1893
|
+
"type": "array",
|
|
1894
|
+
"items": {
|
|
1895
|
+
"type": "object",
|
|
1896
|
+
"properties": {
|
|
1897
|
+
"start": {
|
|
1898
|
+
"description": "Raw dimension value: number for numeric/bin axes, ISO 8601 date or date-time with an uppercase T and Z (for example 2026-10-01 or 2026-10-01T12:30:00Z) or epoch milliseconds for dates, exact number/string/boolean for categories. Dates without an offset use UTC. Discrete endpoints must exist in the current data. Band start, inclusive for categories",
|
|
1899
|
+
"type": ["number", "string", "boolean"]
|
|
1900
|
+
},
|
|
1901
|
+
"end": {
|
|
1902
|
+
"description": "Raw dimension value: number for numeric/bin axes, ISO 8601 date or date-time with an uppercase T and Z (for example 2026-10-01 or 2026-10-01T12:30:00Z) or epoch milliseconds for dates, exact number/string/boolean for categories. Dates without an offset use UTC. Discrete endpoints must exist in the current data. Band end, inclusive for categories",
|
|
1903
|
+
"type": ["number", "string", "boolean"]
|
|
1904
|
+
},
|
|
1905
|
+
"color": {
|
|
1906
|
+
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
1907
|
+
"type": "string",
|
|
1908
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
1909
|
+
},
|
|
1910
|
+
"label": {
|
|
1911
|
+
"description": "Text drawn inside the band",
|
|
1912
|
+
"type": "string"
|
|
1913
|
+
}
|
|
1914
|
+
},
|
|
1915
|
+
"required": ["start", "end"],
|
|
1916
|
+
"additionalProperties": false
|
|
1917
|
+
},
|
|
1918
|
+
"description": "Bands to draw, in order; an empty array removes all bands"
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
"required": ["bands"],
|
|
1922
|
+
"additionalProperties": false,
|
|
1923
|
+
"title": "Set dimension axis bands schema"
|
|
1924
|
+
}
|
|
1925
|
+
```
|
|
1926
|
+
|
|
1728
1927
|
## `setDimensionFormatString`
|
|
1729
1928
|
|
|
1730
1929
|
Dimension format string
|
|
@@ -5802,3 +6001,65 @@ Modify properties of an existing measure
|
|
|
5802
6001
|
"title": "Update measure schema"
|
|
5803
6002
|
}
|
|
5804
6003
|
```
|
|
6004
|
+
|
|
6005
|
+
## `updateReferenceLine`
|
|
6006
|
+
|
|
6007
|
+
Update reference line
|
|
6008
|
+
|
|
6009
|
+
Change the value, label, color or width of a reference line, or move it to the other axis. Omitted fields keep their value
|
|
6010
|
+
|
|
6011
|
+
**Payload schema**
|
|
6012
|
+
|
|
6013
|
+
```json
|
|
6014
|
+
{
|
|
6015
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6016
|
+
"type": "object",
|
|
6017
|
+
"properties": {
|
|
6018
|
+
"axis": {
|
|
6019
|
+
"type": "string",
|
|
6020
|
+
"enum": ["x", "y"],
|
|
6021
|
+
"description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
|
|
6022
|
+
},
|
|
6023
|
+
"index": {
|
|
6024
|
+
"type": "integer",
|
|
6025
|
+
"minimum": 0,
|
|
6026
|
+
"maximum": 9007199254740991,
|
|
6027
|
+
"description": "Zero-based position of the line within its axis, as getReferenceLines lists"
|
|
6028
|
+
},
|
|
6029
|
+
"value": {
|
|
6030
|
+
"description": "Axis value to draw the line at: a number on a measure axis, the category name on a category axis, and a number of epoch milliseconds on a date axis (a date string is accepted but draws nothing)",
|
|
6031
|
+
"type": ["string", "number"]
|
|
6032
|
+
},
|
|
6033
|
+
"newAxis": {
|
|
6034
|
+
"description": "Move the line to this axis; it is appended after the existing lines",
|
|
6035
|
+
"type": "string",
|
|
6036
|
+
"enum": ["x", "y"]
|
|
6037
|
+
},
|
|
6038
|
+
"label": {
|
|
6039
|
+
"description": "Text drawn next to the line",
|
|
6040
|
+
"type": "string"
|
|
6041
|
+
},
|
|
6042
|
+
"color": {
|
|
6043
|
+
"description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
|
|
6044
|
+
"anyOf": [
|
|
6045
|
+
{
|
|
6046
|
+
"type": "string",
|
|
6047
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
6048
|
+
},
|
|
6049
|
+
{
|
|
6050
|
+
"type": "null"
|
|
6051
|
+
}
|
|
6052
|
+
]
|
|
6053
|
+
},
|
|
6054
|
+
"strokeWidth": {
|
|
6055
|
+
"description": "Line width in pixels, 0 to 50",
|
|
6056
|
+
"type": "number",
|
|
6057
|
+
"minimum": 0,
|
|
6058
|
+
"maximum": 50
|
|
6059
|
+
}
|
|
6060
|
+
},
|
|
6061
|
+
"required": ["axis", "index"],
|
|
6062
|
+
"additionalProperties": false,
|
|
6063
|
+
"title": "Update reference line schema"
|
|
6064
|
+
}
|
|
6065
|
+
```
|
package/docs/operations/dot.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `dot` operations
|
|
4
4
|
|
|
5
|
-
Reference for `@astrato-io/visualizations@0.
|
|
5
|
+
Reference for `@astrato-io/visualizations@0.10.0`.
|
|
6
6
|
|
|
7
7
|
[All visualization types](./index.md)
|
|
8
8
|
|
|
@@ -17,6 +17,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
17
17
|
- [`addMeasureAdvancedAdditionalDimensionDataField`](#addmeasureadvancedadditionaldimensiondatafield)
|
|
18
18
|
- [`addMeasureAdvancedDimensionDataField`](#addmeasureadvanceddimensiondatafield)
|
|
19
19
|
- [`addMeasureFilter`](#addmeasurefilter)
|
|
20
|
+
- [`addReferenceLine`](#addreferenceline)
|
|
20
21
|
- [`addResultFilter`](#addresultfilter)
|
|
21
22
|
- [`changeMeasureAggregation`](#changemeasureaggregation)
|
|
22
23
|
- [`clearMeasureFilter`](#clearmeasurefilter)
|
|
@@ -31,6 +32,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
31
32
|
- [`removeMeasureAdvancedAdditionalDimensionDataField`](#removemeasureadvancedadditionaldimensiondatafield)
|
|
32
33
|
- [`removeMeasureAdvancedCompareMeasure`](#removemeasureadvancedcomparemeasure)
|
|
33
34
|
- [`removeMeasureAdvancedDimensionDataField`](#removemeasureadvanceddimensiondatafield)
|
|
35
|
+
- [`removeReferenceLine`](#removereferenceline)
|
|
34
36
|
- [`resetChartPaletteToThemeDefault`](#resetchartpalettetothemedefault)
|
|
35
37
|
- [`setAnimationEnabled`](#setanimationenabled)
|
|
36
38
|
- [`setAxisLabelColor`](#setaxislabelcolor)
|
|
@@ -118,6 +120,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
118
120
|
- [`toggleMeasure`](#togglemeasure)
|
|
119
121
|
- [`updateDimension`](#updatedimension)
|
|
120
122
|
- [`updateMeasure`](#updatemeasure)
|
|
123
|
+
- [`updateReferenceLine`](#updatereferenceline)
|
|
121
124
|
|
|
122
125
|
## `addColoringOverwrite`
|
|
123
126
|
|
|
@@ -763,6 +766,57 @@ Add another measure filter before aggregation. Keeps existing filters.
|
|
|
763
766
|
}
|
|
764
767
|
```
|
|
765
768
|
|
|
769
|
+
## `addReferenceLine`
|
|
770
|
+
|
|
771
|
+
Add reference line
|
|
772
|
+
|
|
773
|
+
Add a reference line at a value on the x or y axis, with an optional label, color and width
|
|
774
|
+
|
|
775
|
+
**Payload schema**
|
|
776
|
+
|
|
777
|
+
```json
|
|
778
|
+
{
|
|
779
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
780
|
+
"type": "object",
|
|
781
|
+
"properties": {
|
|
782
|
+
"axis": {
|
|
783
|
+
"type": "string",
|
|
784
|
+
"enum": ["x", "y"],
|
|
785
|
+
"description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
|
|
786
|
+
},
|
|
787
|
+
"value": {
|
|
788
|
+
"description": "Axis value to draw the line at: a number on a measure axis, the category name on a category axis, and a number of epoch milliseconds on a date axis (a date string is accepted but draws nothing)",
|
|
789
|
+
"type": ["string", "number"]
|
|
790
|
+
},
|
|
791
|
+
"label": {
|
|
792
|
+
"description": "Text drawn next to the line",
|
|
793
|
+
"type": "string"
|
|
794
|
+
},
|
|
795
|
+
"color": {
|
|
796
|
+
"description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
|
|
797
|
+
"anyOf": [
|
|
798
|
+
{
|
|
799
|
+
"type": "string",
|
|
800
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"type": "null"
|
|
804
|
+
}
|
|
805
|
+
]
|
|
806
|
+
},
|
|
807
|
+
"strokeWidth": {
|
|
808
|
+
"description": "Line width in pixels, 0 to 50",
|
|
809
|
+
"type": "number",
|
|
810
|
+
"minimum": 0,
|
|
811
|
+
"maximum": 50
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"required": ["axis", "value"],
|
|
815
|
+
"additionalProperties": false,
|
|
816
|
+
"title": "Add reference line schema"
|
|
817
|
+
}
|
|
818
|
+
```
|
|
819
|
+
|
|
766
820
|
## `addResultFilter`
|
|
767
821
|
|
|
768
822
|
Add result filter
|
|
@@ -1323,6 +1377,37 @@ Remove additional dimension field from nested advanced calculations
|
|
|
1323
1377
|
}
|
|
1324
1378
|
```
|
|
1325
1379
|
|
|
1380
|
+
## `removeReferenceLine`
|
|
1381
|
+
|
|
1382
|
+
Remove reference line
|
|
1383
|
+
|
|
1384
|
+
Remove one reference line by its axis and position
|
|
1385
|
+
|
|
1386
|
+
**Payload schema**
|
|
1387
|
+
|
|
1388
|
+
```json
|
|
1389
|
+
{
|
|
1390
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1391
|
+
"type": "object",
|
|
1392
|
+
"properties": {
|
|
1393
|
+
"axis": {
|
|
1394
|
+
"type": "string",
|
|
1395
|
+
"enum": ["x", "y"],
|
|
1396
|
+
"description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
|
|
1397
|
+
},
|
|
1398
|
+
"index": {
|
|
1399
|
+
"type": "integer",
|
|
1400
|
+
"minimum": 0,
|
|
1401
|
+
"maximum": 9007199254740991,
|
|
1402
|
+
"description": "Zero-based position of the line within its axis"
|
|
1403
|
+
}
|
|
1404
|
+
},
|
|
1405
|
+
"required": ["axis", "index"],
|
|
1406
|
+
"additionalProperties": false,
|
|
1407
|
+
"title": "Remove reference line schema"
|
|
1408
|
+
}
|
|
1409
|
+
```
|
|
1410
|
+
|
|
1326
1411
|
## `resetChartPaletteToThemeDefault`
|
|
1327
1412
|
|
|
1328
1413
|
Reset chart palette
|
|
@@ -5568,3 +5653,65 @@ Modify properties of an existing measure
|
|
|
5568
5653
|
"title": "Update measure schema"
|
|
5569
5654
|
}
|
|
5570
5655
|
```
|
|
5656
|
+
|
|
5657
|
+
## `updateReferenceLine`
|
|
5658
|
+
|
|
5659
|
+
Update reference line
|
|
5660
|
+
|
|
5661
|
+
Change the value, label, color or width of a reference line, or move it to the other axis. Omitted fields keep their value
|
|
5662
|
+
|
|
5663
|
+
**Payload schema**
|
|
5664
|
+
|
|
5665
|
+
```json
|
|
5666
|
+
{
|
|
5667
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
5668
|
+
"type": "object",
|
|
5669
|
+
"properties": {
|
|
5670
|
+
"axis": {
|
|
5671
|
+
"type": "string",
|
|
5672
|
+
"enum": ["x", "y"],
|
|
5673
|
+
"description": "Chart axis the line sits on: \"x\" is the horizontal axis and \"y\" the vertical one. On a vertical bar, line or combo chart y is the measure axis, on a horizontal bar chart x is"
|
|
5674
|
+
},
|
|
5675
|
+
"index": {
|
|
5676
|
+
"type": "integer",
|
|
5677
|
+
"minimum": 0,
|
|
5678
|
+
"maximum": 9007199254740991,
|
|
5679
|
+
"description": "Zero-based position of the line within its axis, as getReferenceLines lists"
|
|
5680
|
+
},
|
|
5681
|
+
"value": {
|
|
5682
|
+
"description": "Axis value to draw the line at: a number on a measure axis, the category name on a category axis, and a number of epoch milliseconds on a date axis (a date string is accepted but draws nothing)",
|
|
5683
|
+
"type": ["string", "number"]
|
|
5684
|
+
},
|
|
5685
|
+
"newAxis": {
|
|
5686
|
+
"description": "Move the line to this axis; it is appended after the existing lines",
|
|
5687
|
+
"type": "string",
|
|
5688
|
+
"enum": ["x", "y"]
|
|
5689
|
+
},
|
|
5690
|
+
"label": {
|
|
5691
|
+
"description": "Text drawn next to the line",
|
|
5692
|
+
"type": "string"
|
|
5693
|
+
},
|
|
5694
|
+
"color": {
|
|
5695
|
+
"description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
|
|
5696
|
+
"anyOf": [
|
|
5697
|
+
{
|
|
5698
|
+
"type": "string",
|
|
5699
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
5700
|
+
},
|
|
5701
|
+
{
|
|
5702
|
+
"type": "null"
|
|
5703
|
+
}
|
|
5704
|
+
]
|
|
5705
|
+
},
|
|
5706
|
+
"strokeWidth": {
|
|
5707
|
+
"description": "Line width in pixels, 0 to 50",
|
|
5708
|
+
"type": "number",
|
|
5709
|
+
"minimum": 0,
|
|
5710
|
+
"maximum": 50
|
|
5711
|
+
}
|
|
5712
|
+
},
|
|
5713
|
+
"required": ["axis", "index"],
|
|
5714
|
+
"additionalProperties": false,
|
|
5715
|
+
"title": "Update reference line schema"
|
|
5716
|
+
}
|
|
5717
|
+
```
|
package/docs/operations/gauge.md
CHANGED