Skip to main content
100%

Customizing axes

✓ Published0🌍 Public
Llokkafufya
Last edited Dec 11, 2019
Created on Dec 11, 2019
Forked from Customizing axes

This example demonstrates how to customize axes in a bar chart showing the top 10 most populous countries, with population values formatted from raw numbers to compact “B” notation. It removes unnecessary axis lines, adds grid lines via tick sizing, and includes a chart title and axis label. The visualization uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, with styles guided by a dataviz style guide. Data comes from a CSV file, rendered as SVG rectangles with custom tick formatting and removed domain lines.

AI-generated description

this shows how to customize axes.

<ul> <li> - Formating number; like from 200,000,000 to 200M</li> <li>- Removing unnecessary lines; <li>- Adding a visualization title; <li>- Making grids; <li> - Change the styles guided by dataviz-style-guide[https://github.com/amycesal/dataviz-style-guide] </ul>
MIT Licensed

Similar vizzes