Skip to main content
100%

ICE-7-3 Line Chart

✓ Published1🌍 Public
Hhossaphul
Last edited Mar 26, 2023
Created on Mar 25, 2023
Forked from D3 Starter

This line chart visualizes the monthly Consumer Price Index (CPI) from the U.S. Bureau of Labor Statistics, showing percentage changes over time on a red line plotted against a time-scaled x-axis and linear y-axis. The code uses d3.csv to load the data, then applies d3.scaleTime, d3.scaleLinear, and d3.line to generate the SVG path. Gridlines are drawn via d3.axisBottom and d3.axisLeft, with tick sizing and labels configured. The chart displays a title and axis labels, rendered in an SVG canvas with dimensions defined in the HTML.

AI-generated description

Monthly Consumer Price Index data. Data Source

MIT Licensed

Similar vizzes