Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Area chart for electronics sale

Public visualization

Area chart for electronics sale

0 stars1🌍 Public
Ppriyapravallika44@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from Act 6 task 4

This area chart displays electronics sales figures across six months, from January through June, with a semi-transparent blue fill and a darker boundary line. The visualization uses D3.js v6 with SVG rendering, employing `d3.scalePoint` for the month-based x-axis and `d3.scaleLinear` for the sales values on the y-axis. The area and line paths are generated using the `d3.area()` and `d3.line()` generators, while axes are created with `d3.axisBottom` and `d3.axisLeft`. Sales data comes from a hardcoded array with monthly dollar amounts.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed