{"version":"1.0","type":"rich","title":"D3 Selection Exploration","description":"This example demonstrates how D3’s `ascending` comparator can be used to sort an array of key-value pairs by their keys. The code defines a static dataset of three entries with keys A, C, and B, logs the original array, then logs the sorted result after applying `entries.sort((a, b) => ascending(a.key, b.key))`. The visualization is minimal, relying only on an HTML page with a large centered text message and no graphical rendering. It uses D3 version 7.8.5 within a React project, but the focus is purely on console-based data manipulation rather than visual output.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/926c64250a0844ad96015c60ff622dea?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}