Skip to main content
100%

Task3_Question3

✓ Published1🌍 Public
Mmythripopuri2001@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

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