Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Ddacoylo
Last edited Jun 30, 2020
Created on Jun 30, 2020
Forked from Create Bar Chart

This example shows a horizontal bar chart of the top 10 countries by population, with customized axes. The chart uses d3.csv to load data, d3.scaleLinear and d3.scaleBand for scaling, and d3.axisLeft, d3.axisBottom, and d3.axisRight for axis rendering. The x-axis is formatted with a custom tick formatter that converts values from millions to billions, and gridlines are extended across the plot. The y-axis labels and tick lines are removed, while the axis lines themselves are customized with specific font sizes and colors via CSS.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes