Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
XXenos Panagiotis
Last edited May 17, 2023
Created on May 15, 2020
Forked from Hello VizHub

This example shows the ten most populous countries as a horizontal bar chart, with each bar colored according to a value in the data and labeled with country names on the left axis. The x-axis is customized to display population values in abbreviated form (e.g., "1.42B") using D3’s `format` function, while grid lines extend across the chart. The code loads a CSV file, scales the data with `scaleLinear` and `scaleBand`, and renders axes with `axisLeft` and `axisBottom`.

AI-generated description
MIT Licensed

Similar vizzes