Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
BBat-Erdene
Last edited Jun 27, 2020
Created on Jun 27, 2020
Forked from Making a Bar Chart

This example shows the top 10 most populous countries as a bar chart, with the x-axis customized to format population values in billions using `d3.format('.3s')`. The chart uses a linear x-scale and a band y-scale, with axes rendered via `d3.axisBottom` and `d3.axisLeft`. Y-axis tick lines and domains are removed, while the x-axis includes a tick-line grid extending across the plot. Data comes from a CSV file, and the visualization is rendered as SVG using D3 v5 within a React framework.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes