{"version":"1.0","type":"rich","title":"Making a Bar Chart","description":"This example demonstrates how to build a horizontal bar chart from scratch using D3 v5 in a React framework. The visualization displays population data for ten countries, with bars rendered as SVG rectangles scaled linearly by population and positioned using a band scale for country names. The code explicitly uses D3’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` functions, reading data from a CSV file. Axes are appended to a grouped SVG element, and bar heights are determined by the band scale’s bandwidth.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/512ab1a54bf14e708723af56ce496420?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}