MCPcopy Create free account
hub / github.com/alignoth/alignoth / getCardinalityAggregateForChild

Method getCardinalityAggregateForChild

resources/vega-lite.min.js:13020–13044  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13018 : super.assembleGroup(e);
13019 }
13020 getCardinalityAggregateForChild() {
13021 const e = [],
13022 t = [],
13023 n = [];
13024 if (this.child instanceof pp) {
13025 if (this.child.channelHasField("column")) {
13026 const i = ma(this.child.facet.column);
13027 (e.push(i), t.push("distinct"), n.push(`distinct_${i}`));
13028 }
13029 } else
13030 for (const i of Ct) {
13031 const r = this.child.component.scales[i];
13032 if (r && !r.merged) {
13033 const o = r.get("type"),
13034 a = r.get("range");
13035 if (kr(o) && kn(a)) {
13036 const r = ym(vm(this.child, i));
13037 r
13038 ? (e.push(r), t.push("distinct"), n.push(`distinct_${r}`))
13039 : Si(Xn(i));
13040 }
13041 }
13042 }
13043 return { fields: e, ops: t, as: n };
13044 }
13045 assembleFacet() {
13046 const { name: e, data: n } = this.component.data.facetRoot,
13047 { row: i, column: r } = this.facet,

Callers 1

assembleFacetMethod · 0.95

Calls 9

krFunction · 0.85
knFunction · 0.85
XnFunction · 0.85
maFunction · 0.70
ymFunction · 0.70
vmFunction · 0.70
SiFunction · 0.70
channelHasFieldMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected