Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

bar viz for testing

Public visualization

Viewing a saved revision (read-only)

7a5499018563463fb3397bd2696d60e6

bar viz for testing

0 stars0🌍 Public
Mmomopng
Last edited Mar 6, 2022
Created on Mar 6, 2022
Forked from dataset

This example visualizes death rates by year using a horizontal bar chart, with each bar’s length encoding the death count and the y-axis listing years. The chart is rendered as SVG using D3.js v5, primarily leveraging `d3.csv` to load data, `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisBottom`/`axisLeft` for tick generation. Data is sourced from a CSV file, and death values are multiplied by 1,000 before plotting. Styling is applied via CSS, setting bars to steelblue and customizing axis text.

AI-generated description