{"version":"1.0","type":"rich","title":"Making a Bar Chart","description":"This example demonstrates how to build a simple horizontal bar chart using D3 v7, displaying population data for ten countries from a CSV file. The chart shows each country’s population as a steelblue rectangle, scaled linearly along the x-axis and positioned by a band scale on the y-axis. The code uses D3 modules like `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, rendering SVG elements within a 960x500 viewport. Population values are converted from thousands to actual counts before being passed to the scales.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/687ae4900246478c91261ffc346aba4b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}