paulroth3d / jupyter-ijavascript-utils

Utility library for working with iJavaScript - a Jupyter Kernel
1 stars 0 forks source link

Investigate merging multi-dimensional arrays into MxN arrays #43

Open prothSFDC opened 1 year ago

prothSFDC commented 1 year ago

In generating icicle graphs, an artist will need to generate a multi-dimensional column (say: for each group, I need to know the unique identifier and label)

would be better than saying something like

results = [];
layout.forEach(specificColumn => {
  results.push(specificColumn.fields.map(r => r.id));
  results.push(specificColumn.fields.map(r => r.label));
});
results = utils.array.transpose(results);