Skip to main content
Public

Share visualization

Loading preview…

Lab 05

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Lab 05

0
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.

Comments

Sign in to join the discussion.

MIT Licensed