{"version":"1.0","type":"rich","title":"Making a Bar Chart","description":"This example shows a horizontal bar chart that visualizes the population of various countries, sorted by data order. The chart uses an SVG canvas with a linear scale for population and a band scale for country names, mapping data from a CSV file. The code demonstrates a step-by-step approach to building the visualization, using D3 v5 APIs such as `select`, `scaleLinear`, `scaleBand`, and `csv`. Rectangles are appended to the SVG via the `.enter()` method, with their width and y-position based on the specified scales, and the visualization includes margins that are logged but not fully utilized in the layout.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/39541cd947564734bd006419b904e97c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}