Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lab 05

Public visualization

Viewing a saved revision (read-only)

9c64ab2424404103a27b6018cb3bf764

Lab 05

0 stars0🌍 Public
MMario Morales Barquero
Last edited May 25, 2021
Created on May 25, 2021
Forked from Bar Chart

This example shows a bar chart of global video game sales by genre, using data from a CSV file. D3 version 6 loads the data with `d3.csv`, maps it with `scaleBand` and `scaleLinear`, and renders SVG rectangles with axes via `d3.axisLeft` and `d3.axisBottom`. Bars animate color changes on hover using `selection.on` and `transition.attr`, shifting from steelblue to orange and back.

AI-generated description

A demonstration of how to start using D3 version 6.