Skip to main content
100%

Customizing Axes

✓ Published2🌍 Public
SSophia Murage
Last edited Apr 2, 2020
Created on Mar 30, 2020

This visualization displays the populations of nine countries as horizontal bars, from China at the top to Russia at the bottom. The chart uses d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and d3.axisBottom with a custom tick format that abbreviates numbers. The code loads CSV data using d3.csv, renders SVG rectangles, and customizes axis labels, tick lines, and removes default axis domains for a cleaner look.

AI-generated description

A program that loads and parses some CSV data: CSS Named Colors.

MIT Licensed

Similar vizzes