@astrato-io/visualizations 0.8.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 +9 -5
- package/THIRD_PARTY_NOTICES.md +403 -325
- package/VISUALIZATION_DEFINITIONS.md +319 -32
- package/chunks/{Button-BrGKp9Nm.js → Button-CCF851ea.js} +10 -10
- package/chunks/CircularProgress-yupH6YWs.js +765 -0
- package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
- package/chunks/LinearProgress-CyFjN4px.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-CQpT79AP.js} +1391 -1008
- package/chunks/Title-C-p4ZarD.js +1804 -0
- package/chunks/_createAggregator-BF4qG9XK.js +50 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
- package/chunks/bar-layout-DStC-GNV.js +9 -0
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-CQAu8KL8.js} +102 -84
- package/chunks/{builder-DEDvNq1k.js → builder-CScg1TOS.js} +156 -60
- package/chunks/color-rules-DYJL4fIW.js +15 -0
- package/chunks/color-settings-DJFoFTip.js +5 -0
- package/chunks/{coloring-CncX_JRX.js → coloring-9jU3s_-p.js} +41 -41
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
- package/chunks/defaults-cyNhn37t.js +3 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-C4grxhye.js} +612 -400
- package/chunks/{escobar-DRhRMYRE.js → escobar-CjirINHP.js} +5354 -5473
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-D-l9u_we.js} +974 -909
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-lji2Acgn.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-C1zakrrX.js} +570 -390
- package/chunks/handlers-ZviIUC-j.js +15387 -0
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
- package/chunks/isEqual-Ch9OEye3.js +16 -0
- package/chunks/isFocusVisible-CgMP0qkR.js +144 -0
- package/chunks/label-format-type-C46pzgx7.js +17 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-De5fiKuR.js} +6 -6
- package/chunks/{logger-DpQtYQnX.js → logger-CKRjhSHQ.js} +77 -66
- package/chunks/map.compiler-CKzorLgK.js +345 -0
- package/chunks/{metadata-WABZrt7Y.js → metadata-Bb9pTXrq.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CaTmJkmi.js} +4 -4
- package/chunks/operations-DZoY50VX.js +31297 -0
- package/chunks/{range-Bi-7zT0k.js → range-D1BTmFMp.js} +2 -2
- package/chunks/react-dom-Dgv2azN2.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-_P3xwu5A.js} +1 -1
- package/chunks/{requirements-Dvd8jqYF.js → requirements-NHNrR8Ie.js} +55 -53
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/shared-UitWpq1J.js +1331 -0
- package/chunks/standalone-B0U6c3su.js +3638 -0
- package/chunks/{standalone-we5D5MIn.js → standalone-BBu90BhK.js} +113 -113
- package/chunks/standalone-BEekPuA12.js +357 -0
- package/chunks/{standalone-BMTCb10X.js → standalone-BOzHA_d4.js} +41 -41
- package/chunks/standalone-BR2JuRIC.js +422 -0
- package/chunks/{standalone-BGkmozIb.js → standalone-BapqaniK.js} +619 -619
- package/chunks/standalone-Bnnr87pc.js +2009 -0
- package/chunks/standalone-BwJqDj2Z.js +396 -0
- package/chunks/{standalone-BDhPQtzQ.js → standalone-ByKKqT5L.js} +308 -300
- package/chunks/{standalone-vBnBS2YC.js → standalone-CRdDZYeM.js} +1788 -1004
- package/chunks/standalone-CRfDOO1x.js +287 -0
- package/chunks/{standalone-D5Q5ngsD.js → standalone-CVknVdUC.js} +30 -27
- package/chunks/standalone-CbPk8bKn.js +580 -0
- package/chunks/{standalone-CJvIXsQE.js → standalone-Ck63MZzj.js} +234 -232
- package/chunks/{standalone-CM5XcAN5.js → standalone-DCFY1MAV.js} +8075 -7729
- package/chunks/{standalone-DW6NT205.js → standalone-DZDGX3aa.js} +168 -168
- package/chunks/standalone-DhfgeJIk.js +1012 -0
- package/chunks/{standalone-DT0wKji7.js → standalone-DibjA73M.js} +2 -2
- package/chunks/{standalone-XuGksArp.js → standalone-DtBk_iUz.js} +9 -8
- 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-C8ZAEutO.js → standalone-swGs70tD.js} +49 -51
- package/chunks/standalone-wgFAVnnm.js +355 -0
- package/chunks/standalone-xGV0dqPV.js +689 -0
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-OWSx5MOq.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-B8iCYyw1.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-3Igg6xmO.js} +7668 -12779
- package/chunks/{view-BuwQugKb.js → view-DdMLZySj.js} +2430 -2110
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-CzvFHE6M.js} +5205 -4438
- package/chunks/with-html-element-DOfkR3C1.js +16094 -0
- 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 +8 -8
- 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 +439 -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 +523 -469
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +74 -68
- 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 +535 -349
- package/src/definitions/model/definitions/index.d.ts +2 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +406 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +10 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +33 -32
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
- 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/src/visualization-catalog.d.ts +26 -26
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
- package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
- package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
- package/chunks/Title-CO5dP1ma.js +0 -1691
- package/chunks/ToggleButton-KOBAimC1.js +0 -112
- package/chunks/color-rules-CN7TcGrC.js +0 -6
- package/chunks/color-settings-3VRlf_Vw.js +0 -6
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/handlers-TOT-7INo.js +0 -12871
- package/chunks/isEqual-B8loyPsC.js +0 -12
- package/chunks/label-format-type-weq1XfcX.js +0 -8
- package/chunks/operations-Dh4v1Ovt.js +0 -26280
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/shared-Bn4N5QcZ.js +0 -1218
- package/chunks/standalone-B55oyW6c.js +0 -689
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-Bes8srx1.js +0 -354
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-BlMIwpEe.js +0 -1877
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-CLmGb7nn2.js +0 -355
- package/chunks/standalone-CXNP6-xD.js +0 -420
- package/chunks/standalone-DLlyRIE6.js +0 -287
- package/chunks/standalone-DMcI1afI.js +0 -396
- package/chunks/standalone-DN4S1MjT.js +0 -3874
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/standalone-D__XCp-h.js +0 -1003
- package/chunks/standalone-XTgSsTAa.js +0 -354
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
package/docs/operations/line.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `line` 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
|
|
|
@@ -12,11 +12,13 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
12
12
|
|
|
13
13
|
- [`addColoringOverwrite`](#addcoloringoverwrite)
|
|
14
14
|
- [`addDimension`](#adddimension)
|
|
15
|
+
- [`addDimensionAxisBand`](#adddimensionaxisband)
|
|
15
16
|
- [`addMeasure`](#addmeasure)
|
|
16
17
|
- [`addMeasureAdvancedAdditionalDimensionDataField`](#addmeasureadvancedadditionaldimensiondatafield)
|
|
17
18
|
- [`addMeasureAdvancedDimensionDataField`](#addmeasureadvanceddimensiondatafield)
|
|
18
19
|
- [`addMeasureAxisBand`](#addmeasureaxisband)
|
|
19
20
|
- [`addMeasureFilter`](#addmeasurefilter)
|
|
21
|
+
- [`addReferenceLine`](#addreferenceline)
|
|
20
22
|
- [`addResultFilter`](#addresultfilter)
|
|
21
23
|
- [`changeMeasureAggregation`](#changemeasureaggregation)
|
|
22
24
|
- [`changeMeasureAxis`](#changemeasureaxis)
|
|
@@ -31,12 +33,14 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
31
33
|
- [`enableTopN`](#enabletopn)
|
|
32
34
|
- [`removeColoringOverwrite`](#removecoloringoverwrite)
|
|
33
35
|
- [`removeDimension`](#removedimension)
|
|
36
|
+
- [`removeDimensionAxisBand`](#removedimensionaxisband)
|
|
34
37
|
- [`removeMeasure`](#removemeasure)
|
|
35
38
|
- [`removeMeasureAdvancedAdditionalDimensionDataField`](#removemeasureadvancedadditionaldimensiondatafield)
|
|
36
39
|
- [`removeMeasureAdvancedCompareMeasure`](#removemeasureadvancedcomparemeasure)
|
|
37
40
|
- [`removeMeasureAdvancedDimensionDataField`](#removemeasureadvanceddimensiondatafield)
|
|
38
41
|
- [`removeMeasureAxisBand`](#removemeasureaxisband)
|
|
39
42
|
- [`removeMeasureGraphColor`](#removemeasuregraphcolor)
|
|
43
|
+
- [`removeReferenceLine`](#removereferenceline)
|
|
40
44
|
- [`resetChartPaletteToThemeDefault`](#resetchartpalettetothemedefault)
|
|
41
45
|
- [`setAnimationEnabled`](#setanimationenabled)
|
|
42
46
|
- [`setAxisLabelColor`](#setaxislabelcolor)
|
|
@@ -58,6 +62,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
58
62
|
- [`setCustomNullValue`](#setcustomnullvalue)
|
|
59
63
|
- [`setCustomPaletteColors`](#setcustompalettecolors)
|
|
60
64
|
- [`setDataGapsHandling`](#setdatagapshandling)
|
|
65
|
+
- [`setDimensionAxisBands`](#setdimensionaxisbands)
|
|
61
66
|
- [`setDimensionFormatString`](#setdimensionformatstring)
|
|
62
67
|
- [`setDimensionFormatType`](#setdimensionformattype)
|
|
63
68
|
- [`setDimensionTemporalGrouping`](#setdimensiontemporalgrouping)
|
|
@@ -154,6 +159,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
154
159
|
- [`toggleSortingItem`](#togglesortingitem)
|
|
155
160
|
- [`updateDimension`](#updatedimension)
|
|
156
161
|
- [`updateMeasure`](#updatemeasure)
|
|
162
|
+
- [`updateReferenceLine`](#updatereferenceline)
|
|
157
163
|
|
|
158
164
|
## `addColoringOverwrite`
|
|
159
165
|
|
|
@@ -320,6 +326,43 @@ Add a new dimension to the chart
|
|
|
320
326
|
}
|
|
321
327
|
```
|
|
322
328
|
|
|
329
|
+
## `addDimensionAxisBand`
|
|
330
|
+
|
|
331
|
+
Add dimension axis band
|
|
332
|
+
|
|
333
|
+
Add a shaded band on the dimension axis between two raw dimension values (inclusive for categories)
|
|
334
|
+
|
|
335
|
+
**Payload schema**
|
|
336
|
+
|
|
337
|
+
```json
|
|
338
|
+
{
|
|
339
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
340
|
+
"type": "object",
|
|
341
|
+
"properties": {
|
|
342
|
+
"start": {
|
|
343
|
+
"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",
|
|
344
|
+
"type": ["number", "string", "boolean"]
|
|
345
|
+
},
|
|
346
|
+
"end": {
|
|
347
|
+
"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",
|
|
348
|
+
"type": ["number", "string", "boolean"]
|
|
349
|
+
},
|
|
350
|
+
"color": {
|
|
351
|
+
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
352
|
+
"type": "string",
|
|
353
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
354
|
+
},
|
|
355
|
+
"label": {
|
|
356
|
+
"description": "Text drawn inside the band",
|
|
357
|
+
"type": "string"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"required": ["start", "end"],
|
|
361
|
+
"additionalProperties": false,
|
|
362
|
+
"title": "Add dimension axis band schema"
|
|
363
|
+
}
|
|
364
|
+
```
|
|
365
|
+
|
|
323
366
|
## `addMeasure`
|
|
324
367
|
|
|
325
368
|
Add measure
|
|
@@ -695,6 +738,57 @@ Add another measure filter before aggregation. Keeps existing filters.
|
|
|
695
738
|
}
|
|
696
739
|
```
|
|
697
740
|
|
|
741
|
+
## `addReferenceLine`
|
|
742
|
+
|
|
743
|
+
Add reference line
|
|
744
|
+
|
|
745
|
+
Add a reference line at a value on the x or y axis, with an optional label, color and width
|
|
746
|
+
|
|
747
|
+
**Payload schema**
|
|
748
|
+
|
|
749
|
+
```json
|
|
750
|
+
{
|
|
751
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
752
|
+
"type": "object",
|
|
753
|
+
"properties": {
|
|
754
|
+
"axis": {
|
|
755
|
+
"type": "string",
|
|
756
|
+
"enum": ["x", "y"],
|
|
757
|
+
"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"
|
|
758
|
+
},
|
|
759
|
+
"value": {
|
|
760
|
+
"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)",
|
|
761
|
+
"type": ["string", "number"]
|
|
762
|
+
},
|
|
763
|
+
"label": {
|
|
764
|
+
"description": "Text drawn next to the line",
|
|
765
|
+
"type": "string"
|
|
766
|
+
},
|
|
767
|
+
"color": {
|
|
768
|
+
"description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
|
|
769
|
+
"anyOf": [
|
|
770
|
+
{
|
|
771
|
+
"type": "string",
|
|
772
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"type": "null"
|
|
776
|
+
}
|
|
777
|
+
]
|
|
778
|
+
},
|
|
779
|
+
"strokeWidth": {
|
|
780
|
+
"description": "Line width in pixels, 0 to 50",
|
|
781
|
+
"type": "number",
|
|
782
|
+
"minimum": 0,
|
|
783
|
+
"maximum": 50
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"required": ["axis", "value"],
|
|
787
|
+
"additionalProperties": false,
|
|
788
|
+
"title": "Add reference line schema"
|
|
789
|
+
}
|
|
790
|
+
```
|
|
791
|
+
|
|
698
792
|
## `addResultFilter`
|
|
699
793
|
|
|
700
794
|
Add result filter
|
|
@@ -1202,6 +1296,32 @@ Remove a dimension from the chart
|
|
|
1202
1296
|
}
|
|
1203
1297
|
```
|
|
1204
1298
|
|
|
1299
|
+
## `removeDimensionAxisBand`
|
|
1300
|
+
|
|
1301
|
+
Remove dimension axis band
|
|
1302
|
+
|
|
1303
|
+
Remove one shaded band from the dimension axis by its position
|
|
1304
|
+
|
|
1305
|
+
**Payload schema**
|
|
1306
|
+
|
|
1307
|
+
```json
|
|
1308
|
+
{
|
|
1309
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1310
|
+
"type": "object",
|
|
1311
|
+
"properties": {
|
|
1312
|
+
"index": {
|
|
1313
|
+
"type": "integer",
|
|
1314
|
+
"minimum": 0,
|
|
1315
|
+
"maximum": 9007199254740991,
|
|
1316
|
+
"description": "Zero-based position of the band to remove"
|
|
1317
|
+
}
|
|
1318
|
+
},
|
|
1319
|
+
"required": ["index"],
|
|
1320
|
+
"additionalProperties": false,
|
|
1321
|
+
"title": "Remove dimension axis band schema"
|
|
1322
|
+
}
|
|
1323
|
+
```
|
|
1324
|
+
|
|
1205
1325
|
## `removeMeasure`
|
|
1206
1326
|
|
|
1207
1327
|
Remove measure
|
|
@@ -1406,6 +1526,37 @@ Remove a measure color override
|
|
|
1406
1526
|
}
|
|
1407
1527
|
```
|
|
1408
1528
|
|
|
1529
|
+
## `removeReferenceLine`
|
|
1530
|
+
|
|
1531
|
+
Remove reference line
|
|
1532
|
+
|
|
1533
|
+
Remove one reference line by its axis and position
|
|
1534
|
+
|
|
1535
|
+
**Payload schema**
|
|
1536
|
+
|
|
1537
|
+
```json
|
|
1538
|
+
{
|
|
1539
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1540
|
+
"type": "object",
|
|
1541
|
+
"properties": {
|
|
1542
|
+
"axis": {
|
|
1543
|
+
"type": "string",
|
|
1544
|
+
"enum": ["x", "y"],
|
|
1545
|
+
"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"
|
|
1546
|
+
},
|
|
1547
|
+
"index": {
|
|
1548
|
+
"type": "integer",
|
|
1549
|
+
"minimum": 0,
|
|
1550
|
+
"maximum": 9007199254740991,
|
|
1551
|
+
"description": "Zero-based position of the line within its axis"
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
"required": ["axis", "index"],
|
|
1555
|
+
"additionalProperties": false,
|
|
1556
|
+
"title": "Remove reference line schema"
|
|
1557
|
+
}
|
|
1558
|
+
```
|
|
1559
|
+
|
|
1409
1560
|
## `resetChartPaletteToThemeDefault`
|
|
1410
1561
|
|
|
1411
1562
|
Reset chart palette
|
|
@@ -2086,6 +2237,54 @@ Control how data gaps are handled
|
|
|
2086
2237
|
}
|
|
2087
2238
|
```
|
|
2088
2239
|
|
|
2240
|
+
## `setDimensionAxisBands`
|
|
2241
|
+
|
|
2242
|
+
Dimension axis bands
|
|
2243
|
+
|
|
2244
|
+
Replace all shaded bands on the dimension axis. Each band fills the plot between two raw dimension values (inclusive for categories)
|
|
2245
|
+
|
|
2246
|
+
**Payload schema**
|
|
2247
|
+
|
|
2248
|
+
```json
|
|
2249
|
+
{
|
|
2250
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2251
|
+
"type": "object",
|
|
2252
|
+
"properties": {
|
|
2253
|
+
"bands": {
|
|
2254
|
+
"type": "array",
|
|
2255
|
+
"items": {
|
|
2256
|
+
"type": "object",
|
|
2257
|
+
"properties": {
|
|
2258
|
+
"start": {
|
|
2259
|
+
"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",
|
|
2260
|
+
"type": ["number", "string", "boolean"]
|
|
2261
|
+
},
|
|
2262
|
+
"end": {
|
|
2263
|
+
"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",
|
|
2264
|
+
"type": ["number", "string", "boolean"]
|
|
2265
|
+
},
|
|
2266
|
+
"color": {
|
|
2267
|
+
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
|
|
2268
|
+
"type": "string",
|
|
2269
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
2270
|
+
},
|
|
2271
|
+
"label": {
|
|
2272
|
+
"description": "Text drawn inside the band",
|
|
2273
|
+
"type": "string"
|
|
2274
|
+
}
|
|
2275
|
+
},
|
|
2276
|
+
"required": ["start", "end"],
|
|
2277
|
+
"additionalProperties": false
|
|
2278
|
+
},
|
|
2279
|
+
"description": "Bands to draw, in order; an empty array removes all bands"
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
"required": ["bands"],
|
|
2283
|
+
"additionalProperties": false,
|
|
2284
|
+
"title": "Set dimension axis bands schema"
|
|
2285
|
+
}
|
|
2286
|
+
```
|
|
2287
|
+
|
|
2089
2288
|
## `setDimensionFormatString`
|
|
2090
2289
|
|
|
2091
2290
|
Dimension format string
|
|
@@ -6389,3 +6588,65 @@ Modify properties of an existing measure
|
|
|
6389
6588
|
"title": "Update measure schema"
|
|
6390
6589
|
}
|
|
6391
6590
|
```
|
|
6591
|
+
|
|
6592
|
+
## `updateReferenceLine`
|
|
6593
|
+
|
|
6594
|
+
Update reference line
|
|
6595
|
+
|
|
6596
|
+
Change the value, label, color or width of a reference line, or move it to the other axis. Omitted fields keep their value
|
|
6597
|
+
|
|
6598
|
+
**Payload schema**
|
|
6599
|
+
|
|
6600
|
+
```json
|
|
6601
|
+
{
|
|
6602
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6603
|
+
"type": "object",
|
|
6604
|
+
"properties": {
|
|
6605
|
+
"axis": {
|
|
6606
|
+
"type": "string",
|
|
6607
|
+
"enum": ["x", "y"],
|
|
6608
|
+
"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"
|
|
6609
|
+
},
|
|
6610
|
+
"index": {
|
|
6611
|
+
"type": "integer",
|
|
6612
|
+
"minimum": 0,
|
|
6613
|
+
"maximum": 9007199254740991,
|
|
6614
|
+
"description": "Zero-based position of the line within its axis, as getReferenceLines lists"
|
|
6615
|
+
},
|
|
6616
|
+
"value": {
|
|
6617
|
+
"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)",
|
|
6618
|
+
"type": ["string", "number"]
|
|
6619
|
+
},
|
|
6620
|
+
"newAxis": {
|
|
6621
|
+
"description": "Move the line to this axis; it is appended after the existing lines",
|
|
6622
|
+
"type": "string",
|
|
6623
|
+
"enum": ["x", "y"]
|
|
6624
|
+
},
|
|
6625
|
+
"label": {
|
|
6626
|
+
"description": "Text drawn next to the line",
|
|
6627
|
+
"type": "string"
|
|
6628
|
+
},
|
|
6629
|
+
"color": {
|
|
6630
|
+
"description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
|
|
6631
|
+
"anyOf": [
|
|
6632
|
+
{
|
|
6633
|
+
"type": "string",
|
|
6634
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
6635
|
+
},
|
|
6636
|
+
{
|
|
6637
|
+
"type": "null"
|
|
6638
|
+
}
|
|
6639
|
+
]
|
|
6640
|
+
},
|
|
6641
|
+
"strokeWidth": {
|
|
6642
|
+
"description": "Line width in pixels, 0 to 50",
|
|
6643
|
+
"type": "number",
|
|
6644
|
+
"minimum": 0,
|
|
6645
|
+
"maximum": 50
|
|
6646
|
+
}
|
|
6647
|
+
},
|
|
6648
|
+
"required": ["axis", "index"],
|
|
6649
|
+
"additionalProperties": false,
|
|
6650
|
+
"title": "Update reference line schema"
|
|
6651
|
+
}
|
|
6652
|
+
```
|
package/docs/operations/pie.md
CHANGED
package/docs/operations/radar.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# `scatter` 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
|
- [`changeSortOrderAndDirection`](#changesortorderanddirection)
|
|
@@ -32,6 +33,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
32
33
|
- [`removeMeasureAdvancedAdditionalDimensionDataField`](#removemeasureadvancedadditionaldimensiondatafield)
|
|
33
34
|
- [`removeMeasureAdvancedCompareMeasure`](#removemeasureadvancedcomparemeasure)
|
|
34
35
|
- [`removeMeasureAdvancedDimensionDataField`](#removemeasureadvanceddimensiondatafield)
|
|
36
|
+
- [`removeReferenceLine`](#removereferenceline)
|
|
35
37
|
- [`resetChartPaletteToThemeDefault`](#resetchartpalettetothemedefault)
|
|
36
38
|
- [`setAnimationEnabled`](#setanimationenabled)
|
|
37
39
|
- [`setAxisLabelColor`](#setaxislabelcolor)
|
|
@@ -133,6 +135,7 @@ Use each schema below for the request’s `payload`, not for the whole operation
|
|
|
133
135
|
- [`toggleSortingItem`](#togglesortingitem)
|
|
134
136
|
- [`updateDimension`](#updatedimension)
|
|
135
137
|
- [`updateMeasure`](#updatemeasure)
|
|
138
|
+
- [`updateReferenceLine`](#updatereferenceline)
|
|
136
139
|
|
|
137
140
|
## `addColoringOverwrite`
|
|
138
141
|
|
|
@@ -794,6 +797,57 @@ Add another measure filter before aggregation. Keeps existing filters.
|
|
|
794
797
|
}
|
|
795
798
|
```
|
|
796
799
|
|
|
800
|
+
## `addReferenceLine`
|
|
801
|
+
|
|
802
|
+
Add reference line
|
|
803
|
+
|
|
804
|
+
Add a reference line at a value on the x or y axis, with an optional label, color and width
|
|
805
|
+
|
|
806
|
+
**Payload schema**
|
|
807
|
+
|
|
808
|
+
```json
|
|
809
|
+
{
|
|
810
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
811
|
+
"type": "object",
|
|
812
|
+
"properties": {
|
|
813
|
+
"axis": {
|
|
814
|
+
"type": "string",
|
|
815
|
+
"enum": ["x", "y"],
|
|
816
|
+
"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"
|
|
817
|
+
},
|
|
818
|
+
"value": {
|
|
819
|
+
"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)",
|
|
820
|
+
"type": ["string", "number"]
|
|
821
|
+
},
|
|
822
|
+
"label": {
|
|
823
|
+
"description": "Text drawn next to the line",
|
|
824
|
+
"type": "string"
|
|
825
|
+
},
|
|
826
|
+
"color": {
|
|
827
|
+
"description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
|
|
828
|
+
"anyOf": [
|
|
829
|
+
{
|
|
830
|
+
"type": "string",
|
|
831
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"type": "null"
|
|
835
|
+
}
|
|
836
|
+
]
|
|
837
|
+
},
|
|
838
|
+
"strokeWidth": {
|
|
839
|
+
"description": "Line width in pixels, 0 to 50",
|
|
840
|
+
"type": "number",
|
|
841
|
+
"minimum": 0,
|
|
842
|
+
"maximum": 50
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"required": ["axis", "value"],
|
|
846
|
+
"additionalProperties": false,
|
|
847
|
+
"title": "Add reference line schema"
|
|
848
|
+
}
|
|
849
|
+
```
|
|
850
|
+
|
|
797
851
|
## `addResultFilter`
|
|
798
852
|
|
|
799
853
|
Add result filter
|
|
@@ -1399,6 +1453,37 @@ Remove additional dimension field from nested advanced calculations
|
|
|
1399
1453
|
}
|
|
1400
1454
|
```
|
|
1401
1455
|
|
|
1456
|
+
## `removeReferenceLine`
|
|
1457
|
+
|
|
1458
|
+
Remove reference line
|
|
1459
|
+
|
|
1460
|
+
Remove one reference line by its axis and position
|
|
1461
|
+
|
|
1462
|
+
**Payload schema**
|
|
1463
|
+
|
|
1464
|
+
```json
|
|
1465
|
+
{
|
|
1466
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1467
|
+
"type": "object",
|
|
1468
|
+
"properties": {
|
|
1469
|
+
"axis": {
|
|
1470
|
+
"type": "string",
|
|
1471
|
+
"enum": ["x", "y"],
|
|
1472
|
+
"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"
|
|
1473
|
+
},
|
|
1474
|
+
"index": {
|
|
1475
|
+
"type": "integer",
|
|
1476
|
+
"minimum": 0,
|
|
1477
|
+
"maximum": 9007199254740991,
|
|
1478
|
+
"description": "Zero-based position of the line within its axis"
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1481
|
+
"required": ["axis", "index"],
|
|
1482
|
+
"additionalProperties": false,
|
|
1483
|
+
"title": "Remove reference line schema"
|
|
1484
|
+
}
|
|
1485
|
+
```
|
|
1486
|
+
|
|
1402
1487
|
## `resetChartPaletteToThemeDefault`
|
|
1403
1488
|
|
|
1404
1489
|
Reset chart palette
|
|
@@ -5967,3 +6052,65 @@ Modify properties of an existing measure
|
|
|
5967
6052
|
"title": "Update measure schema"
|
|
5968
6053
|
}
|
|
5969
6054
|
```
|
|
6055
|
+
|
|
6056
|
+
## `updateReferenceLine`
|
|
6057
|
+
|
|
6058
|
+
Update reference line
|
|
6059
|
+
|
|
6060
|
+
Change the value, label, color or width of a reference line, or move it to the other axis. Omitted fields keep their value
|
|
6061
|
+
|
|
6062
|
+
**Payload schema**
|
|
6063
|
+
|
|
6064
|
+
```json
|
|
6065
|
+
{
|
|
6066
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6067
|
+
"type": "object",
|
|
6068
|
+
"properties": {
|
|
6069
|
+
"axis": {
|
|
6070
|
+
"type": "string",
|
|
6071
|
+
"enum": ["x", "y"],
|
|
6072
|
+
"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"
|
|
6073
|
+
},
|
|
6074
|
+
"index": {
|
|
6075
|
+
"type": "integer",
|
|
6076
|
+
"minimum": 0,
|
|
6077
|
+
"maximum": 9007199254740991,
|
|
6078
|
+
"description": "Zero-based position of the line within its axis, as getReferenceLines lists"
|
|
6079
|
+
},
|
|
6080
|
+
"value": {
|
|
6081
|
+
"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)",
|
|
6082
|
+
"type": ["string", "number"]
|
|
6083
|
+
},
|
|
6084
|
+
"newAxis": {
|
|
6085
|
+
"description": "Move the line to this axis; it is appended after the existing lines",
|
|
6086
|
+
"type": "string",
|
|
6087
|
+
"enum": ["x", "y"]
|
|
6088
|
+
},
|
|
6089
|
+
"label": {
|
|
6090
|
+
"description": "Text drawn next to the line",
|
|
6091
|
+
"type": "string"
|
|
6092
|
+
},
|
|
6093
|
+
"color": {
|
|
6094
|
+
"description": "Line color as #RRGGBB or #RRGGBBAA; null uses the theme grid color",
|
|
6095
|
+
"anyOf": [
|
|
6096
|
+
{
|
|
6097
|
+
"type": "string",
|
|
6098
|
+
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
|
|
6099
|
+
},
|
|
6100
|
+
{
|
|
6101
|
+
"type": "null"
|
|
6102
|
+
}
|
|
6103
|
+
]
|
|
6104
|
+
},
|
|
6105
|
+
"strokeWidth": {
|
|
6106
|
+
"description": "Line width in pixels, 0 to 50",
|
|
6107
|
+
"type": "number",
|
|
6108
|
+
"minimum": 0,
|
|
6109
|
+
"maximum": 50
|
|
6110
|
+
}
|
|
6111
|
+
},
|
|
6112
|
+
"required": ["axis", "index"],
|
|
6113
|
+
"additionalProperties": false,
|
|
6114
|
+
"title": "Update reference line schema"
|
|
6115
|
+
}
|
|
6116
|
+
```
|
package/docs/operations/shape.md
CHANGED