Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML Starter

Public visualization

HTML Starter

0 stars0🌍 Public
TTrustPaul
Last edited Nov 13, 2020
Created on Nov 13, 2020
Forked from HTML Starter

This example displays a bar chart of population data for several countries, loaded from a CSV file. The bars are rendered as SVG rectangles, with a linear scale mapping population values to widths and a band scale mapping country names to vertical positions. The code uses D3 v6 methods such as `d3.scaleLinear`, `d3.scaleBand`, and `d3.axisLeft` to construct the visualization. The HTML page includes inline CSS and JavaScript, with the chart drawn entirely through D3’s selection and data-join pattern.

AI-generated description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed