{"version":"1.0","type":"rich","title":"Making a Bar Chart","description":"This example visualizes the top 10 best-selling video games by sales, using a horizontal bar chart. The chart encodes each game’s title on the y-axis and its sales figure on the x-axis, with the data sourced from a CSV file containing 2018 United Nations population estimates. It uses D3 v5 APIs including `scaleLinear` and `scaleBand` for scales, `axisLeft` and `axisBottom` for axes, and SVG `rect` elements for the bars. The code imports functions via ES modules and renders the chart by appending elements to an SVG.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/028e0f6355e3443080f48a3fdf4a6e07?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}