Skip to main content
Public

Share visualization

Loading preview…

test

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

test

1
Ddriftcafe
Last edited May 18, 2022
Created on May 18, 2022
Forked from Bubble chart

A bubble chart displays the relationship between average horsepower, torque, and highway MPG for various car makes, using circle size to encode fuel efficiency and color to distinguish brands. The visualization is built with D3 v7, reading from a CSV file and rendering SVG circles with tooltips that reveal the make on hover. It uses `d3.scaleLinear` for axes and bubble sizing, `d3.scaleOrdinal` with a Turbo color palette for categorical coloring, and includes a legend showing size mappings and color-coded make labels. Styled with opacity transitions on hover, the chart updates interactively as the mouse moves.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed