Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

T9 Q1

Public visualization

Viewing a saved revision (read-only)

74cc7ce56caa43c7b2b01d5830475d94

T9 Q1

0 stars0🌍 Public
Jjyothikaraj3@gmail.com
Last edited Apr 12, 2024
Created on Apr 12, 2024

This animated scatter plot visualizes the Iris dataset, cycling through four feature combinations (petal width, sepal width, petal length, and sepal length) on the x-axis while plotting sepal length on the y-axis. Points are color-coded by species (setosa, versicolor, virginica), with a legend and title. The visualization uses D3.js APIs including `scaleLinear`, `axisLeft`, `axisBottom`, and the `join` method for efficient circle updates. It loads CSV data from a remote URL via `d3.csv`, renders as an SVG, and updates axes and labels on a 2-second interval via `setInterval`.

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.