Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making A Bar Chart

Public visualization

Fork of Making A Bar Chart

0 stars0🌍 Public
NNikithakatta30
Last edited May 13, 2023
Created on May 13, 2023
Forked from Making A Bar Chart

This bar chart displays Happiness_Score values for countries from a CSV dataset, using horizontal bars with a linear x-scale and banded y-scale. It shows one bar per country, with the bar length encoding the happiness score. The visualization is rendered as SVG using D3 v7, employing `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the axes and rectangles. The code loads data via `d3.csv` and applies a margin-based layout within a fixed 960×500 viewport.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed