Skip to main content
100%

Customizing axes

✓ Published1🌍 Public
PPeter S
Last edited Aug 14, 2019
Created on Aug 13, 2019

This example shows a horizontal bar chart of the ten most populous countries, with a custom formatted x-axis and a styled y-axis. The D3 script (v5) loads data from a local CSV file and uses `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render the SVG. It removes default axis lines, customizes tick labels to abbreviate numbers (e.g., "1.43B"), and adds a title and an axis label.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes