Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_question3

Public visualization

Viewing a saved revision (read-only)

5db47819f32045df81e81a9294669dae

Activity6_question3

0 stars0🌍 Public
Aamulyareddykondru01@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example visualizes car performance metrics from a CSV file, plotting horsepower against highway MPG for various car makes. It features a scatter plot with color-coded categories (Economy, Luxury, Sports, Other) and a horizontal bar chart showing average horsepower by make, using D3.js for the former and Chart.js for the latter. The SVG scatter plot uses `d3.select`, `d3.scaleLinear`, and `d3.axisBottom`, while the canvas bar chart uses `getContext('2d')` and Papa Parse to load the data.

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.