Fork of Activity_6_Task_3_2
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed