Less Height is Sometimes Better
This visualization displays the U.S. unemployment rate from 1948 to 2021 as an area chart, using an orange semi-transparent fill over a time-series line. The chart intentionally allocates less vertical height to the plot area, which improves the perception of the data by preventing the spikes from appearing stretched and distorted. Built with D3 v7, the code uses `d3.scaleTime` and `d3.scaleLinear` for axes, `d3.axisBottom` and `d3.axisLeft` for ticks and labels, and `d3.area()` to generate the SVG path for the area. The data is fetched from a CSV and parsed with `d3.timeParse`.
AI-generated descriptionA modification of the original
https://vizhub.com/lakshmi629/cf1954e10a3e4813b5d1ff81fbd2f9c0
such that there is less height available for the chart. This is better because too much height makes the spikes appear stretched and difficult to perceive.