Skip to main content
100%

Customising Axes

✓ Published1🌍 Public
JJoseph Popoola
Last edited Feb 10, 2020
Created on Feb 10, 2020
Forked from Making A Bar Chart

This example displays a horizontal bar chart of the top 10 most populous countries, with populations from a CSV file. It customizes the axes by removing domain lines and tick lines from the y-axis, while the x-axis uses a tick format that abbreviates large numbers and converts 'G' to 'B'. The code uses d3.scaleLinear, d3.scaleBand, d3.axisLeft, d3.axisBottom, and d3.format within a React framework, rendering to SVG. The chart also includes axis labels and a title, with a steelblue fill for bars.

AI-generated description
MIT Licensed

Similar vizzes