@bicharts/chart-host 0.5.46 → 0.5.47
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.
|
@@ -638,7 +638,7 @@ function z2(e) {
|
|
|
638
638
|
function G2(e) {
|
|
639
639
|
let t = z2(e), i = e ?? {};
|
|
640
640
|
if (t.nature === "Categorical") return ["first", "distinctcount", "count"];
|
|
641
|
-
if (t.nature === "Ordinal") return Xt(i) ? ["median", "min", "max", "first", "distinctcount", "count"] : ["first", "distinctcount", "count"];
|
|
641
|
+
if (t.nature === "Ordinal") return Xt(i) ? ["median", "average", "min", "max", "first", "distinctcount", "count"] : ["first", "distinctcount", "count"];
|
|
642
642
|
switch (t.additivity) {
|
|
643
643
|
case "positional":
|
|
644
644
|
return ["min", "max", "count", "distinctcount", "first"];
|
package/dist/index.mjs
CHANGED
package/dist/react.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.47",
|
|
4
4
|
"description": "Run a BIC-generated D3 chart in any web host: compiles the generated render() function, applies the shared option defaults, resolves mark clicks (through tooltip overlays), owns the selection affordance, and translates row indices between cross-filtered charts. The same contract the BIC Power BI visual implements, minus Power BI. React bindings at @bicharts/chart-host/react.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|