Making a Bar Chart
✓ Published1🌍 Public
This bar chart displays the obesity rates of the most affected countries using 2016 data from a Wikipedia list. It renders horizontal bars for each country, with the length of each bar proportional to the obesity rate percentage. The visualization uses D3 v7 with `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft`/`axisBottom` for the axes. The SVG elements are styled with `fill: steelblue`, and the data is loaded from a local `data.csv` file.
AI-generated descriptionThis bar chart shows the obesity rates of the top 4 most obese countries in the world. The data comes from the year 2016 [https://en.wikipedia.org/wiki/List_of_countries_by_obesity_rate]
MIT Licensed