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

Function ordinalScale

docs/app/js/sanddance-app.js:4690–4703  ·  view source on GitHub ↗
(dataName, scaleName, binFields)

Source from the content-addressed store, hash-verified

4688 };
4689}
4690function ordinalScale(dataName, scaleName, binFields) {
4691 return {
4692 type: "ordinal",
4693 name: scaleName,
4694 domain: {
4695 data: dataName,
4696 field: (0, _expr.safeFieldName)(binFields[0])
4697 },
4698 range: {
4699 data: dataName,
4700 field: (0, _constants.FieldNames).Ordinal
4701 }
4702 };
4703}
4704
4705},{"./constants":"9PPhV","./expr":"f5d82","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"kXVJ3":[function(require,module,exports) {
4706var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

createOrdinalsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected