lance-p / configurable-transform-flat-array-to-nested

Takes an array of objects with flat structure and transforms into a tiered, hierarchical structure with configurable levels and key names

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

configurable-transform-flat-array-to-nested

A recurisve function that takes an array of objects with a flat structure and transforms into a tiered, hierarchical structure that you can simply specify the nesting order, number of levels, and field names (e.g. sunburst chart, https://bl.ocks.org/mbostock/4348373, flare.json)

About

Takes an array of objects with flat structure and transforms into a tiered, hierarchical structure with configurable levels and key names


Languages

Language:JavaScript 100.0%