Skip to main content
100%

D3 Bar chart

✓ Published3🌍 Public
KKwasi Acquaye
Last edited Feb 21, 2024
Created on Feb 19, 2024
Forked from Bar chart

This bar chart displays global sales figures for top-rated video games in 2016, with each game’s name on the x-axis and sales in millions on the y-axis. The D3.js code uses d3.csv to load the data, then maps it to a d3.scaleBand for the x-axis and a d3.scaleLinear for the y-axis. Rectangular SVG elements are colored steelblue, and d3.axisBottom and d3.axisLeft generate the labeled axes. A rotated text element labels the y-axis. The chart renders entirely as inline SVG within an HTML page.

AI-generated description
MIT Licensed

Similar vizzes