Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
PPabloReyesBetanzo
Last edited Dec 27, 2018
Created on Oct 31, 2018
Forked from Making a Bar Chart

This example shows a horizontal bar chart of the ten most populous countries, with country names on the y-axis and population on the x-axis, using a red fill for each bar. It customizes the axes by removing domain lines and tick marks from the left axis, while the bottom axis uses a tick format that converts "G" (giga) to "B" (billion) via `d3.format`. The chart is rendered in SVG using `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`, with data loaded from a CSV file.

AI-generated description
MIT Licensed

Similar vizzes