Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
RRyan
Last edited Nov 19, 2019
Created on Nov 19, 2019
Forked from Bar Chart!

This example demonstrates a bar chart of the top three most populous countries, with customized axes that remove tick marks and format population values in billions. The visualization uses D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render SVG bars from CSV data. The x-axis labels are formatted using D3’s `format` function, replacing “G” with “B” for readability. The chart also includes a title and applies a steelblue fill to bars via external CSS.

AI-generated description
MIT Licensed

Similar vizzes