Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of line chart section 3

Public visualization

Fork of Fork of Fork of line chart section 3

0 stars0🌍 Public
Ccharanchand9
Last edited Jul 3, 2022
Created on Jul 3, 2022

This example visualizes student enrollment data from 2014 to 2022 as a single red line chart. The x-axis maps years using a time scale, while the y-axis maps student counts with a linear scale. The code imports D3 v5 modules like `csv`, `scaleLinear`, `scaleTime`, `axisBottom`, and `line` to load the data, create axes with gridlines, and draw the path. The data is fetched from a GitHub Gist and rendered as an SVG.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed