Skip to main content
100%

Fork of Activity_6_Task_3_2

✓ Published0🌍 Public
LLarry Johnson
Last edited Oct 24, 2024
Created on Oct 24, 2024

This example visualizes the Iris dataset as a scatter plot, mapping petal length and petal width to the x- and y-axes while encoding species with color (skyblue, lightgreen, orange). It demonstrates loading data from a remote CSV file using `d3.csv` with a custom parsing function, then applies `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` from D3 v6 to build the chart. The SVG rendering includes circles with dynamically set radii and fill colors, along with rotated axis labels. Although the code references employee-related fields in its data parser, the visualization actually plots Iris measurements, with the dataset URL pointing to an employees.csv file.

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.
MIT Licensed

Similar vizzes