{"version":"1.0","type":"rich","title":"Improving array to tree","description":"A shuffled array of ten numbers becomes a binary tree, with each node displaying its value. D3's `d3.stratify` converts the flat array into hierarchical data, and `d3.tree` computes the layout. The SVG renders nodes as red-bordered circles connected by black paths. A transition animates the text labels, with a duration that increases based on node depth. The example shows repeated re-shuffling and re-rendering of the tree with each of the ten random permutations.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/771fb9648dd54ad5aba4df7c4975467b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}