Skip to main content
100%

Testes D3

✓ Published0🌍 Public
Ggabrieln97
Last edited Nov 5, 2020
Created on Nov 5, 2020
Forked from Testes D3

This example shows a bar chart of population data for ten countries, with bars extending horizontally from the left edge of the SVG. The code loads a CSV file containing country names and population figures, converts the population values to numbers and multiplies them by 1000, then scales the data linearly to fit the width of the SVG. It uses D3 v6 methods like `select`, `csv`, `scaleLinear`, `max`, and `scaleBand` (though `scaleBand` is imported but not used), appending rectangles with heights of 300 pixels via SVG rendering.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes