Skip to main content
100%

Custermizing Axis

✓ Published0🌍 Public
LLM2020
Last edited Sep 4, 2019
Created on Sep 4, 2019
Forked from Making a Bar Chart

This example presents a horizontal bar chart of 2018 country populations, sourced from Wikipedia statistics, with values scaled in thousands. It demonstrates axis customization by removing tick lines and domain paths from both the left and bottom axes. Built with D3 v5, the visualization uses `d3.scaleLinear` and `d3.scaleBand` for scales, `d3.axisLeft` and `d3.axisBottom` for axes, and formats tick labels with `d3.format('.3s')` to abbreviate large numbers. Rectangles are appended to an SVG group, with text drawn on screen.

AI-generated description

This bar chat shows population of certain countries in the world. The data comes from the year 2018 spects 2018(https://en.wikipedia.org/wiki/Statistics).

MIT Licensed

Similar vizzes