🌍 Public
Viewing a saved revision (read-only)
45d6c48c02414758994f5ed90886ae5e
Customizing Axes
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 descriptionA demonstration of how to start using D3 version 6.