{"version":"1.0","type":"rich","title":"JavaScript Arrays","description":"This example demonstrates common JavaScript array operations using plain code and D3’s `ascending` comparator. It shows how functions like `range`, `forEach`, `filter`, `map`, `reduce`, and `sort` transform arrays, including sorting numeric values correctly and grouping entries by key. No visual output is rendered; the code logs intermediate results to the console. The example uses the `d3` library’s `ascending` function for stable sorts, building a practical reference for array manipulation basics.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8580b5beddbf4ba7a986e5b557a0ced4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}