@astrato-io/visualizations 0.10.0 → 0.10.1
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 +10 -0
- package/README.md +3 -3
- package/VISUALIZATION_DEFINITIONS.md +65 -12
- package/chunks/{Button-CCF851ea.js → Button-Dn3rJrYf.js} +2 -2
- package/chunks/{CircularProgress-yupH6YWs.js → CircularProgress-BFeu06Yb.js} +4 -4
- package/chunks/{FieldTypeIcon-D_MzsdfY.js → FieldTypeIcon-DrMoGpHJ.js} +2 -2
- package/chunks/{LinearProgress-CyFjN4px.js → LinearProgress-ClO6GUjN.js} +2 -2
- package/chunks/{MenuOption-CQpT79AP.js → MenuOption-Czc34u4q.js} +7 -7
- package/chunks/{Title-C-p4ZarD.js → Title-BgYnaVTR.js} +3 -3
- package/chunks/{_createAggregator-BF4qG9XK.js → _createAggregator-BMu9uRax.js} +8 -8
- package/chunks/{app-filter-bar.compiler-8fxCo2q7.js → app-filter-bar.compiler-CVir0wkl.js} +3 -3
- package/chunks/{bar-layout-DStC-GNV.js → bar-layout-C_UgRlVl.js} +2 -2
- package/chunks/{bar.compiler-CQAu8KL8.js → bar.compiler-DYuFdi9J.js} +8 -8
- package/chunks/{builder-CScg1TOS.js → builder-C-TKA-My.js} +11 -11
- package/chunks/{coloring-9jU3s_-p.js → coloring-BtnPiQ_o.js} +16 -16
- package/chunks/{createSimplePaletteValueFilter-C4hZpCdn.js → createSimplePaletteValueFilter--zrZxRV9.js} +1 -1
- package/chunks/defaults-Dtk7fg3C.js +3 -0
- package/chunks/{definitions-C4grxhye.js → definitions-CT304NDn.js} +77 -51
- package/chunks/{escobar-CjirINHP.js → escobar-CvEV2ES1.js} +6126 -6059
- package/chunks/{extend-preset-D-l9u_we.js → extend-preset-D9-JP92b.js} +396 -396
- package/chunks/{filter.compiler-lji2Acgn.js → filter.compiler-CXeZznks.js} +7 -7
- package/chunks/{filtering-C1zakrrX.js → filtering-8_bFv-jb.js} +84 -84
- package/chunks/{handlers-ZviIUC-j.js → handlers-C6CZ0XJA.js} +5620 -5608
- package/chunks/{icon-picker-styles-Bj80ZUBK.js → icon-picker-styles-BXiJ1SZS.js} +2 -2
- package/chunks/{isEqual-Ch9OEye3.js → isEqual-D8Ay63xR.js} +1 -1
- package/chunks/{isFocusVisible-CgMP0qkR.js → isFocusVisible-Bu8gGZu5.js} +1 -1
- package/chunks/{line.compiler-De5fiKuR.js → line.compiler-DmHpmQCC.js} +4 -4
- package/chunks/{logger-CKRjhSHQ.js → logger-DdZpR7xZ.js} +65 -65
- package/chunks/{map.compiler-CKzorLgK.js → map.compiler-Q_Y1Pvat.js} +12 -14
- package/chunks/{metadata-Bb9pTXrq.js → metadata-BQm_TXI1.js} +1 -1
- package/chunks/{number.compiler-CaTmJkmi.js → number.compiler-DQdg6zTy.js} +4 -4
- package/chunks/{operations-DZoY50VX.js → operations-DKQWuLL7.js} +9469 -9451
- package/chunks/{range-D1BTmFMp.js → range-BdhzvYQ_.js} +2 -2
- package/chunks/{react-dom-Dgv2azN2.js → react-dom-BGP4tbXV.js} +1 -1
- package/chunks/{render-wrappers-_P3xwu5A.js → render-wrappers-BZpyDnJy.js} +1 -1
- package/chunks/{requirements-NHNrR8Ie.js → requirements-e8Fe96ag.js} +29 -29
- package/chunks/{shared-UitWpq1J.js → shared-C_2F90xq.js} +478 -472
- package/chunks/{standalone-wgFAVnnm.js → standalone-4MsKiqs0.js} +130 -130
- package/chunks/standalone-B794g9pE.js +1012 -0
- package/chunks/{standalone-BBu90BhK.js → standalone-B8ZSqauS.js} +59 -59
- package/chunks/standalone-BA2YXyJS.js +422 -0
- package/chunks/{standalone-DtBk_iUz.js → standalone-BDrXVxlP.js} +4 -4
- package/chunks/{standalone-U0WJwFlG.js → standalone-BE_ONgiG.js} +64 -64
- package/chunks/{standalone-BOzHA_d4.js → standalone-BTY3w_JA.js} +24 -24
- package/chunks/{standalone-BEekPuA12.js → standalone-BgumbdaJ2.js} +101 -101
- package/chunks/{standalone-Bnnr87pc.js → standalone-BkbiH-o8.js} +174 -174
- package/chunks/{standalone-xGV0dqPV.js → standalone-Blh4qejk.js} +197 -197
- package/chunks/{standalone-DxBAyqAu.js → standalone-CXY4FpF7.js} +278 -277
- package/chunks/{standalone-CVknVdUC.js → standalone-CY_kjarf.js} +18 -18
- package/chunks/{standalone-BapqaniK.js → standalone-CaTxAydz.js} +54 -54
- package/chunks/{standalone-CRdDZYeM.js → standalone-Cc98Pdr6.js} +829 -829
- package/chunks/standalone-Cl0TSfqC.js +396 -0
- package/chunks/{standalone-B0U6c3su.js → standalone-CsoMmE9T.js} +80 -80
- package/chunks/standalone-DH0xTEes.js +2 -0
- package/chunks/{standalone-ByKKqT5L.js → standalone-DHRalbVO.js} +268 -268
- package/chunks/{standalone-CbPk8bKn.js → standalone-DNh9NcMa.js} +109 -109
- package/chunks/standalone-DcnHjNnC.js +2 -0
- package/chunks/{standalone-Ck63MZzj.js → standalone-DflyWtuR.js} +107 -107
- package/chunks/standalone-DrHdGkY7.js +762 -0
- package/chunks/standalone-c_rROMtx.js +287 -0
- package/chunks/{standalone-DibjA73M.js → standalone-drcFLeN6.js} +2 -2
- package/chunks/{standalone-swGs70tD.js → standalone-wOWRCpdn.js} +26 -26
- package/chunks/{standalone-DCFY1MAV.js → standalone-z0o52o5t.js} +4191 -4191
- package/chunks/{table.compiler-OWSx5MOq.js → table.compiler-COaHE9VD.js} +18 -18
- package/chunks/{useFieldName-B8iCYyw1.js → useFieldName-CdnCWzhd.js} +1 -1
- package/chunks/{utils-3Igg6xmO.js → utils-DganVptf.js} +491 -483
- package/chunks/{view-DdMLZySj.js → view-Bzlros43.js} +158 -158
- package/chunks/{visualization-filters-CzvFHE6M.js → visualization-filters-D7i6oh1Z.js} +23 -12
- package/chunks/{with-html-element-DOfkR3C1.js → with-html-element-CiIhFEa5.js} +2497 -2497
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +1 -1
- package/docs/operations/combo.md +1 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +1 -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 +1 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +2 -2
- package/docs/operations/line.md +19 -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 +1 -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 +1 -1
- 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 +54 -54
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +67 -67
- package/src/definitions/index.d.ts +7 -1
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +31 -5
- package/src/definitions/model/definitions/types/compilation.types.d.ts +4 -1
- package/src/types.d.ts +28 -28
- package/chunks/defaults-cyNhn37t.js +0 -3
- package/chunks/standalone-BR2JuRIC.js +0 -422
- package/chunks/standalone-BwJqDj2Z.js +0 -396
- package/chunks/standalone-CRfDOO1x.js +0 -287
- package/chunks/standalone-DZDGX3aa.js +0 -518
- package/chunks/standalone-DhfgeJIk.js +0 -1012
- package/chunks/standalone-KMQPsNsq.js +0 -2
- package/chunks/standalone-MBLSvsrY.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ Breaking changes to `@astrato-io/visualizations`, newest first. Operation names,
|
|
|
4
4
|
installed version are in the bundled [Operations Reference](./docs/operations/index.md) and in
|
|
5
5
|
`getVisualizationMetadata(type).operations`.
|
|
6
6
|
|
|
7
|
+
## 0.10.1
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Code written against 0.9.0 type-checks again: `resolvedRefs` entries are data-item references, the public
|
|
12
|
+
`VisualizationDefinition` type covers the definitions this package can mount, and `AstratoClientLike` accepts the
|
|
13
|
+
`@astrato-io/sdk` client again.
|
|
14
|
+
- Map layer references moved from `resolvedRefs` to `resolvedLayerRefs`. Map definitions keep compiling and are typed
|
|
15
|
+
as `MapVisualizationDefinition`, outside `VisualizationDefinition`, because the runtime cannot mount a map yet.
|
|
16
|
+
|
|
7
17
|
## 0.6.2
|
|
8
18
|
|
|
9
19
|
### Changed
|
package/README.md
CHANGED
|
@@ -680,9 +680,9 @@ console.log(transformed.results);
|
|
|
680
680
|
```
|
|
681
681
|
|
|
682
682
|
This is the supported way to finish a compiled `VisualizationDefinition` before mounting: pass
|
|
683
|
-
`{ id, type, vSpec: compilation.vSpec }` as the instance and use `compilation.resolvedRefs`
|
|
684
|
-
`ref`.
|
|
685
|
-
|
|
683
|
+
`{ id, type, vSpec: compilation.vSpec }` as the instance and use `compilation.resolvedRefs` for the data-item identity of
|
|
684
|
+
each definition `ref`. A map also returns `compilation.resolvedLayerRefs`, whose entries have an `id` to pass as the
|
|
685
|
+
operation's `layer` selector. It runs in memory and makes no engine requests. It is also useful when validating a vSpec,
|
|
686
686
|
running operations in tests, or building an adapter with intentional custom state ownership. It does not serialize separate calls or protect against a
|
|
687
687
|
newer runtime/chart vSpec. Avoid applying its result to a live runtime from an older instance snapshot; use
|
|
688
688
|
`applyRuntimeOperations` for that case.
|
|
@@ -39,17 +39,15 @@ A definition does not cover every setting yet. If the chart needs a setting the
|
|
|
39
39
|
|
|
40
40
|
A definition covers a subset of the operation catalogue. For settings outside it, apply operations to the compiled vSpec with `applyOperations` from `@astrato-io/visualizations/operations`, in one batch and before creating the instance. This runs in memory: it needs no runtime and makes no engine requests.
|
|
41
41
|
|
|
42
|
-
Use `compilation.resolvedRefs` to
|
|
42
|
+
Use `compilation.resolvedRefs` to get the data-item identity that operation payloads expect for a definition `ref`. A map also returns `compilation.resolvedLayerRefs`, whose entries have an `id` to pass as the operation's `layer` selector.
|
|
43
43
|
|
|
44
44
|
```ts
|
|
45
45
|
import { applyOperations } from '@astrato-io/visualizations/operations';
|
|
46
|
-
import type { VisualizationResolvedDataItemReference } from '@astrato-io/visualizations/definitions';
|
|
47
46
|
|
|
48
47
|
const compilation = await compileVisualizationDefinition({ definition, availableFields, baseVSpec });
|
|
49
48
|
if (!compilation.success) throw new Error(JSON.stringify(compilation.issues));
|
|
50
49
|
|
|
51
|
-
const { dataItemInternalKey, dataItemUniqueSignature } = compilation.resolvedRefs
|
|
52
|
-
.sales as VisualizationResolvedDataItemReference;
|
|
50
|
+
const { dataItemInternalKey, dataItemUniqueSignature } = compilation.resolvedRefs.sales;
|
|
53
51
|
const finished = await applyOperations({
|
|
54
52
|
instance: { id: 'sales-by-manufacturer', type: 'bar', vSpec: compilation.vSpec },
|
|
55
53
|
operationRequests: [
|
|
@@ -107,7 +105,7 @@ Avoid finishing a chart by applying operations one at a time after it is mounted
|
|
|
107
105
|
| Type | Name | Data requirements | Supported features |
|
|
108
106
|
| ------------------------ | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
109
107
|
| `map` | Map | Point, shape and heatmap layers require one dimension identifying locations. Connection layers require source and destination dimensions. Location measures use geo for the first location and thirdGeo for a connection destination. For latLng, these are latitude; secondGeo and fourthGeo supply longitude. Shape layers require a GeoJSON measure. Other data layers support latLng, geoPoint or geoHash. Size measures use the size role on point/connection layers. Heat intensity uses the measure role. Background map and image layers have no data bindings. | `dimensions`, `measures`, `filters`, `data-points`, `data-labels`, `object-settings` |
|
|
110
|
-
| `bar` | Bar chart | At least one
|
|
108
|
+
| `bar` | Bar chart | At least one measure. For a measure-only bar, send `dimensions: []` (the key is still required) with at least one measure. Several measures then stack into one bar unless presentation.layout is groups; a layout already set on the base vSpec is kept when presentation.layout is omitted. | `axes`, `axis-bands`, `axis-range`, `axis-scale`, `conditional-coloring`, `data-labels`, `dimensions`, `filters`, `legend`, `measure-axis`, `measures`, `orientation`, `query-limit`, `sorting`, `top-n`, `value-formatting` |
|
|
111
109
|
| `combo` | Combo chart | Exactly one dimension. Between one and ten measures. | `dimensions`, `filters`, `measures`, `value-formatting`, `axes`, `axis-bands`, `axis-range`, `axis-scale`, `data-labels`, `legend`, `measure-axis`, `orientation`, `query-limit`, `series-type`, `sorting` |
|
|
112
110
|
| `distribution-gauge` | Distribution gauge | Zero or one dimension. Between one and twenty measures. | `dimensions`, `filters`, `measures`, `value-formatting`, `conditional-coloring`, `display-mode`, `legend` |
|
|
113
111
|
| `dot` | Dot chart | Exactly two dimensions. Exactly one measure. | `dimensions`, `filters`, `measures`, `value-formatting`, `conditional-coloring`, `axes`, `axis-range`, `legend`, `orientation` |
|
|
@@ -122,7 +120,7 @@ Avoid finishing a chart by applying operations one at a time after it is mounted
|
|
|
122
120
|
| `sankey` | Sankey chart | Between two and fifteen dimensions. Exactly one measure. | `dimensions`, `filters`, `measures`, `value-formatting`, `conditional-coloring` |
|
|
123
121
|
| `scatter` | Scatter chart | One or two dimensions. Two or three measures. | `dimensions`, `filters`, `measures`, `value-formatting`, `conditional-coloring`, `axes`, `axis-range`, `legend`, `query-limit`, `sorting` |
|
|
124
122
|
| `table` | Table | Normal tables require at least one ordered dimension or measure column. Expandable tables require at least one dimension and one measure. Pivot tables require at least one row dimension, one column dimension, and one measure. | `dimensions`, `filters`, `layout`, `measures`, `query-limit`, `sorting`, `table-structure`, `totals`, `value-formatting` |
|
|
125
|
-
| `waterfall` | Waterfall chart |
|
|
123
|
+
| `waterfall` | Waterfall chart | No dimensions and between one and one hundred measures, or exactly one dimension and exactly two measures. | `axes`, `axis-bands`, `axis-range`, `data-labels`, `dimensions`, `filters`, `measures`, `orientation`, `value-formatting` |
|
|
126
124
|
| `word-cloud` | Word cloud | Exactly one dimension. Exactly one measure. | `dimensions`, `filters`, `measures`, `value-formatting`, `conditional-coloring` |
|
|
127
125
|
| `date-picker` | Date picker | Exactly one field. | `dimensions`, `filter-settings` |
|
|
128
126
|
| `filter` | Filter | Exactly one field. | `dimensions`, `filter-settings` |
|
|
@@ -154,7 +152,7 @@ Layered geographic visualization with background maps, images, points, shapes, h
|
|
|
154
152
|
|
|
155
153
|
- There is no fixed layer-count limit. Layers are ordered topmost first. Include a background map explicitly; the default basemap is replaced by the declared layers.
|
|
156
154
|
- Layer and data-item references share one namespace and must all be unique across the definition. Display names may repeat.
|
|
157
|
-
- resolvedRefs contains
|
|
155
|
+
- resolvedRefs contains the data-item references. resolvedLayerRefs contains the layer references; pass the id of a layer entry as the layer selector in map operations.
|
|
158
156
|
- Raw measure fields require an available aggregation. Semantic measures and calculations supply their own aggregation.
|
|
159
157
|
- Assign each measure role at most once per layer. Set sizing.sizeType to byMeasurePixels/byMeasureDistance to use a size measure, or value.type to byMeasure to use heat intensity.
|
|
160
158
|
- Definitions cover initial data bindings, static filters, view and basic presentation. Additional styling and interactions use the existing map operations.
|
|
@@ -423,8 +421,8 @@ Categorical comparison chart with sorting, limiting, per-measure axes, labels, l
|
|
|
423
421
|
|
|
424
422
|
**Data requirements**
|
|
425
423
|
|
|
426
|
-
- At least one dimension.
|
|
427
424
|
- At least one measure.
|
|
425
|
+
- For a measure-only bar, send `dimensions: []` (the key is still required) with at least one measure. Several measures then stack into one bar unless presentation.layout is groups; a layout already set on the base vSpec is kept when presentation.layout is omitted.
|
|
428
426
|
|
|
429
427
|
**Supported features**
|
|
430
428
|
|
|
@@ -2064,19 +2062,20 @@ Normal, expandable, or pivot tabular output with formatting, filtering, sorting,
|
|
|
2064
2062
|
|
|
2065
2063
|
## `waterfall`: Waterfall chart
|
|
2066
2064
|
|
|
2067
|
-
Sequential contribution chart
|
|
2065
|
+
Sequential contribution chart, or a comparison of two measures across one dimension.
|
|
2068
2066
|
|
|
2069
2067
|
**Data requirements**
|
|
2070
2068
|
|
|
2071
|
-
-
|
|
2069
|
+
- No dimensions and between one and one hundred measures, or exactly one dimension and exactly two measures.
|
|
2072
2070
|
|
|
2073
2071
|
**Supported features**
|
|
2074
2072
|
|
|
2075
|
-
`axes`, `axis-bands`, `axis-range`, `data-labels`, `filters`, `measures`, `orientation`, `value-formatting`
|
|
2073
|
+
`axes`, `axis-bands`, `axis-range`, `data-labels`, `dimensions`, `filters`, `measures`, `orientation`, `value-formatting`
|
|
2076
2074
|
|
|
2077
2075
|
**Constraints and semantics**
|
|
2078
2076
|
|
|
2079
|
-
-
|
|
2077
|
+
- Without a dimension, measure order defines the waterfall sequence. With one dimension, the first measure supplies the opening total, each dimension value contributes the second measure minus the first, and the second measure supplies the closing total.
|
|
2078
|
+
- Comparison totals sum the returned rows, rather than requesting a separate aggregate total. Use two numeric measures with comparable units.
|
|
2080
2079
|
- Set range on the primary measure axis to fix its min, max, or both, for example to give several charts one shared scale. To keep an auto-fitted axis anchored at zero, leave both unset and put startsAtZero inside range, not on the axis itself: "primaryMeasure": { "range": { "startsAtZero": true } }. Set inverted on the primary measure axis to reverse its values.
|
|
2081
2080
|
- presentation.axes.primaryMeasure.bands shades the plot between two primary measure axis values; start and end are measure values, and the bands replace any on the base vSpec.
|
|
2082
2081
|
|
|
@@ -2145,6 +2144,60 @@ Sequential contribution chart composed from one or more measures.
|
|
|
2145
2144
|
}
|
|
2146
2145
|
```
|
|
2147
2146
|
|
|
2147
|
+
**Additional scenarios**
|
|
2148
|
+
|
|
2149
|
+
### Compare total and average sales by manufacturer
|
|
2150
|
+
|
|
2151
|
+
```json
|
|
2152
|
+
{
|
|
2153
|
+
"data": {
|
|
2154
|
+
"dimensions": [
|
|
2155
|
+
{
|
|
2156
|
+
"fieldKey": "[Cars].[Manufacturer]",
|
|
2157
|
+
"ref": "manufacturer"
|
|
2158
|
+
}
|
|
2159
|
+
],
|
|
2160
|
+
"measures": [
|
|
2161
|
+
{
|
|
2162
|
+
"aggregation": "SUM",
|
|
2163
|
+
"fieldKey": "[Cars].[Sales In Thousands]",
|
|
2164
|
+
"format": {
|
|
2165
|
+
"formatType": "number2Decimal",
|
|
2166
|
+
"negativeType": "parenthesis"
|
|
2167
|
+
},
|
|
2168
|
+
"ref": "totalSales"
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
"aggregation": "AVG",
|
|
2172
|
+
"fieldKey": "[Cars].[Sales In Thousands]",
|
|
2173
|
+
"format": {
|
|
2174
|
+
"formatType": "number2Decimal",
|
|
2175
|
+
"negativeType": "parenthesis"
|
|
2176
|
+
},
|
|
2177
|
+
"ref": "averageSales"
|
|
2178
|
+
}
|
|
2179
|
+
]
|
|
2180
|
+
},
|
|
2181
|
+
"presentation": {
|
|
2182
|
+
"axes": {
|
|
2183
|
+
"dimension": {
|
|
2184
|
+
"title": "Manufacturer",
|
|
2185
|
+
"titleVisible": true
|
|
2186
|
+
},
|
|
2187
|
+
"primaryMeasure": {
|
|
2188
|
+
"title": "Sales in thousands",
|
|
2189
|
+
"titleVisible": true
|
|
2190
|
+
}
|
|
2191
|
+
},
|
|
2192
|
+
"dataLabels": {
|
|
2193
|
+
"visible": true
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
2196
|
+
"type": "waterfall",
|
|
2197
|
+
"version": 1
|
|
2198
|
+
}
|
|
2199
|
+
```
|
|
2200
|
+
|
|
2148
2201
|
## `word-cloud`: Word cloud
|
|
2149
2202
|
|
|
2150
2203
|
Weighted word display using one label dimension and one measure.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { W as n, ci as r, si as i, sn as a, zr as o } from "./utils-
|
|
2
|
+
import { Oa as t } from "./visualization-filters-D7i6oh1Z.js";
|
|
3
|
+
import { W as n, ci as r, si as i, sn as a, zr as o } from "./utils-DganVptf.js";
|
|
4
4
|
import { i as s, u as c } from "./responsive.styles-FItb913l.js";
|
|
5
5
|
var l = /* @__PURE__ */ e(r()), u = o(), d = n({
|
|
6
6
|
container: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Dt as t, Et as n, G as r, X as i, ci as a, it as o, zr as s } from "./utils-
|
|
3
|
-
import { _ as c, a as l, c as u, d, l as f, m as p, n as m, u as h, v as g } from "./react-dom-
|
|
4
|
-
import { t as _ } from "./isFocusVisible-
|
|
5
|
-
import { d as v, f as y, h as b, m as x, u as S, y as C } from "./Title-
|
|
2
|
+
import { Dt as t, Et as n, G as r, X as i, ci as a, it as o, zr as s } from "./utils-DganVptf.js";
|
|
3
|
+
import { _ as c, a as l, c as u, d, l as f, m as p, n as m, u as h, v as g } from "./react-dom-BGP4tbXV.js";
|
|
4
|
+
import { t as _ } from "./isFocusVisible-Bu8gGZu5.js";
|
|
5
|
+
import { d as v, f as y, h as b, m as x, u as S, y as C } from "./Title-BgYnaVTR.js";
|
|
6
6
|
import { p as w } from "./responsive.styles-FItb913l.js";
|
|
7
7
|
var T = /* @__PURE__ */ e(a(), 1);
|
|
8
8
|
function E(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _r as e, br as t, dr as n, fr as r, gr as i, hr as a, lr as o, mr as s, pr as c, ur as l, vr as u, xr as d, yr as f, zr as p } from "./utils-
|
|
2
|
-
import { s as m } from "./logger-
|
|
1
|
+
import { _r as e, br as t, dr as n, fr as r, gr as i, hr as a, lr as o, mr as s, pr as c, ur as l, vr as u, xr as d, yr as f, zr as p } from "./utils-DganVptf.js";
|
|
2
|
+
import { s as m } from "./logger-DdZpR7xZ.js";
|
|
3
3
|
var h = m(), g = p(), _ = ({ fieldType: p, fill: m, isBucketing: _ }) => {
|
|
4
4
|
if (_) return /* @__PURE__ */ (0, g.jsx)(t, { fill: m });
|
|
5
5
|
switch (p) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { $ as t, Dt as n, Et as r, ci as i, it as a, zr as o } from "./utils-
|
|
3
|
-
import { _ as s, a as c, c as l, d as u, l as d, m as f, n as p, u as m, v as h } from "./react-dom-
|
|
2
|
+
import { $ as t, Dt as n, Et as r, ci as i, it as a, zr as o } from "./utils-DganVptf.js";
|
|
3
|
+
import { _ as s, a as c, c as l, d as u, l as d, m as f, n as p, u as m, v as h } from "./react-dom-BGP4tbXV.js";
|
|
4
4
|
import { p as g } from "./responsive.styles-FItb913l.js";
|
|
5
5
|
var _ = /* @__PURE__ */ e(i(), 1);
|
|
6
6
|
function v(e) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as r, B as i, Fr as a, G as o, Gn as s, J as c, Ln as l, Pr as u, W as d, ci as f, et as p, it as m, jr as h, kr as g, li as _, nr as v, nt as y, oi as b, r as x, si as S, sn as C, zr as w } from "./utils-
|
|
4
|
-
import "./logger-
|
|
5
|
-
import { _ as T, a as E, d as D, f as ee, i as O, l as k, m as A, o as j, r as M, s as N, u as P, v as F } from "./react-dom-
|
|
6
|
-
import { d as I, f as te, i as ne, l as L, n as R, s as re, u as z } from "./isFocusVisible-
|
|
7
|
-
import { a as ie, c as ae, f as oe, h as se, l as ce, n as le, p as ue, s as de, t as fe, v as pe, y as me } from "./Title-
|
|
2
|
+
import { Oa as n } from "./visualization-filters-D7i6oh1Z.js";
|
|
3
|
+
import { $ as r, B as i, Fr as a, G as o, Gn as s, J as c, Ln as l, Pr as u, W as d, ci as f, et as p, it as m, jr as h, kr as g, li as _, nr as v, nt as y, oi as b, r as x, si as S, sn as C, zr as w } from "./utils-DganVptf.js";
|
|
4
|
+
import "./logger-DdZpR7xZ.js";
|
|
5
|
+
import { _ as T, a as E, d as D, f as ee, i as O, l as k, m as A, o as j, r as M, s as N, u as P, v as F } from "./react-dom-BGP4tbXV.js";
|
|
6
|
+
import { d as I, f as te, i as ne, l as L, n as R, s as re, u as z } from "./isFocusVisible-Bu8gGZu5.js";
|
|
7
|
+
import { a as ie, c as ae, f as oe, h as se, l as ce, n as le, p as ue, s as de, t as fe, v as pe, y as me } from "./Title-BgYnaVTR.js";
|
|
8
8
|
import { i as he, n as ge, r as B, t as V } from "./contains-BK-sRXcB.js";
|
|
9
9
|
import { a as _e, d as ve, f as H } from "./responsive.styles-FItb913l.js";
|
|
10
|
-
import "./coloring-
|
|
10
|
+
import "./coloring-BtnPiQ_o.js";
|
|
11
11
|
var ye = {
|
|
12
12
|
left: "left",
|
|
13
13
|
right: "right"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { $ as t, G as n, Z as r, ci as i, it as a, nt as o, zr as s } from "./utils-
|
|
3
|
-
import { _ as c, c as l, d as u, i as d, l as f, m as p, o as m, r as h, s as g, t as _, u as v, v as y } from "./react-dom-
|
|
4
|
-
import { a as b, c as x, d as S, l as C, n as w, o as T, r as E, t as D, u as O } from "./isFocusVisible-
|
|
2
|
+
import { $ as t, G as n, Z as r, ci as i, it as a, nt as o, zr as s } from "./utils-DganVptf.js";
|
|
3
|
+
import { _ as c, c as l, d as u, i as d, l as f, m as p, o as m, r as h, s as g, t as _, u as v, v as y } from "./react-dom-BGP4tbXV.js";
|
|
4
|
+
import { a as b, c as x, d as S, l as C, n as w, o as T, r as E, t as D, u as O } from "./isFocusVisible-Bu8gGZu5.js";
|
|
5
5
|
var k = /* @__PURE__ */ e(i(), 1), A = s(), j = S;
|
|
6
6
|
function M(e, t) {
|
|
7
7
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { M as t, Tr as n,
|
|
2
|
+
import { M as t, Tr as n, fr as r, pa as i, va as a } from "./visualization-filters-D7i6oh1Z.js";
|
|
3
3
|
var o = /* @__PURE__ */ e(((e, r) => {
|
|
4
4
|
var i = t(), a = n();
|
|
5
5
|
function o(e, t) {
|
|
@@ -7,8 +7,8 @@ var o = /* @__PURE__ */ e(((e, r) => {
|
|
|
7
7
|
}
|
|
8
8
|
r.exports = o;
|
|
9
9
|
})), s = /* @__PURE__ */ e(((e, t) => {
|
|
10
|
-
var n =
|
|
11
|
-
function
|
|
10
|
+
var n = a();
|
|
11
|
+
function r(e, t) {
|
|
12
12
|
return function(r, i) {
|
|
13
13
|
if (r == null) return r;
|
|
14
14
|
if (!n(r)) return e(r, i);
|
|
@@ -16,7 +16,7 @@ var o = /* @__PURE__ */ e(((e, r) => {
|
|
|
16
16
|
return r;
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
|
-
t.exports =
|
|
19
|
+
t.exports = r;
|
|
20
20
|
})), c = /* @__PURE__ */ e(((e, t) => {
|
|
21
21
|
var n = o();
|
|
22
22
|
t.exports = s()(n);
|
|
@@ -38,11 +38,11 @@ var o = /* @__PURE__ */ e(((e, r) => {
|
|
|
38
38
|
}
|
|
39
39
|
t.exports = r;
|
|
40
40
|
})), d = /* @__PURE__ */ e(((e, t) => {
|
|
41
|
-
var n = l(),
|
|
41
|
+
var n = l(), a = u(), o = r(), s = i();
|
|
42
42
|
function c(e, t) {
|
|
43
|
-
return function(
|
|
44
|
-
var c = s(
|
|
45
|
-
return c(
|
|
43
|
+
return function(r, i) {
|
|
44
|
+
var c = s(r) ? n : a, l = t ? t() : {};
|
|
45
|
+
return c(r, e, o(i, 2), l);
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
t.exports = c;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as e, ct as t, d as n, g as r, h as i, u as a, v as o } from "./shared-
|
|
2
|
-
import {
|
|
3
|
-
import { m as l } from "./operations-
|
|
1
|
+
import { T as e, ct as t, d as n, g as r, h as i, u as a, v as o } from "./shared-C_2F90xq.js";
|
|
2
|
+
import { jp as s, th as c } from "./handlers-C6CZ0XJA.js";
|
|
3
|
+
import { m as l } from "./operations-DKQWuLL7.js";
|
|
4
4
|
var u = async (u) => {
|
|
5
5
|
let d = s(u);
|
|
6
6
|
if (d) return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./shared-
|
|
1
|
+
import { vs as e } from "./visualization-filters-D7i6oh1Z.js";
|
|
2
|
+
import "./shared-C_2F90xq.js";
|
|
3
3
|
var t = (e) => e.presentation?.layout !== void 0 && e.data.dimensions.length === 1 && e.data.measures.length === 1, n = (e) => {
|
|
4
4
|
let { grouped: t, offset: n, pyramid: r, stacked: i } = e.barSettings ?? {};
|
|
5
5
|
return !!(t || i || r || n?.enabled);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as n, D as r, E as i, N as a, S as o, T as s, _ as c, b as l, c as u, d, f, h as p, k as m, l as h, m as g, n as _, ot as v } from "./shared-
|
|
3
|
-
import {
|
|
4
|
-
import { _ as x, b as S, t as C, u as w, v as T, w as E } from "./operations-
|
|
5
|
-
import { t as D } from "./bar-layout-
|
|
1
|
+
import { ko as e, r as t } from "./visualization-filters-D7i6oh1Z.js";
|
|
2
|
+
import { A as n, D as r, E as i, N as a, S as o, T as s, _ as c, b as l, c as u, d, f, h as p, k as m, l as h, m as g, n as _, ot as v } from "./shared-C_2F90xq.js";
|
|
3
|
+
import { Vm as y, jp as b } from "./handlers-C6CZ0XJA.js";
|
|
4
|
+
import { _ as x, b as S, t as C, u as w, v as T, w as E } from "./operations-DKQWuLL7.js";
|
|
5
|
+
import { t as D } from "./bar-layout-C_UgRlVl.js";
|
|
6
6
|
t();
|
|
7
7
|
var O = (e) => {
|
|
8
8
|
let t = [...e.data.dimensions.map((e, t) => ({
|
|
@@ -315,7 +315,7 @@ var O = (e) => {
|
|
|
315
315
|
payload: { bands: s }
|
|
316
316
|
}), p(e, n, ["presentation"]);
|
|
317
317
|
}, H = async (e) => {
|
|
318
|
-
let t =
|
|
318
|
+
let t = b(e);
|
|
319
319
|
if (t) return {
|
|
320
320
|
issues: [{
|
|
321
321
|
code: "invalid_structure",
|
|
@@ -329,7 +329,7 @@ var O = (e) => {
|
|
|
329
329
|
issues: s(r.error, e.definition),
|
|
330
330
|
success: !1
|
|
331
331
|
};
|
|
332
|
-
let i =
|
|
332
|
+
let i = y.safeParse(e.baseVSpec);
|
|
333
333
|
if (!i.success) return {
|
|
334
334
|
issues: [d("invalid_structure", ["baseVSpec"], "Base bar vSpec is invalid.", { details: { issues: i.error.issues } })],
|
|
335
335
|
success: !1
|
|
@@ -379,7 +379,7 @@ var O = (e) => {
|
|
|
379
379
|
issues: [p.issue],
|
|
380
380
|
success: !1
|
|
381
381
|
};
|
|
382
|
-
let g =
|
|
382
|
+
let g = y.safeParse(p.state.vSpec);
|
|
383
383
|
return g.success ? {
|
|
384
384
|
resolvedRefs: p.state.resolvedRefs,
|
|
385
385
|
success: !0,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { ci as s, zr as c } from "./utils-
|
|
4
|
-
import { nn as l } from "./handlers-
|
|
5
|
-
import { t as u } from "./isEqual-
|
|
6
|
-
import { c as d, s as f } from "./logger-
|
|
7
|
-
import "./extend-preset-
|
|
8
|
-
import "./with-html-element-
|
|
2
|
+
import { Ir as n, Lo as r, gc as i, un as a, y as o } from "./visualization-filters-D7i6oh1Z.js";
|
|
3
|
+
import { ci as s, zr as c } from "./utils-DganVptf.js";
|
|
4
|
+
import { nn as l } from "./handlers-C6CZ0XJA.js";
|
|
5
|
+
import { t as u } from "./isEqual-D8Ay63xR.js";
|
|
6
|
+
import { c as d, s as f } from "./logger-DdZpR7xZ.js";
|
|
7
|
+
import "./extend-preset-D9-JP92b.js";
|
|
8
|
+
import "./with-html-element-CiIhFEa5.js";
|
|
9
9
|
import "./event-bus-CrLB-Y8z.js";
|
|
10
|
-
import "./useFieldName-
|
|
10
|
+
import "./useFieldName-CdnCWzhd.js";
|
|
11
11
|
import "rxjs";
|
|
12
12
|
var p = /* @__PURE__ */ e(s()), m = (e, t) => {
|
|
13
13
|
let n = { ...t };
|
|
@@ -43,7 +43,7 @@ var p = /* @__PURE__ */ e(s()), m = (e, t) => {
|
|
|
43
43
|
v
|
|
44
44
|
], t, s);
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
n("use-source-vspec", "yellow"), n("use-selections", "green");
|
|
47
47
|
var x = /* @__PURE__ */ t(((e) => {
|
|
48
48
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
49
49
|
})), S = /* @__PURE__ */ t(((e) => {
|
|
@@ -281,7 +281,7 @@ var P = f(), F = ({ id: e, ...t }, { vBackendAPI: n, objectId: r }) => {
|
|
|
281
281
|
let a = r || n.model.getObject()?.id;
|
|
282
282
|
n.daedalus.emitEvent(P.AstratoEvents.OBJECT_INTERACTION, i, a);
|
|
283
283
|
};
|
|
284
|
-
o(), u(), c(),
|
|
284
|
+
o(), u(), c(), n("with-astrato-frame", "#4fcd55"), n("with-astrato-panel-special", "#4fcd55"), n("use-build-query", "yellow"), n("use-query-data", "steelblue"), p.forwardRef(function(e, t) {
|
|
285
285
|
return p.createElement("img", {
|
|
286
286
|
...e,
|
|
287
287
|
ref: t,
|
|
@@ -293,5 +293,5 @@ o(), u(), c(), r("with-astrato-frame", "#4fcd55"), r("with-astrato-panel-special
|
|
|
293
293
|
ref: t,
|
|
294
294
|
src: "data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Crect%20x%3D%2212%22%20y%3D%221.33325%22%20width%3D%2211.3333%22%20height%3D%223.33333%22%20rx%3D%221%22%20transform%3D%22rotate(90%2012%201.33325)%22%20fill%3D%22%2368686E%22%2F%3E%0A%20%20%3Crect%20x%3D%227.33337%22%20y%3D%225.33325%22%20width%3D%227.33333%22%20height%3D%223.33333%22%20rx%3D%221%22%20transform%3D%22rotate(90%207.33337%205.33325)%22%20fill%3D%22%2368686E%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M13.6667%2013.8931H2.33333C2.24493%2013.8931%202.16014%2013.8404%202.09763%2013.7466C2.03512%2013.6529%202%2013.5257%202%2013.3931C2%2013.2605%202.03512%2013.1333%202.09763%2013.0395C2.16014%2012.9457%202.24493%2012.8931%202.33333%2012.8931H13.6667C13.7551%2012.8931%2013.8399%2012.9457%2013.9024%2013.0395C13.9649%2013.1333%2014%2013.2605%2014%2013.3931C14%2013.5257%2013.9649%2013.6529%2013.9024%2013.7466C13.8399%2013.8404%2013.7551%2013.8931%2013.6667%2013.8931Z%22%20fill%3D%22%2368686E%22%2F%3E%0A%3C%2Fsvg%3E%0A"
|
|
295
295
|
});
|
|
296
|
-
}),
|
|
296
|
+
}), r.Vertical, r.Horizontal, P.ImageFileType.JPEG, n("get-view-states", "#d8b4fe"), n("with-astrato-panel", "#388e3c");
|
|
297
297
|
export { b as n, F as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as e, t } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import {
|
|
3
|
-
import { Cn as c } from "./utils-
|
|
2
|
+
import { Ac as n, Et as r, Ir as i, Oa as a, gs as o, yc as s } from "./visualization-filters-D7i6oh1Z.js";
|
|
3
|
+
import { Cn as c } from "./utils-DganVptf.js";
|
|
4
4
|
import { t as l } from "./color-rules-DYJL4fIW.js";
|
|
5
5
|
import { r as u } from "./color-settings-DJFoFTip.js";
|
|
6
|
-
import "./logger-
|
|
6
|
+
import "./logger-DdZpR7xZ.js";
|
|
7
7
|
import { t as d, u as f } from "./src-77e3mC7i.js";
|
|
8
8
|
var p = (e, t, n) => e?.type === s.Single ? m(t, e.color ?? void 0) : e?.type === s.Categorical ? {
|
|
9
9
|
ref: n || void 0,
|
|
@@ -23,15 +23,15 @@ var p = (e, t, n) => e?.type === s.Single ? m(t, e.color ?? void 0) : e?.type ==
|
|
|
23
23
|
}
|
|
24
24
|
return e?.coloring?.type === s.Single ? r?.graphColor ?? e?.coloring?.color ?? n.colors.brandColors[0] : p(e.coloring, n, i);
|
|
25
25
|
}, g = (e, t) => {
|
|
26
|
-
let
|
|
26
|
+
let n = null;
|
|
27
27
|
if (t?.pattern) {
|
|
28
|
-
let
|
|
29
|
-
let n =
|
|
28
|
+
let r = e.datum, i = Object.keys(r).reduce((e, t) => {
|
|
29
|
+
let n = r[t];
|
|
30
30
|
return n?.source?.field && n.source.key !== void 0 && (e[n.source.field] = n), e;
|
|
31
|
-
}, {}), o = t.pattern.reduce((e, t) =>
|
|
32
|
-
t.itemsMap?.[o] || (
|
|
31
|
+
}, {}), o = t.pattern.reduce((e, t) => i[t] ? `${e}-${i[t].value}` : `${e}-${r.value}`, `${r.source?.key ?? ""}`);
|
|
32
|
+
t.itemsMap?.[o] || (n = a.grey3);
|
|
33
33
|
}
|
|
34
|
-
return
|
|
34
|
+
return n;
|
|
35
35
|
}, _ = /* @__PURE__ */ t(((e, t) => {
|
|
36
36
|
var n = Math.max, r = Math.min;
|
|
37
37
|
function i(e, t, i) {
|
|
@@ -62,8 +62,8 @@ var p = (e, t, n) => e?.type === s.Single ? m(t, e.color ?? void 0) : e?.type ==
|
|
|
62
62
|
"less-equals",
|
|
63
63
|
"between",
|
|
64
64
|
"not-equals"
|
|
65
|
-
], w = ["inList", "notInList"], T = (e) =>
|
|
66
|
-
if (
|
|
65
|
+
], w = ["inList", "notInList"], T = (e) => o(e) || typeof e != "string" || e.length === 0 ? "," : e, E = (e, t) => {
|
|
66
|
+
if (o(e.value)) return !1;
|
|
67
67
|
let n = e.operator || "equals";
|
|
68
68
|
return S.includes(n) ? O(e, t) : C.includes(n) ? k(e, t) : w.includes(n) ? D(e, t) : !1;
|
|
69
69
|
};
|
|
@@ -113,7 +113,7 @@ var A = i("color-manager", "#3f6212"), j = (e, t) => {
|
|
|
113
113
|
case "number": return typeof t == "string" ? parseFloat(t) : Number(t);
|
|
114
114
|
default: return t;
|
|
115
115
|
}
|
|
116
|
-
}, M = (e) =>
|
|
116
|
+
}, M = (e) => o(e) || typeof e != "string" || e.length === 0 ? "," : e, N = (e) => {
|
|
117
117
|
if (typeof e.value != "string" && typeof e.value != "number") return [];
|
|
118
118
|
let t = M(typeof e.delimiter == "string" ? e.delimiter : void 0);
|
|
119
119
|
return String(e.value).split(t).map((e) => e.trim()).filter((e) => e.length > 0);
|
|
@@ -124,7 +124,7 @@ var A = i("color-manager", "#3f6212"), j = (e, t) => {
|
|
|
124
124
|
return t[n] = r, r;
|
|
125
125
|
}, F = (e, t) => {
|
|
126
126
|
if ((0, b.default)(e.value)) return !1;
|
|
127
|
-
if (
|
|
127
|
+
if (o(e.value) || u(e.value)) return A.warn("Color rule not preprocessed correctly - ignoring", e), !1;
|
|
128
128
|
let n = j(t, e.value);
|
|
129
129
|
if ([l.InList, l.NotInList].includes(e.operator)) {
|
|
130
130
|
let n = N(e);
|
|
@@ -145,7 +145,7 @@ var A = i("color-manager", "#3f6212"), j = (e, t) => {
|
|
|
145
145
|
case l.LessEquals: return t <= n;
|
|
146
146
|
case l.Between: {
|
|
147
147
|
if ((0, b.default)(e.secondValue)) return !1;
|
|
148
|
-
if (
|
|
148
|
+
if (o(e.secondValue) || u(e.secondValue)) return A.warn("Color rule not preprocessed correctly - ignoring", e), !1;
|
|
149
149
|
let r = j(t, e.secondValue);
|
|
150
150
|
return n <= t && t <= r;
|
|
151
151
|
}
|
|
@@ -268,8 +268,8 @@ var A = i("color-manager", "#3f6212"), j = (e, t) => {
|
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
getMeasureColor(e, t) {
|
|
271
|
-
let
|
|
272
|
-
return typeof
|
|
271
|
+
let r = this.vSpec?.coloring?.type, i = this.vSpec.measures.findIndex((e) => n(t?.dataItem, e.dataItem)), a = r ? e.scales[r]?.range?.[i] : void 0;
|
|
272
|
+
return typeof a == "string" ? a : t?.graphColor ?? this.vSpec?.coloring?.color ?? this.vTheme.colors.brandColors[0];
|
|
273
273
|
}
|
|
274
274
|
static getColorWithCallback(e, t) {
|
|
275
275
|
return (n) => t(typeof e == "function" ? e(n) : e, n);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
-
import { Ct as t, Ot as n, Tt as r, Vt as i, _t as a, ci as o, dn as s, dt as c, fn as l, gt as u, ht as d, kt as f, ln as p, pn as m, rt as h, tt as g, un as _, vt as v, zr as y } from "./utils-
|
|
2
|
+
import { Ct as t, Ot as n, Tt as r, Vt as i, _t as a, ci as o, dn as s, dt as c, fn as l, gt as u, ht as d, kt as f, ln as p, pn as m, rt as h, tt as g, un as _, vt as v, zr as y } from "./utils-DganVptf.js";
|
|
3
3
|
var b = /* @__PURE__ */ e(o());
|
|
4
4
|
y(), f();
|
|
5
5
|
var x = {
|