Skip to main content
100%

HTML Starter Bar Chart Cutomizing Axes

✓ Published0🌍 Public
AAkash00226145
Last edited May 2, 2020
Created on Apr 29, 2020

This example shows a horizontal bar chart ranking the ten most populated countries, using population values from a CSV file. The chart displays bars with a steel-blue fill, axis labels, and a title, while customizing both axes by removing default domain lines and formatting population ticks with abbreviations like “B” for billions. Built with React and D3 v5, the visualization uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to handle data loading and rendering as SVG. The y-axis labels are left-aligned within a margin, and the x-axis includes a custom tick formatter via `d3.format`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes