🌍 Public
Viewing a saved revision (read-only)
e6dd14303bf24f09a658440d6d9860da
scatter plot with shape
This example uses a scatter plot to visualize the Iris dataset, displaying sepal length against petal length. Points are color-coded, with distinct shapes distinguishing the three Iris species, supported by a legend for reference. Built with D3 v7, the visualization uses the `select()` and `join()` APIs to efficiently manage SVG elements, while `scaleLinear` and `scaleOrdinal` handle positional and shape encodings. The chart loads data from a remote CSV file and includes axis labels and tick marks for readability.
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.