Skip to main content
100%

Customizing Axis

✓ Published0🌍 Public
Aantoinecarto
Last edited Jul 4, 2019
Created on Jul 4, 2019
Forked from Making a bar chart

A horizontal bar chart displays the populations of the ten most populous countries, using a CSV data source. The D3 v5 code loads the data and builds the visualization with an SVG canvas, applying a linear scale to the population axis and a band scale for country names. The chart customizes both axes by removing their domain lines, applying a custom tick format that abbreviates large numbers with 'B' for billions, and adding styled labels. The y-axis labels and tick lines are removed entirely, while the x-axis includes negative tick lines extending across the plot area.

AI-generated description
MIT Licensed

Similar vizzes