Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making bar chart

Public visualization

Making bar chart

0 stars0🌍 Public
Mmgl12432
Last edited Aug 29, 2020
Created on Aug 29, 2020
Forked from D3 Starter

This example demonstrates how to build a horizontal bar chart from a CSV dataset using D3 version 6. The chart displays the `detailnumber` values for each country, with blue rectangles sized proportionally to the data. The code uses `d3.csv` to load the dataset, `d3.scaleLinear` for the x-axis, and `d3.scaleBand` for the y-axis positioning. The SVG is pre-selected, and the `enter()` selection appends the rectangles directly to the rendered chart.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed