Skip to main content
100%

area chart

✓ Published0🌍 Public
Ssannihitha.k23@gmail.com
Last edited Apr 14, 2024
Created on Apr 13, 2024
Forked from Fork of area chart

This area chart visualizes monthly sales data from a hardcoded JavaScript array. The chart uses a steelblue filled path to represent the area under the line, with the x-axis mapping months and the y-axis scaling linearly from zero to the maximum sales value. Built with D3 v6, the visualization employs `d3.scaleBand`, `d3.scaleLinear`, and `d3.area` to generate the SVG path, while `d3.axisBottom` and `d3.axisLeft` render the axes. The SVG output is fixed at 600 by 400 pixels within the HTML page.

AI-generated description
MIT Licensed

Similar vizzes