Export Image
Export Code

aviii5

0 views in last 90 days
Last edited Oct 28, 2025
Created on Oct 28, 2025
Forked from D3 Starter

Monthly Sales Trend Visualization

This project visualizes monthly sales data from 2021 to 2025 using D3.js.

Files

  • index.html: Main HTML file
  • index.js: JavaScript implementation for the line chart
  • sales_trend.csv: Sales data by month

How to Run

  1. Open index.html in a web browser
  2. The line chart will automatically load and display the sales trend

Data Format

The CSV file contains two columns:

  • month: Month and year in format "MMM-YYYY" (e.g., "Jan-2021")
  • sales: Sales figures for that month
MIT Licensed