Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Custom axis

Public visualization

Custom axis

0 stars1🌍 Public
Vvladvaculin
Last edited Oct 14, 2019
Created on Aug 27, 2019
Forked from Making a bar chart

A horizontal bar chart displays city areas with custom-formatted axis labels, converting abbreviations like "G" to "B" for billions. The chart uses d3.csv to load data, d3.scaleLinear for the x-axis, d3.scaleBand for categorical y-values, and d3.axisBottom with a custom tick format function. SVG rectangles render the bars, with hover effects via CSS. The visualization includes a centered title and axis legend, with gridlines generated through tick sizing.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed