Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Working with Time

Public visualization

Viewing a saved revision (read-only)

2e2741c5e61241c0a15582d07d879099

Working with Time

0 stars0🌍 Public
Ggabrielribeirob
Last edited Nov 10, 2021
Created on Nov 10, 2021
Forked from LineChart

This example shows monthly gross profit and units sold over time, with two line charts sharing a time axis. It uses D3 v5 and React, loading data from a CSV file via `d3.csv`. The code employs `scaleTime`, `scaleLinear`, `axisBottom`, and `axisLeft` to render the axes, while `line` draws the paths. The visualization compares two metrics across the same 2020–2021 period, with points and lines styled from the data.

AI-generated description

A demonstration of how to start using D3 version 6.