Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task 8 question 3.2

Public visualization

Viewing a saved revision (read-only)

cf5f315202eb41338fb6bd9bcd14414d

Task 8 question 3.2

0 stars0🌍 Public
Jjyothikaraj3@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This example shows a scatter plot of Iris flower measurements, using sepal length on the x-axis and petal length on the y-axis, with a legend encoding species via different symbol shapes. The visualization loads data from a CSV file and renders it as D3 symbols, using `d3.scaleLinear` for axes, `d3.scaleOrdinal` for shape mapping, and `d3.axisLeft`/`d3.axisBottom` for ticks. A custom legend is drawn with reusable D3 selections, while the plot updates dynamically through a state-based render loop.

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.