Skip to main content
100%

Activity6_Q3.6

✓ Published0🌍 Public
LLakshmiDeepikaPagadala@my.unt.edu
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

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 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