Skip to main content
Public

Share visualization

Loading preview…

Fork of Cars Scatter Plot

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Cars Scatter Plot

0
LLê Minh Bằng
Last edited Sep 9, 2024
Created on Sep 8, 2024
Forked from Cars Scatter Plot

This scatter plot visualizes the Iris dataset, showing the relationships between sepal and petal dimensions across three Iris species. Colored circles represent individual flowers, with distinct colors for Iris-setosa, Iris-versicolor, and Iris-virginica. The visualization is interactive, allowing users to select which measurements appear on the x and y axes through dropdown menus. Hovering over the legend highlights all points of a corresponding species by increasing their opacity. The code uses D3.js version 5, with functions like `scaleLinear` for axis scaling, `axisBottom` and `axisLeft` for rendering axes, and `transition` for smooth animations when the data is re-rendered or filtered. Data is loaded from a CSV file, and the SVG canvas is dynamically updated with new points and axes.

AI-generated description

Here are some suggested hex colors for each type of Iris flower:

  1. Iris-virginica:#4B0082 (Indigo)

    • Represents a deep, vibrant purple often associated with the Iris virginica flower.
  2. Iris-versicolor: #FF6347 (Tomato)

    • A reddish-orange color that reflects the multicolored nature of Iris versicolor.
  3. Iris-setosa: #3CB371 (Medium Sea Green)

    • A soft green that can symbolize the natural and lighter tones found in Iris setosa.

These colors are visually distinct and capture some of the natural essence of each flower.

Comments

Sign in to join the discussion.

MIT Licensed