Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8 _task3

Public visualization

Viewing a saved revision (read-only)

3a8d81fd107e4103bb2582c4792e55d2

Activity 8 _task3

0 stars0🌍 Public
Mmandadi1999
Last edited Jul 17, 2023
Created on Jul 17, 2023
Forked from linechart

This example visualizes the cost of sales from 2000 to 2013 using a line chart rendered in SVG. It shows the yearly cost values from the CSV data, with a red title and axis labels, and a light green line connecting the data points. The code uses D3 v7 to load the data with `d3.csv`, define a linear scale for the y-axis and a band scale for the x-axis, and draw the line via `d3.line`. The axes are added using `d3.axisBottom` and `d3.axisLeft`.

AI-generated description

A demonstration of how to start using D3 version 6.