Skip to main content
100%

Pie Chart Visualization for country table dataset

✓ Published1🌍 Public
JJames Cruz
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from HTML Starter

This example visualizes population trends for five countries from 1980 to 2050 using a multiline chart. Each colored line represents a country’s population values across the given years, with an x-axis for year and y-axis for population count. The code uses D3.js v7 with SVG rendering, employing `d3.scaleLinear`, `d3.line`, and `d3.axisBottom`/`d3.axisLeft` to map the dataset and draw the paths. The data is embedded directly in the script as an array of year-based objects.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes