Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
CConnor Trump
Last edited Oct 10, 2021
Created on Oct 10, 2021
Forked from Making a Bar Chart

A bar chart displays the top 10 most populous countries from a CSV file, with population on the x-axis and country names on the y-axis. Custom axes hide domain lines and use a tick size that extends gridlines across the chart, while formatting tick labels with D3's `format` to abbreviate values and replace 'G' with 'B'. The code uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` within an SVG rendered in a React setup.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes