Skip to main content
100%

Bar graph with customised axis

✓ Published1🌍 Public
VVishwa246
Last edited May 3, 2020
Created on May 3, 2020
Forked from HTML Starter

This example visualizes the top 10 most populous countries using a horizontal bar graph, with bars rendered as SVG rectangles and a customized axis. The graph displays population values on the x-axis and country names on the y-axis, with data loaded from a CSV file. The code leverages D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to construct the scales and axes, while `format` is used to abbreviate tick labels (e.g., converting billions to "B"). Custom styling is applied via CSS classes for ticks, labels, and the title.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes