🌍 Public
Viewing a saved revision (read-only)
48b46f06c63d4bdf9f09e77006e32ee5
Task3_Question3
This example shows a scatter plot comparing Education and Healthcare spending, with points colored by gender. It loads data from a local CSV file and renders circles on an SVG canvas. The code uses D3.js v7 to set up linear scales for both axes, an ordinal color scale for gender categories, and appends axes with labels. The visualization includes interactive tooltips triggered by mouseover events, which change point size and color while displaying details. A legend is built manually using SVG rectangles and text elements, and the chart includes a title.
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.