Skip to main content
100%

barchart-sorted

✓ Published0🌍 Public
AAbirKhan96
Last edited Feb 17, 2020
Created on Feb 17, 2020
Forked from barchart-sorted

This example shows an interactive, animated bar chart comparing height and weight percentages across eight administrative blocks. Users can switch between viewing height data, weight data, or their combined sum, as well as select among three months (August, September, October) via dropdown menus. The bars are sorted by the selected metric and colored using a sequential color scale with an RdYlGn interpolator. Built with D3 v5, the visualization uses `d3.scaleLinear`, `d3.scaleBand`, and `d3.axisLeft` for scales and axes, with transitions animating bar positions, heights, text labels, and the y-axis. Hovering over a bar reveals a tooltip with the block name and value, while the underlying SVG renders the chart and its table-like layout.

AI-generated description

barchart sorted

MIT Licensed

Similar vizzes