Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 Question3

Public visualization

Viewing a saved revision (read-only)

12c35ee89631477e9deff815be14359b

Activity 6 Question3

0 stars0🌍 Public
Ppslharika@gmail.com
Last edited Apr 5, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This example visualizes the fruits dataset as a scatter plot, mapping fruit height to the x-axis and fruit width to the y-axis. Each data point is a circle colored according to its fruit type (apple, orange, banana, or grape). The plot includes axes labeled "Fruit Height" and "Tree Height" in green text. The code uses D3 v6 modules like `d3.csv`, `d3.scaleLinear`, `d3.axisLeft`, and `d3.axisBottom`, rendering the visualization as SVG with circles positioned via `cx` and `cy` attributes.

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.