MCPcopy Create free account
hub / github.com/microsoft/SandDance / ensureColumn

Function ensureColumn

docs/app/js/sanddance-app.js:12193–12198  ·  view source on GitHub ↗
(role, quantitative, treemap)

Source from the content-addressed store, hash-verified

12191 const firstQuantitative = nonInternal.filter((c)=>c.quantitative)[0];
12192 const firstQuantitativeColumnName = firstQuantitative && firstQuantitative.name;
12193 const ensureColumn = (role, quantitative, treemap)=>{
12194 if (!insightColumns[role]) {
12195 if (treemap) insightColumns[role] = getTreemapColumn(actualColumns).name;
12196 else insightColumns[role] = quantitative ? firstQuantitativeColumnName : firstColumnName;
12197 }
12198 };
12199 function checkRequiresSize() {
12200 switch(totalStyle){
12201 case "sum-strip":

Callers 2

checkRequiresSizeFunction · 0.70
ensureColumnsPopulatedFunction · 0.70

Calls 1

getTreemapColumnFunction · 0.70

Tested by

no test coverage detected