{"version":"1.0","type":"rich","title":"Javascript Array","description":"This example demonstrates how to manipulate JavaScript arrays through map, reduce, and sort operations. It defines a custom range function to generate an array of numbers, then creates an entries array of key-value objects and applies D3’s ascending and descending comparators for sorting. The code also uses reduce to transform the entries array into a plain object, logging intermediate accumulator values to the console. It relies on D3 7.8.5 for comparator functions and runs directly in the browser console without rendering any visual output.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/714c9189a2f24bbf8de0a26bb4326d21?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}