Skip to main content
100%

activity6_q3

✓ Published0🌍 Public
Mm.maanvireddt761@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from activity6_q3

This example shows the relationship between car horsepower and highway MPG using two coordinated visualizations. The scatter plot encodes car category (Economy, Standard, Luxury, Sports) with color via d3.scaleOrdinal, while the bar chart, rendered with Chart.js on a canvas, displays average horsepower grouped by car make, colored by brand category. The code loads data from bubblechart.csv using Papa.parse, with d3.v7 handling the SVG axes, scales, and scatter plot circles. The bar chart sorts makes by descending average horsepower.

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