Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
PPenguin-jpg
Last edited Sep 14, 2023
Created on Sep 14, 2023
Forked from Making a Bar Chart

A horizontal bar chart displays the populations of the ten most populous countries, sorted by size, using a logarithmic-free linear scale. The axes are customized with abbreviated tick labels (e.g., "1.4B") and colored gridlines, while the y-axis removes its domain line. Built with D3 v7, the example loads data from a CSV via `d3.csv`, uses `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft`, and formats ticks with `d3.format`.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes