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