{"version":"1.0","type":"rich","title":"Making a bar chart","description":"This example demonstrates how to build a bar chart from a CSV file containing population data for ten countries. The chart maps countries to the x-axis using a band scale and populations to the y-axis with a linear scale, rendering each bar as an SVG rectangle. The code imports specific D3 v5 functions—`select`, `csv`, `scaleLinear`, `max`, and `scaleBand`—to parse the data, calculate scales, and append the elements to an SVG canvas.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/cbb04ac439c94a47980a1b5876ee231a?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}