Skip to main content
100%

Customizing Axis

✓ Published0🌍 Public
Rrix007
Last edited Jun 27, 2020
Created on Jun 26, 2020
Forked from Making a Bar Chart

This example demonstrates how to customize axis formatting in a bar chart, showing male population figures for various countries. The horizontal axis uses a linear scale with tick labels formatted in scientific notation via `d3.format`. A band scale positions the categorical country labels vertically, with an axis generated by `d3.axisLeft`. The chart renders as SVG, drawing steel-blue rectangles scaled by population values from the CSV data. The code imports specific D3 v5 modules including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`.

AI-generated description
MIT Licensed

Similar vizzes