Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Q3

Public visualization

Viewing a saved revision (read-only)

5ed46c95f9e3478a8f1f502d444e54df

Q3

0 stars0🌍 Public
Rreddyswethuvahana@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Task-8(Q3)

This scatter plot visualizes the relationship between horsepower and torque for various car makes, using color to distinguish different manufacturers. The D3.js code loads a CSV dataset from a GitHub URL, maps the data points to SVG circles, and applies a linear scale to the x and y axes. It uses `d3.scaleLinear`, `d3.extent`, `d3.scaleOrdinal`, and `d3.schemeCategory10` to handle scaling and coloring. The chart includes labeled axes for Horsepower and Torque, plus a legend showing the color-coded makes.

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.