barchart-sorted
✓ Published4🌍 Public
This interactive bar chart displays percentages of height, weight, and combined height+weight across eight administrative blocks, with a dropdown to switch between months (August, September, October) and a second dropdown to select which metric to visualize. The bars are sorted descending for the selected metric, and hovering reveals a tooltip with the exact value. Built with D3.js (v5) and SVG, the visualization uses `d3.scaleLinear` for the y-axis, `d3.scaleBand` for the x-axis, and `d3.interpolateRdYlGn` for color encoding. Transitions animate bar repositioning, resizing, and axis updates when the metric changes. Data is loaded from CSV files (`data.csv` and `data_month.csv`) and parsed with type conversion.
AI-generated descriptionbarchart sorted
MIT Licensed