Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task 2.1

Public visualization

Viewing a saved revision (read-only)

c5e9c47fee95447ca1360e2c04956cb1

Activity6_Task 2.1

0 stars0🌍 Public
DDeekshitha Annreddy
Last edited Oct 23, 2024
Created on Oct 23, 2024

This stacked bar chart displays the percentage distribution of four iris flower measurements—sepal length, sepal width, petal length, and petal width—across the three iris species in the classic iris dataset. The visualization uses D3 v7 to load and parse the CSV data, then renders the stacked bars in SVG using d3.stack() and d3.scaleBand() for the categorical species axis. A d3.scaleLinear() maps the percentage values, and mouseover interactions trigger tooltips showing exact percentages via d3.format().

AI-generated description

The impact of genre on movie ratings

This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.