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

Function treemapTransforms

docs/tests/v2/es6/js/sanddance.js:152614–152638  ·  view source on GitHub ↗
(insight)

Source from the content-addressed store, hash-verified

152612}
152613
152614function treemapTransforms(insight) {
152615 const transforms = [{
152616 type: 'nest',
152617 keys: [insight.columns.group || '__NONE__']
152618 }, {
152619 type: 'treemap',
152620 field: insight.columns.size,
152621 sort: {
152622 field: 'value',
152623 order: 'descending'
152624 },
152625 round: true,
152626 method: {
152627 signal: _constants.SignalNames.TreeMapMethod
152628 },
152629 padding: 1,
152630 size: [{
152631 signal: 'width'
152632 }, {
152633 signal: 'height'
152634 }],
152635 as: [_constants.FieldNames.TreemapStackX0, _constants.FieldNames.TreemapStackY0, _constants.FieldNames.TreemapStackX1, _constants.FieldNames.TreemapStackY1, _constants.FieldNames.TreemapStackDepth, _constants.FieldNames.TreemapStackChildren]
152636 }];
152637 return transforms;
152638}
152639},{"../../array":"FvDz","../constants":"RaLA","../facet":"kjBE","../top":"z3Hg"}],"vnKC":[function(require,module,exports) {
152640"use strict";
152641

Callers 1

_defaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected