Skip to main content
100%

Activity 7 Q_2

✓ Published0🌍 Public
Hhui249378@gmail.com
Last edited Apr 10, 2025
Created on Apr 10, 2025
Forked from D3 Starter

This example displays a sales area chart that tracks the total sales figures over time, with the x-axis representing order dates and the y-axis showing sales amounts. The visualization uses a semi-transparent green filled area to emphasize the trend and magnitude of sales across the plotted dates. Built with d3.v7, the code loads CSV data from a GitHub gist, parses the sales and date fields, sorts the data chronologically, and applies d3.scalePoint and d3.scaleLinear for positioning. An area chart is generated with d3.area, while d3.axisBottom and d3.axisLeft render the axes, with rotated tick labels on the x-axis for readability.

AI-generated description
MIT Licensed

Similar vizzes