🌍 Public
Viewing a saved revision (read-only)
f81798b86ad3499ebcb3d848148ab4d7
Assignmnet 2 -Area chart
This area chart visualizes website traffic trends across five different site categories—News, Travel Blog, E-commerce, Health Portal, and Entertainment Hub—over time using a CSV dataset loaded via d3.csv. Each category is rendered as a semi-transparent filled path using d3.area with curveMonotoneX smoothing, overlaid to show comparative growth. The visualization employs d3.scaleLinear for axes, d3.axisBottom and d3.axisLeft for ticks, and includes a custom legend built with SVG rectangles and text. The code uses d3.v7 and renders entirely as SVG.
AI-generated descriptionHere we are creating area chart for the website traffic dataset