Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Untitled

Public visualization

Untitled

0 stars1🌍 Public
NNikithakatta30
Last edited May 16, 2023
Created on May 15, 2023
Forked from D3 Starter

This interactive bar chart compares depression rates across the top 10 happiest countries for a selected year. A dropdown menu, populated from the data’s unique years, triggers a redraw. The chart uses d3.csv to load the dataset, d3.scaleBand and d3.scaleLinear for axes, and d3.axisBottom and d3.axisLeft for rendering. Bars are colored with a fixed teal fill, and country labels are rotated. The visualization updates dynamically by clearing the SVG and re-rendering for the chosen year.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed