Skip to main content
100%

Question_3

✓ Published0🌍 Public
SSai Sandhya Nannapaneni
Last edited Oct 23, 2024
Created on Oct 23, 2024

This example presents a scatter plot that maps categorical data from a CSV file onto two quantitative axes, with each point colored by its category. The visualization uses D3.js (v7) to load and parse the data via `d3.csv` and `d3.autoType`, and then builds the chart with SVG elements. Axes are generated using `d3.axisBottom` and `d3.axisLeft`, while the points are drawn as circles with positions scaled by `d3.scaleLinear`. The color of each circle is assigned using `d3.scaleOrdinal` with the `d3.schemeCategory10` palette.

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