Q3
✓ Published0🌍 Public
This is a scatter plot that visualizes the relationship between horsepower and torque for vehicles, with each point colored by the car’s make. The data is loaded from a remote CSV file, and the chart uses linear scales for both axes with ordinal color mapping. It is rendered as SVG using D3 v7, featuring axes with labels, semi-transparent circles, and a legend showing the color categories. The code calls d3.csv, d3.scaleLinear, d3.scaleOrdinal, d3.axisBottom, and d3.axisLeft.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed