{"version":"1.0","type":"rich","title":"Making a Bar Chart","description":"This example shows a bar chart of population by country using a diverging scale where each bar’s length encodes the population value. The chart derives its data from `data.csv`, loading it with `d3.csv`, and renders SVG rectangles appended to a group element. The code uses `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisLeft` and `d3.axisBottom` for the axes. A margin convention positions the visualization inside the SVG.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/08144f8a0ff24aa39c0d20568c46de2d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}