Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

custom axis

Public visualization

Viewing a saved revision (read-only)

5f63677f8c1c417d93a6d3ad2d8f9071

custom axis

0 stars1🌍 Public
FFrançois Plet
Last edited Jul 6, 2019
Created on Jul 6, 2019

This example shows a bar chart of country populations using a linear y-axis and a categorical x-axis. The chart uses D3 v5 to load population data from a CSV file, scales it with `scaleLinear` and `scaleBand`, and renders bars as SVG rectangles with orange fill. An `axisBottom` and `axisLeft` are used to create the custom axes, and clicking a bar logs its data to the console.

AI-generated description