@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `histogram` operations
|
|
4
4
|
|
|
5
|
-
Reference for `@astrato-io/visualizations@0.
|
|
5
|
+
Reference for `@astrato-io/visualizations@0.10.0`.
|
|
6
6
|
|
|
7
7
|
[All visualization types](./index.md)
|
|
8
8
|
|
|
@@ -11,10 +11,14 @@ 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
|
- [`addMeasureAxisBand`](#addmeasureaxisband)
|
|
16
|
+
- [`addReferenceLine`](#addreferenceline)
|
|
15
17
|
- [`duplicateDimension`](#duplicatedimension)
|
|
16
18
|
- [`removeDimension`](#removedimension)
|
|
19
|
+
- [`removeDimensionAxisBand`](#removedimensionaxisband)
|
|
17
20
|
- [`removeMeasureAxisBand`](#removemeasureaxisband)
|
|
21
|
+
- [`removeReferenceLine`](#removereferenceline)
|
|
18
22
|
- [`setAnimationEnabled`](#setanimationenabled)
|
|
19
23
|
- [`setAxisLabelColor`](#setaxislabelcolor)
|
|
20
24
|
- [`setAxisLineColor`](#setaxislinecolor)
|
|
@@ -26,6 +30,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
26
30
|
- [`setAxisTitle`](#setaxistitle)
|
|
27
31
|
- [`setAxisTitleColor`](#setaxistitlecolor)
|
|
28
32
|
- [`setColoringType`](#setcoloringtype)
|
|
33
|
+
- [`setDimensionAxisBands`](#setdimensionaxisbands)
|
|
29
34
|
- [`setDimensionFormatString`](#setdimensionformatstring)
|
|
30
35
|
- [`setDimensionFormatType`](#setdimensionformattype)
|
|
31
36
|
- [`setDimensionTemporalGrouping`](#setdimensiontemporalgrouping)
|
|
@@ -57,6 +62,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
57
62
|
- [`toggleDimension`](#toggledimension)
|
|
58
63
|
- [`toggleDimensionByName`](#toggledimensionbyname)
|
|
59
64
|
- [`updateDimension`](#updatedimension)
|
|
65
|
+
- [`updateReferenceLine`](#updatereferenceline)
|
|
60
66
|
|
|
61
67
|
## `addDimension`
|
|
62
68
|
|
|
@@ -82,6 +88,43 @@ Add a new dimension to the chart
|
|
|
82
88
|
}
|
|
83
89
|
```
|
|
84
90
|
|
|
91
|
+
## `addDimensionAxisBand`
|
|
92
|
+
|
|
93
|
+
Add dimension axis band
|
|
94
|
+
|
|
95
|
+
Add a shaded band on the dimension axis between two raw dimension values (inclusive for categories)
|
|
96
|
+
|
|
97
|
+
**Payload schema**
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{
|
|
101
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
102
|
+
"type": "object",
|
|
103
|
+
"properties": {
|
|
104
|
+
"start": {
|
|
105
|
+
"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",
|
|
106
|
+
"type": ["number", "string", "boolean"]
|
|
107
|
+
},
|
|
108
|
+
"end": {
|
|
109
|
+
"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",
|
|
110
|
+
"type": ["number", "string", "boolean"]
|
|
111
|
+
},
|
|
112
|
+
"color": {
|
|
113
|
+
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
114
|
+
"type": "string",
|
|
115
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
116
|
+
},
|
|
117
|
+
"label": {
|
|
118
|
+
"description": "Text drawn inside the band",
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": ["start", "end"],
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"title": "Add dimension axis band schema"
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
85
128
|
## `addMeasureAxisBand`
|
|
86
129
|
|
|
87
130
|
Add measure axis band
|
|
@@ -119,6 +162,57 @@ Add a shaded band on the primary measure axis between two measure values
|
|
|
119
162
|
}
|
|
120
163
|
```
|
|
121
164
|
|
|
165
|
+
## `addReferenceLine`
|
|
166
|
+
|
|
167
|
+
Add reference line
|
|
168
|
+
|
|
169
|
+
Add a reference line at a value on the x or y axis, with an optional label, color and width
|
|
170
|
+
|
|
171
|
+
**Payload schema**
|
|
172
|
+
|
|
173
|
+
```json
|
|
174
|
+
{
|
|
175
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
176
|
+
"type": "object",
|
|
177
|
+
"properties": {
|
|
178
|
+
"axis": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"enum": ["x", "y"],
|
|
181
|
+
"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"
|
|
182
|
+
},
|
|
183
|
+
"value": {
|
|
184
|
+
"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)",
|
|
185
|
+
"type": ["string", "number"]
|
|
186
|
+
},
|
|
187
|
+
"label": {
|
|
188
|
+
"description": "Text drawn next to the line",
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"color": {
|
|
192
|
+
"description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
|
|
193
|
+
"anyOf": [
|
|
194
|
+
{
|
|
195
|
+
"type": "string",
|
|
196
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "null"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"strokeWidth": {
|
|
204
|
+
"description": "Line width in pixels, 0 to 50",
|
|
205
|
+
"type": "number",
|
|
206
|
+
"minimum": 0,
|
|
207
|
+
"maximum": 50
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"required": ["axis", "value"],
|
|
211
|
+
"additionalProperties": false,
|
|
212
|
+
"title": "Add reference line schema"
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
|
|
122
216
|
## `duplicateDimension`
|
|
123
217
|
|
|
124
218
|
Duplicate dimension
|
|
@@ -175,6 +269,32 @@ Remove a dimension from the chart
|
|
|
175
269
|
}
|
|
176
270
|
```
|
|
177
271
|
|
|
272
|
+
## `removeDimensionAxisBand`
|
|
273
|
+
|
|
274
|
+
Remove dimension axis band
|
|
275
|
+
|
|
276
|
+
Remove one shaded band from the dimension axis by its position
|
|
277
|
+
|
|
278
|
+
**Payload schema**
|
|
279
|
+
|
|
280
|
+
```json
|
|
281
|
+
{
|
|
282
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
283
|
+
"type": "object",
|
|
284
|
+
"properties": {
|
|
285
|
+
"index": {
|
|
286
|
+
"type": "integer",
|
|
287
|
+
"minimum": 0,
|
|
288
|
+
"maximum": 9007199254740991,
|
|
289
|
+
"description": "Zero-based position of the band to remove"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"required": ["index"],
|
|
293
|
+
"additionalProperties": false,
|
|
294
|
+
"title": "Remove dimension axis band schema"
|
|
295
|
+
}
|
|
296
|
+
```
|
|
297
|
+
|
|
178
298
|
## `removeMeasureAxisBand`
|
|
179
299
|
|
|
180
300
|
Remove measure axis band
|
|
@@ -201,6 +321,37 @@ Remove one shaded band from the primary measure axis by its position
|
|
|
201
321
|
}
|
|
202
322
|
```
|
|
203
323
|
|
|
324
|
+
## `removeReferenceLine`
|
|
325
|
+
|
|
326
|
+
Remove reference line
|
|
327
|
+
|
|
328
|
+
Remove one reference line by its axis and position
|
|
329
|
+
|
|
330
|
+
**Payload schema**
|
|
331
|
+
|
|
332
|
+
```json
|
|
333
|
+
{
|
|
334
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
335
|
+
"type": "object",
|
|
336
|
+
"properties": {
|
|
337
|
+
"axis": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"enum": ["x", "y"],
|
|
340
|
+
"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"
|
|
341
|
+
},
|
|
342
|
+
"index": {
|
|
343
|
+
"type": "integer",
|
|
344
|
+
"minimum": 0,
|
|
345
|
+
"maximum": 9007199254740991,
|
|
346
|
+
"description": "Zero-based position of the line within its axis"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": ["axis", "index"],
|
|
350
|
+
"additionalProperties": false,
|
|
351
|
+
"title": "Remove reference line schema"
|
|
352
|
+
}
|
|
353
|
+
```
|
|
354
|
+
|
|
204
355
|
## `setAnimationEnabled`
|
|
205
356
|
|
|
206
357
|
Animations
|
|
@@ -518,6 +669,54 @@ Set how colors are applied to the chart
|
|
|
518
669
|
}
|
|
519
670
|
```
|
|
520
671
|
|
|
672
|
+
## `setDimensionAxisBands`
|
|
673
|
+
|
|
674
|
+
Dimension axis bands
|
|
675
|
+
|
|
676
|
+
Replace all shaded bands on the dimension axis. Each band fills the plot between two raw dimension values (inclusive for categories)
|
|
677
|
+
|
|
678
|
+
**Payload schema**
|
|
679
|
+
|
|
680
|
+
```json
|
|
681
|
+
{
|
|
682
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
683
|
+
"type": "object",
|
|
684
|
+
"properties": {
|
|
685
|
+
"bands": {
|
|
686
|
+
"type": "array",
|
|
687
|
+
"items": {
|
|
688
|
+
"type": "object",
|
|
689
|
+
"properties": {
|
|
690
|
+
"start": {
|
|
691
|
+
"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",
|
|
692
|
+
"type": ["number", "string", "boolean"]
|
|
693
|
+
},
|
|
694
|
+
"end": {
|
|
695
|
+
"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",
|
|
696
|
+
"type": ["number", "string", "boolean"]
|
|
697
|
+
},
|
|
698
|
+
"color": {
|
|
699
|
+
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
700
|
+
"type": "string",
|
|
701
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
702
|
+
},
|
|
703
|
+
"label": {
|
|
704
|
+
"description": "Text drawn inside the band",
|
|
705
|
+
"type": "string"
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"required": ["start", "end"],
|
|
709
|
+
"additionalProperties": false
|
|
710
|
+
},
|
|
711
|
+
"description": "Bands to draw, in order; an empty array removes all bands"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"required": ["bands"],
|
|
715
|
+
"additionalProperties": false,
|
|
716
|
+
"title": "Set dimension axis bands schema"
|
|
717
|
+
}
|
|
718
|
+
```
|
|
719
|
+
|
|
521
720
|
## `setDimensionFormatString`
|
|
522
721
|
|
|
523
722
|
Dimension format string
|
|
@@ -1854,3 +2053,65 @@ Modify properties of an existing dimension
|
|
|
1854
2053
|
"title": "Update dimension schema"
|
|
1855
2054
|
}
|
|
1856
2055
|
```
|
|
2056
|
+
|
|
2057
|
+
## `updateReferenceLine`
|
|
2058
|
+
|
|
2059
|
+
Update reference line
|
|
2060
|
+
|
|
2061
|
+
Change the value, label, color or width of a reference line, or move it to the other axis. Omitted fields keep their value
|
|
2062
|
+
|
|
2063
|
+
**Payload schema**
|
|
2064
|
+
|
|
2065
|
+
```json
|
|
2066
|
+
{
|
|
2067
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2068
|
+
"type": "object",
|
|
2069
|
+
"properties": {
|
|
2070
|
+
"axis": {
|
|
2071
|
+
"type": "string",
|
|
2072
|
+
"enum": ["x", "y"],
|
|
2073
|
+
"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"
|
|
2074
|
+
},
|
|
2075
|
+
"index": {
|
|
2076
|
+
"type": "integer",
|
|
2077
|
+
"minimum": 0,
|
|
2078
|
+
"maximum": 9007199254740991,
|
|
2079
|
+
"description": "Zero-based position of the line within its axis, as getReferenceLines lists"
|
|
2080
|
+
},
|
|
2081
|
+
"value": {
|
|
2082
|
+
"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)",
|
|
2083
|
+
"type": ["string", "number"]
|
|
2084
|
+
},
|
|
2085
|
+
"newAxis": {
|
|
2086
|
+
"description": "Move the line to this axis; it is appended after the existing lines",
|
|
2087
|
+
"type": "string",
|
|
2088
|
+
"enum": ["x", "y"]
|
|
2089
|
+
},
|
|
2090
|
+
"label": {
|
|
2091
|
+
"description": "Text drawn next to the line",
|
|
2092
|
+
"type": "string"
|
|
2093
|
+
},
|
|
2094
|
+
"color": {
|
|
2095
|
+
"description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
|
|
2096
|
+
"anyOf": [
|
|
2097
|
+
{
|
|
2098
|
+
"type": "string",
|
|
2099
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
"type": "null"
|
|
2103
|
+
}
|
|
2104
|
+
]
|
|
2105
|
+
},
|
|
2106
|
+
"strokeWidth": {
|
|
2107
|
+
"description": "Line width in pixels, 0 to 50",
|
|
2108
|
+
"type": "number",
|
|
2109
|
+
"minimum": 0,
|
|
2110
|
+
"maximum": 50
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2113
|
+
"required": ["axis", "index"],
|
|
2114
|
+
"additionalProperties": false,
|
|
2115
|
+
"title": "Update reference line schema"
|
|
2116
|
+
}
|
|
2117
|
+
```
|
package/docs/operations/image.md
CHANGED
package/docs/operations/index.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Visualization operations reference
|
|
4
4
|
|
|
5
|
-
Reference for `@astrato-io/visualizations@0.
|
|
5
|
+
Reference for `@astrato-io/visualizations@0.10.0`.
|
|
6
6
|
|
|
7
7
|
Read the page for your visualization type to find every operation exposed by its standalone metadata, including its description and complete JSON payload schema. These files are included in the installed package under `docs/operations/`; you can read them without importing JavaScript or loading a chart.
|
|
8
8
|
|
|
@@ -19,23 +19,23 @@ This reference describes the standalone operation catalog, rather than the small
|
|
|
19
19
|
| Type | Family | Operations |
|
|
20
20
|
| ------------------------------------------------------- | ------ | ---------- |
|
|
21
21
|
| [`astrato-app-filter-bar`](./astrato-app-filter-bar.md) | filter | 8 |
|
|
22
|
-
| [`bar`](./bar.md) | chart |
|
|
23
|
-
| [`combo`](./combo.md) | chart |
|
|
22
|
+
| [`bar`](./bar.md) | chart | 163 |
|
|
23
|
+
| [`combo`](./combo.md) | chart | 136 |
|
|
24
24
|
| [`date-picker`](./date-picker.md) | filter | 16 |
|
|
25
25
|
| [`distribution-gauge`](./distribution-gauge.md) | chart | 50 |
|
|
26
|
-
| [`dot`](./dot.md) | chart |
|
|
26
|
+
| [`dot`](./dot.md) | chart | 111 |
|
|
27
27
|
| [`filter`](./filter.md) | filter | 33 |
|
|
28
28
|
| [`gauge`](./gauge.md) | chart | 60 |
|
|
29
29
|
| [`heatMap`](./heatMap.md) | chart | 120 |
|
|
30
|
-
| [`histogram`](./histogram.md) | chart |
|
|
30
|
+
| [`histogram`](./histogram.md) | chart | 53 |
|
|
31
31
|
| [`iframe`](./iframe.md) | object | 1 |
|
|
32
32
|
| [`image`](./image.md) | object | 6 |
|
|
33
|
-
| [`line`](./line.md) | chart |
|
|
33
|
+
| [`line`](./line.md) | chart | 150 |
|
|
34
34
|
| [`number`](./number.md) | object | 72 |
|
|
35
35
|
| [`pie`](./pie.md) | chart | 121 |
|
|
36
36
|
| [`radar`](./radar.md) | chart | 81 |
|
|
37
37
|
| [`sankey`](./sankey.md) | chart | 49 |
|
|
38
|
-
| [`scatter`](./scatter.md) | chart |
|
|
38
|
+
| [`scatter`](./scatter.md) | chart | 126 |
|
|
39
39
|
| [`shape`](./shape.md) | object | 14 |
|
|
40
40
|
| [`simpleTextObject`](./simpleTextObject.md) | object | 35 |
|
|
41
41
|
| [`slider`](./slider.md) | filter | 7 |
|