Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
ZZY Huang
Last edited Apr 12, 2020
Created on Apr 12, 2020
Forked from Hello VizHub

This example demonstrates a bar chart displaying the population of ten countries, including China and India, sorted by value, with customized axes. The chart uses D3 v5’s `scaleLinear` and `scaleBand` to map population counts and country names, while `axisBottom` and `axisLeft` render the axes. The x-axis applies a `tickFormat` with the `.3s` specifier to abbreviate large numbers. Data is loaded from a CSV file via `csv`, and the visualization is rendered as SVG rectangles with steelblue fills.

AI-generated description

The bar chart shows population of the top 10 (http://)

MIT Licensed

Similar vizzes