Skip to main content
100%

Gist f10a9c7ca50cd9ce0af99cf6c89bfcfa

✓ Published0🌍 Public
Aalexfinnarn
Last edited Oct 25, 2018
Created on Oct 25, 2018

This example transforms tabular CSV data into a hierarchical object structure based on empty cells in organizational level columns. It uses plain JavaScript with dynamic object construction via `eval` and the `JSON.stringify` method to assemble nested children arrays. The code processes each row by iterating through org-level headers, assigning data headers to leaf nodes, and discarding parent placeholders. Finally, it triggers a file download of the resulting hierarchy, demonstrating a manual approach to building tree data without external visualization libraries.

AI-generated description

Similar vizzes