Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2 Question 1

Public visualization

Viewing a saved revision (read-only)

1f6a4c6cb7364c0092d29e9c349afd46

Activity6_Task2 Question 1

0 stars0🌍 Public
Rramsrinivaskatragadda@my.unt.edu
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Activity6_Task2

This stacked bar chart visualizes the distribution of music genre ratings across five percentage-based rating buckets, from Below 5.0 to Above 8.5. Each horizontal bar represents a genre, with colored segments showing the proportion of ratings in each bucket. D3 v7 builds the visualization by computing stacked data with `d3.stack()`, scaling positions with `d3.scaleLinear` and `d3.scaleBand`, and rendering SVG rectangles. Interactive tooltips, updated via mouse events, display exact percentages using `d3.format`. The chart reads from a CSV file with genre and rating proportion columns.

AI-generated description

Visualization of data.csv file in stacked bar graph.