Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

e6ba6a348d13470f852d83f94ee79d5b

Customizing Axes

0 stars1🌍 Public
NNitin Vadhiya
Last edited Oct 17, 2021
Created on Oct 17, 2021

A bar chart displays the population of seven countries, sorted by country name along the vertical axis and population count on the horizontal axis. The chart uses `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the numeric x-axis, with axes drawn via `d3.axisLeft` and `d3.axisBottom`. Tick labels on the x-axis are formatted with `d3.format` to abbreviate numbers, and grid lines extend across the plot. Data loads from a CSV file, and the title and axis labels are added as SVG text elements.

AI-generated description

A bare minimum HTML page.