Skip to main content
100%

Fork of Fork of Fork of Hello VizHub

✓ Published0🌍 Public
Hharinimoorthi05@gmail.com
Last edited Aug 9, 2024
Created on Aug 9, 2024

This bubble chart explores the correlation between average horsepower, torque, and highway MPG for various car makes, sourced from a CSV file. Using D3 v5, the visualization plots horsepower on the x-axis and torque on the y-axis, with bubble size representing MPG and color differentiating car brands via a turbo color scale. The SVG rendering includes interactive tooltips that appear on mouseover, displaying the specific car make. The chart is built with `d3.scaleLinear`, `d3.axisBottom`, `d3.axisLeft`, and `d3.scaleOrdinal`, and it leverages `d3.csv` to load data and `d3.interpolateTurbo` for color mapping. This example demonstrates how to combine multiple quantitative and categorical variables in a single animated, interactive graphic.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes