Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Overlapped Barchart7

Public visualization

Viewing a saved revision (read-only)

302e99bb41074e8082d0dfd87b60aa04

Overlapped Barchart7

0 stars1🌍 Public
AAnimesh Nautiyal
Last edited Apr 27, 2021
Created on Apr 27, 2021

This example combines a timeline bar chart with an overlaid line graph to show changes in percentage values across five survey periods from 2005 to 2020. Each green bar spans its corresponding date range, with labels above and hover tooltips revealing exact start and end dates. A green path, generated using `d3.line`, connects the bar midpoints to emphasize the downward trend. Built with React and `d3.scaleTime` and `d3.scaleLinear`, the SVG renders axes, ticks, and bars from the timeperiodv2.json data, with `d3.timeParse` handling date conversion and CSS transitions animating tooltip opacity.

AI-generated description

React Starter code.