Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

fork fork

Public visualization

fork fork

0 stars0🌍 Public
Ssjannaikode@gmail.com
Last edited Apr 9, 2025
Created on Apr 9, 2025

This example renders a simple area chart for a categorical sales dataset. The chart visualizes sales values across categories using a filled steelblue area. The code loads JSON data from a remote URL and uses D3 v7 with the `d3.json` data loading method. The chart is built with SVG output, employing `d3.scalePoint` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.area` to generate the area path. Axis and label annotations are added with `d3.axisBottom` and `d3.axisLeft`, while the SVG text elements label the axes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed