Skip to main content
Public

Share visualization

Loading preview…

Fork of 3D Scatter Plot with Iris Dataset

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 3D Scatter Plot with Iris Dataset

6
JJyothicherukuri
Last edited Mar 27, 2022
Created on Mar 27, 2022

This example shows a 3D scatter plot of the Iris dataset, visualizing sepal and petal measurements from the data loaded via a CSV file. It renders two traces: one as a flat scatter2d layer and another as a scatter3d layer, both using markers with varying colors and opacity. The code uses the Plotly.js library to create the chart inside a div with the ID `myDiv`, while D3.js handles CSV parsing and data unpacking. The layout margins are set to zero to maximize the plot area.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed