Skip to main content
100%

line chart Saranya

✓ Published0🌍 Public
MMalempatiSaranya
Last edited Jul 2, 2022
Created on Jul 1, 2022
Forked from Multiline chart

This example shows how forest area in South American countries has changed annually from 1990 to 2015, with each country’s net forest conversion trend drawn as a separate blue line. The chart uses d3.csv to load the data, d3.timeParse and d3.scaleTime for the year axis, and d3.nest to group values by country. A d3.line generator creates the SVG paths, while d3.scaleOrdinal assigns distinct colors to each country. Interactive tooltips appear on hover, and the chart includes a title and legend built with SVG text elements.

AI-generated description
MIT Licensed

Similar vizzes