{"version":"1.0","type":"rich","title":"Making a bar chart","description":"A horizontal bar chart ranks ten countries by population, using the top-ten data sample of 2018 estimates. The chart encodes population in bar widths and country names on the y-axis. Built with D3 v5, it loads data from `data.csv`, parses populations, and renders SVG rectangles using `d3.scaleLinear`, `d3.scaleBand`, and `d3.max` to set scales and domains. The code imports `select`, `csv`, and scale functions via ES modules and appends a grouped `<g>` element with margin transforms.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/44361fef32f04ad39822c1d187f8f76c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}