Skip to main content
100%

ICE7_Q4_Creating Area Chart with D3js

✓ Published0🌍 Public
PPbarring
Last edited Mar 28, 2022
Created on Mar 28, 2022

This example visualizes gas prices throughout 2021 using a smooth area chart rendered as SVG. The chart displays monthly price data from a CSV file, with the x-axis mapping time and the y-axis representing price in dollars. The code uses D3 v5’s `scaleTime` and `scaleLinear` for axes, `area` with `curveBasis` for the filled curve, and `axisLeft`/`axisBottom` for labeled tick marks. The data is parsed from a Gist-hosted CSV using `d3.csv` and time-formatted with `timeParse`.

AI-generated description
MIT Licensed

Similar vizzes