Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Customizing Axes

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed