{"version":"1.0","type":"rich","title":"Making a varchart","description":"This example shows a horizontal bar chart of country populations, with bars sized proportionally to each nation’s inhabitants. The chart uses D3 v6’s `scaleLinear` and `scaleBand` to map population values and country names to SVG rectangles, while a margin-based translation positions the chart within the viewport. Data is loaded from a CSV file via `d3.csv`, with population values converted to numbers and multiplied by 1000 before rendering. The visualization is built with React tooling, though the rendering itself relies on D3’s SVG selection and data-join methods.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/78113d5c266447268a250500023aafb5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}