{"version":"1.0","type":"rich","title":"array to tree","description":"This example converts a randomly shuffled array of integers into a hierarchical tree structure. The visualization shows the resulting dendrogram with red-bordered circles representing nodes and black lines for parent-child links. Using d3.stratify and d3.tree, the array elements are organized into a tree layout with SVG rendering. Text labels display each node’s value, and transitions animate their appearance based on depth. The code updates smoothly when re-rendered with new random data.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d1b0264a96e04fbc95c97dd04f6c6840?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}