{"version":"1.0","type":"rich","title":"Making a bar chart with D3.js!","description":"This example shows a horizontal bar chart of country populations, using bar length to encode population size and the y-axis to list country names. The visualization renders in SVG and loads data from a CSV file, converting population values to numbers before scaling. The code builds the chart with D3 v5 functions including `csv`, `scaleLinear`, `scaleBand`, `axisBottom`, `axisLeft`, and `select`, positioning bars within a margin-based layout. Rectangles are appended via a data join, with widths mapped from the linear scale and heights from the band scale.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/67b9fe20df884ae58deeec660e318295?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}