Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

bar chart

Public visualization

bar chart

0 stars0🌍 Public
RRED98310
Last edited Feb 25, 2021
Created on Feb 25, 2021
Forked from HTML Starter

This example shows the global sales of video games grouped by genre as a static bar chart. The code loads CSV data from a GitHub gist, parses the `Global_Sales` column into numbers with `d3.csv`, and renders bars using React and SVG. The `xScale` uses `scaleBand` for each genre, while `yScale` uses `scaleLinear` with the maximum sales value mapped to the chart’s height, although the bars are drawn with their y-position fixed at zero.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed