Question_3
✓ Published0🌍 Public
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 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