Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6_3.2

Public visualization

Viewing a saved revision (read-only)

617f72a435794addaf943ecf052d461f

Activity-6_3.2

0 stars0🌍 Public
RRISHIK KURIKELLY
Last edited Apr 6, 2024
Created on Apr 6, 2024
Forked from Hello VizHub

This example shows a scatter plot of sepal length versus petal length for the Iris dataset, with each of the three species encoded by a distinct shape. The visualization uses d3.scaleLinear for the axes, d3.scaleOrdinal and d3.symbol to generate shape-based marks, and includes a custom legend mapping species to symbols. Data is loaded asynchronously from a remote CSV file and parsed with d3.csvParse. The code is built with reusable modules for axes, scatter plot, and legend, all rendered in an SVG using D3 v7.

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.