Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
EEzhil-Kalai
Last edited Feb 26, 2023
Created on Feb 26, 2023
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the top 10 most populous countries, with population values on the x-axis and country names on the y-axis. The chart customizes both axes by removing domain lines, styling tick labels and lines via CSS, and formatting population numbers with `d3.format` to display abbreviations like "B" for billions. The code uses `d3.scaleLinear` and `d3.scaleBand` for scales, `d3.axisLeft` and `d3.axisBottom` for axes, and renders in SVG with React, loading data from a CSV file.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes