Fork of line chart
✓ Published0🌍 Public
This line chart displays fertilizer use per hectare for ten countries, using a green line and dark green circles positioned along a horizontal axis of country names. The y-axis maps fertilizer values from zero to the dataset’s maximum. The code loads data from a CSV file via `d3.csv`, sorts records, and renders the visualization with D3 v7’s `d3.scaleBand`, `d3.scaleLinear`, and `d3.line` in SVG. Axis labels and rotated tick text are added using `d3.axisBottom` and `d3.axisLeft`. Circle elements include `title` tooltips showing country and value.
AI-generated descriptionMIT Licensed