Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

charts

Public visualization

Viewing a saved revision (read-only)

befdaff31edc475a9dd259e59380e064

charts

0 stars0🌍 Public
MManeesh Kumar
Last edited Oct 20, 2025
Created on Oct 20, 2025
Forked from D3 Starter

This example visualizes monthly sales trends from a CSV data source, comparing three product lines from 2019 to 2023. It shows a multi-series line chart with time-scale axes, using D3 v7 and SVG rendering. The code loads data with `d3.csv`, maps dates via `d3.timeParse`, and draws lines with `d3.line`, alongside a legend and axis labels. The second part combines a bar chart for total sales with an overlaid line for average price, using a dual y-axis scale.

AI-generated description

month,product_a,product_b,product_c 2019-01,210,180,150 2019-02,215,175,155 2019-03,230,190,160 2019-04,240,185,170 ... 2023-12,510,460,400