Assignment 2 Question 2 (b)
✓ Published1🌍 Public
This area chart visualizes nuclear energy usage in the United States from 2010 to 2020, with the x-axis representing time and the y-axis showing energy consumption values. The visualization combines a smooth line plot with a green filled area beneath the curve, using d3.line and d3.area generators with curveBasis interpolation. The chart loads CSV data from a GitHub repository, parses dates with d3.timeParse, and renders axes with d3.axisBottom and d3.axisLeft within an SVG container. The layout includes labeled axes and gridlines, with the y-axis formatted using d3.format.
AI-generated descriptiondisplaying Area Chart
MIT Licensed