Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Iisaac-ux
Last edited Jul 26, 2019
Created on Jul 26, 2019
Forked from Customizing Axes

This example presents a bar chart of model accuracy, using data from a local CSV file. It demonstrates how to customize D3 axes with `d3.axisBottom` and `d3.axisLeft`, removing default domain lines and adjusting tick labels with `d3.format`. The chart’s layout uses `d3.scaleLinear` and `d3.scaleBand`, with a custom tick format that replaces 'G' with 'B' for large numbers. Styling is applied via CSS to the SVG output.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes