Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task3.2

Public visualization

Viewing a saved revision (read-only)

655f65a925c44e9db279f0a8ed595e17

Activity6_Task3.2

0 stars0🌍 Public
SSaiKiranReddyKancharla@my.unt.edu
Last edited Apr 4, 2024
Created on Apr 4, 2024

This example demonstrates a scatter plot visualizing the Iris dataset, where sepal length is mapped to the x-axis and petal length to the y-axis. The chart uses D3 v7 APIs including `scaleLinear`, `scaleOrdinal`, `symbol` with `symbolsFill` to render distinct shapes for each iris species, with a custom shape legend. Data is loaded as CSV and parsed with `csvParse` from a remote gist. The implementation is modular, with separate functions for drawing axes, the scatter plot, and the legend.

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.