Skip to main content
Public

Share visualization

Loading preview…

Customizing Axes

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Customizing Axes

0
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.

Comments

Sign in to join the discussion.

MIT Licensed