{"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/77bdb754a0ab48ed92f10bfc056f62c5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}