Activity6_Q3.6
✓ Published0🌍 Public
This example displays a scatter plot of randomly generated data points, colored by category to distinguish two groups, with “Horse Power” on the x-axis and “Torque” on the y-axis. The code uses D3.js v7 to create an SVG chart, employing `d3.scaleLinear` for axes, `d3.scaleOrdinal` for color mapping, and `d3.axisBottom` and `d3.axisLeft` for ticks. It renders 50 circles with semi-transparent fills, demonstrating basic data binding and SVG generation within a single HTML file.
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