Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task4_Tutorial

Public visualization

Viewing a saved revision (read-only)

75f33a23c47f4ab796d5956dffca0487

Activity6_Task4_Tutorial

0 stars0🌍 Public
Vvidiyalasahithi1999@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Activity6_Task4

This example visualizes the correlation between average horsepower, torque, and highway MPG across 31 car makes using a bubble chart. Each circle’s position encodes horsepower (x-axis) and torque (y-axis), while its radius scales with highway MPG and its color maps to the car make via a categorical scale. The visualization uses d3.csv to load the data, d3.scaleLinear for axes and bubble size, and d3.scaleOrdinal with d3.interpolateTurbo for colors, rendering in SVG. Interactive tooltips appear on hover, and a legend explains both size and color encodings.

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.