Skip to main content
100%

Overlapped Barchart3

✓ Published1🌍 Public
AAnimesh Nautiyal
Last edited Apr 24, 2021
Created on Apr 23, 2021

This visualization displays five time periods as overlapping horizontal bars on a timeline, with each bar's width representing the date range and height reflecting the data value (a percentage). The chart uses React to manage state and D3 v6 APIs (`d3.json`, `d3.scaleTime`, `d3.scaleLinear`) to parse dates from a JSON file (`timeperiodv2.json`) and map them to SVG rectangles. The bars, drawn in semi-transparent green, overlap to highlight how different survey periods (e.g., NFHS3, RSOC, CNNS) compare chronologically and by value, while axes and grid lines are generated from D3’s tick functions.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes