Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bargarph using textfile

Public visualization

Viewing a saved revision (read-only)

97e4995a5848488a83b34f7987f07cb5

Making a bargarph using textfile

0 stars0🌍 Public
Aaditya-ux27
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from HTML Starter

This bar chart displays the populations of ten countries, scaled by a factor of one hundred, using blue bars on an SVG canvas. The visualization is rendered with D3 v7 within a React framework, parsing the `data.csv` file via the `csv` function and loading it with `d3.select`. Bar positions and heights are calculated using `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with rectangles generated through the `join` method.

AI-generated description

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

See also React Starter.