Skip to main content
100%

Fork of Making A Bar Chart

✓ Published0🌍 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
MIT Licensed

Similar vizzes