{"version":"1.0","type":"rich","title":"d3 Dispatch V5 - reusable","description":"This reusable D3 v5 example displays U.S. state population data by age group, initially showing a bar chart for a single state that can be updated dynamically. It uses an event dispatcher (`d3.dispatch`) to handle state changes, triggering transitions between bar and pie chart visualizations. The code builds SVG output with scales (`d3.scaleLinear`, `d3.scaleOrdinal`) and axes (`d3.axisLeft`), while loading data from a CSV file. Although the bar and pie drawing functions are present, the visible interaction logic is incomplete.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/10c203de3fea40849f594bfad1543342?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}