Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
DDhaval Potdar
Last edited Nov 29, 2019
Created on Nov 29, 2019

This example shows a horizontal bar chart of the ten most populous countries, using a linear scale for population and a band scale for country names. The axes are customized with a filtered y-axis, a formatted x-axis that converts billions to "B", and a title. Built with D3 v5, it loads data from a CSV and renders SVG rectangles, removing domain lines and tick marks for a cleaner look.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

<!-- <iframe width="560" height="315" src="https://www.youtube.com/embed/-RQWC4I2I1s?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> -->
MIT Licensed

Similar vizzes