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

Function val

docs/app/js/sanddance-app.js:4609–4609  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

4607parcelHelpers.export(exports, "serializeAsVegaExpression", ()=>serializeAsVegaExpression);
4608function displayBin(bin) {
4609 const val = (index)=>`datum[${JSON.stringify(bin.fields[index])}]`;
4610 return bin.discreteColumn.column.quantitative ? `format(${val(0)}, '~r') + ' - ' + format(${val(1)}, '~r')` : val(0);
4611}
4612function obj(nameValues, clause) {

Callers 1

displayBinFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected