Fork of D3 Starter
✓ Published1🌍 Public
This example displays sales, revenue, and profit trends from a CSV file using two D3.js v7 charts: a multi-series line chart and a combined bar-and-line chart. It uses `d3.csv`, `d3.scaleTime`, `d3.line`, and `d3.axisBottom` for data loading, scaling, and rendering, with tooltips via `d3.select` and a Poppins font for typography.
AI-generated descriptionSales, Revenue & Profit Trends Visualization
This project visualizes sales trends using D3.js with two interactive charts:
- Multi-series line chart showing Sales, Revenue, and Profit over time
- Combined bar and line chart showing Sales (bars) and Profit (line)
Features
- Interactive tooltips on data points
- Gridlines for better readability
- Custom color scheme
- Legend for data series identification
- Annotation marking peak profit point
- Responsive design with smooth transitions
Data
Data is sourced from trend.csv containing daily metrics
from January to February 2025.
Customization Elements
- Custom color palette for each metric
- Interactive hover effects on bars and data points
- Gridlines for better data reading
- Peak profit annotation with dashed line
- Tooltip functionality for detailed data inspection
- Custom font (Poppins) for improved typography
MIT Licensed