{"version":"1.0","type":"rich","title":"Stacked Bar Chart with Tooltip by D3 v4","description":"This example shows the age distribution of the U.S. population by gender, with males and females stacked as colored segments within each age group. The chart uses D3 v4's `d3.scaleBand` for the age categories, `d3.scaleLinear` for percentages, and `d3.scaleOrdinal` for color encoding. Hovering over a segment triggers a tooltip built with a separate SVG that displays the exact value. The data comes from data.gov, and the code draws from examples by Mike Bostock and Michael Stanaland.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-58926b582c7d69b7d7d49bb00f7a453b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}