Skip to main content
Public

Share visualization

Loading preview…

question 2

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

question 2

0
SSreeKohaliPatel@my.unt.edu
Last edited Apr 14, 2024
Created on Apr 14, 2024

This visualization displays the Iris dataset as a stacked bar chart, breaking down sepal and petal measurements for each species. It uses D3 v6 functions `d3.csv`, `d3.stack`, `scaleBand`, and `scaleLinear` to aggregate and position the bars. The SVG output is rendered with `d3.select` and the `join` operator, while axes are drawn using `d3.axisBottom` and `d3.axisLeft`. A linear color scale maps attribute indices to a two-tone palette, distinguishing the four measurement categories.

AI-generated description

We are Displaying the IRIS dataset using Scatter plot.

Comments

Sign in to join the discussion.

MIT Licensed