Skip to main content
100%

Fork of Bar Chart

✓ Published0🌍 Public
Kkaruppuraja
Last edited Mar 21, 2021
Created on Mar 21, 2021
Forked from Bar Chart

This example displays a vertical bar chart comparing global sales across video game genres, using data loaded from a CSV file. The chart renders as SVG, with genre labels on the x-axis and sales figures on the y-axis. The code builds scales with d3.scaleBand and d3.scaleLinear, and uses d3.axisBottom and d3.axisLeft for axes. Interactive mouseover and mouseout events change bar fill colors from steelblue to orange, with a d3 transition animating the change back over 250 milliseconds.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes