{"version":"1.0","type":"rich","title":"Making a Bar Chart","description":"This example displays the top 10 most populous countries as horizontal bars, using `d3.csv` to load data from the United Nations World Population Prospects 2019 and `d3.scaleLinear` and `d3.scaleBand` to map population and country names. The chart includes axes generated with `d3.axisLeft` and `d3.axisBottom`, rendered as SVG within a `g` element that respects explicit margins. The code appends rectangles with `selection.enter()` and sets their width and height based on the scales, although no gridlines or data labels are shown.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/81cffee1c347441887f2844685e0bf88?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}