Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
MMario Morales Barquero
Last edited May 6, 2021
Created on May 6, 2021
Forked from D3 Starter

This example demonstrates how to customize chart axes in D3 v5, transforming a horizontal bar chart of product heights into a clean, readable visualization. The code loads data from a CSV file, scales the height values, and uses `scaleLinear` and `scaleBand` for the x and y axes. It customizes the bottom axis with `axisBottom` and a custom tick formatter that abbreviates large numbers, while removing the left axis lines and labels. The chart renders as SVG with styled text and grid lines.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes