{"version":"1.0","type":"rich","title":"Making a bar chart","description":"This example shows a horizontal bar chart ranking the populations of ten countries, scaled by thousands. The visualization uses D3 v5 with SVG rendering, reading data from a CSV file and mapping population values to bar widths via `d3.scaleLinear` and country names to `d3.scaleBand`. The code demonstrates data loading with `d3.csv`, appending rectangles to the SVG, and applying margins to position the chart. No axes or labels are drawn, focusing purely on the bar geometry.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/45b05d194d124c11872582aae190dd6e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}