Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Barchart

Public visualization

Viewing a saved revision (read-only)

c643802cdcb04e7986b0f73fe8c41371

Barchart

0 stars0🌍 Public
LLayaMyadam@my.unt.edu
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from HTML Starter

This example presents a vertical bar chart that compares the 2023 population of various countries, with values scaled in millions on the y-axis and country names on the rotated x-axis. The visualization is rendered as SVG, using D3 v5’s `scaleBand`, `scaleLinear`, and `axisBottom`/`axisLeft` to position and label the bars. Data is loaded asynchronously via `d3.csv` from a remote raw GitHub dataset, and bars are drawn with `rect` elements filled in skyblue. The chart includes custom tick formatting and axis titles for clarity.

AI-generated description

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

See also React Starter.