Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Overlapped Barchart3

Public visualization

Viewing a saved revision (read-only)

3bcfeb6bb1a5437a81a6c7d748b39b2d

Overlapped Barchart3

0 stars1🌍 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.