Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bar graph-task1

Public visualization

Fork of Bar graph-task1

0 stars0🌍 Public
Aajaysonu
Last edited Mar 23, 2023
Created on Mar 23, 2023
Forked from Bar graph-task1

This example shows a horizontal bar chart of the top 12 video games by North American sales, with game names on the y-axis and sales values on the x-axis. It uses React state to load CSV data via d3.csv, then renders SVG rectangles scaled by d3.scaleBand and d3.scaleLinear. Custom gridlines and tick labels are drawn manually using d3.scaleLinear.ticks, while axes are positioned with SVG group transforms. The visualization updates asynchronously when data arrives, with a loading state displayed beforehand.

AI-generated description

A whole smiley face

Comments

Sign in to join the discussion.

MIT Licensed