Activity_6_Q3.6
✓ Published0🌍 Public
This interactive scatter plot visualizes eight categorized data points, plotting their X and Y values from the local CSV dataset. Using D3.v7, the SVG chart displays color-coded circles for each category, with a tooltip appearing on demand. The code constructs linear scales via `d3.scaleLinear`, applies axes from `d3.axisBottom` and `d3.axisLeft`, and employs `d3.csv` with `d3.autoType` to parse the data. The categorical color mapping relies on `d3.scaleOrdinal` with the `schemeCategory10` palette, rendering the visualization entirely in SVG.
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