Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line Chart Activity 8 Task 3

Public visualization

Viewing a saved revision (read-only)

46003f477e4246bfa40bfad86b0da391

Line Chart Activity 8 Task 3

0 stars0🌍 Public
VVishnu Sudireddy
Last edited Jul 17, 2023
Created on Jul 17, 2023
Forked from D3 Starter

This example displays a line chart of annual sales costs from 2000 to 2013, with a light green stroke on an SVG canvas. The chart uses D3 v7’s `scaleBand` for the year axis and `scaleLinear` for the cost axis, drawing the line with `d3.line()`. Data is loaded from a CSV file via `d3.csv`, and axes are rendered using `d3.axisBottom` and `d3.axisLeft`. The visualization includes red axis labels and a centered title, highlighting cost fluctuations over time.

AI-generated description

Task 3 of Actiity 8. Demonstration of line chart.