π Public
Viewing a saved revision (read-only)
3dcde7442c404772a5f34b4950a306dc
Fork of Fork of Fork of line chart section 3
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