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

Function checkIsColorData

docs/app/js/sanddance-app.js:2090–2100  ·  view source on GitHub ↗
(data, column)

Source from the content-addressed store, hash-verified

2088 });
2089}
2090function checkIsColorData(data, column) {
2091 if (!column.stats.hasColorData) {
2092 column.isColorData = false;
2093 return;
2094 }
2095 for(let i = 0; i < data.length; i++)if (!isColor(data[i][column.name])) {
2096 column.isColorData = false;
2097 return;
2098 }
2099 column.isColorData = true;
2100}
2101function getStats(data, column) {
2102 const distinctMap = {};
2103 const stats = {

Callers 1

inferAllFunction · 0.70

Calls 1

isColorFunction · 0.70

Tested by

no test coverage detected