BMI Bar Chart
✓ Published0🌍 Public
This bar chart displays the top 10 highest BMI values from a local dataset, ranking individuals by their body mass index in descending order. The visualization uses D3.js with `scaleBand` and `scaleLinear` to map names and BMI values to the x and y axes, respectively. The code imports the data from `bmiData` and renders it as an SVG, with each bar’s height proportional to the BMI value. Axes and labels are added using the `@curran/axis-labels` library, and the chart is designed to fit the container’s dimensions.
AI-generated descriptionA bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.
Challenge
- Fork this viz and modify it to show your own data
MIT Licensed