{"version":"1.0","type":"rich","title":"Making a bar graph","description":"This example shows a horizontal bar chart of population data for nine countries, with each bar’s length proportional to the population value loaded from a CSV file. It demonstrates basic D3.js DOM manipulation by building the chart entirely with SVG elements, using `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis categories, and `d3.axisLeft` and `d3.axisBottom` to render the axes. The code appends rectangles for bars and positions them via the scales, with margins applied to the SVG canvas.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/9859a286623a424da9b24ff5c1196ed2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}