🌍 Public
Viewing a saved revision (read-only)
295ce1ea7f07492c9cbdcafcf6215b75
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.