Skip to main content
100%

custom axis

✓ Published1🌍 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
MIT Licensed

Similar vizzes