Skip to main content
100%

d3 Customizing Axis

✓ Published1🌍 Public
JJohnPaulPagelerJr
Last edited Mar 20, 2019
Created on Jan 24, 2019
Forked from d3 Bar Chart

This example shows a horizontal bar chart of the top 10 most populous countries, using population data from a CSV file. The chart displays country names on the y-axis and population values on the x-axis, with axis labels and a title. The visualization uses d3.csv to load data, d3.scaleLinear and d3.scaleBand for scaling, and d3.axisLeft and d3.axisBottom for rendering axes. It customizes the x-axis tick format to abbreviate large numbers with the d3.format function, replacing 'G' with 'B' for billions. The SVG rendering includes styled tick lines and text elements defined in CSS.

AI-generated description

This is a work through example of a d3 bar-chart from Curran Kelleher published on Youtube: [Making a Bar Chart with D3.js and SVG] (https://www.youtube.com/watch?v=c3MCROTNN8g&list=PL9yYRbwpkykvOXrZumtZWbuaXWHvjD8gi&index=9)

MIT Licensed

Similar vizzes