Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Question2

Public visualization

Viewing a saved revision (read-only)

e48dcc05db1e4bfe9b03cca30542ea32

Activity6_Question2

0 stars0🌍 Public
Rrishithagovini99@gmail.com
Last edited Apr 6, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

This stacked bar chart shows the percentage distribution of five rating levels across seven restaurants, using horizontally oriented bars where each segment represents a rating category. The visualization employs d3.stack() to compute stacked series from CSV data, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the percentage x-axis. Color encoding via d3.scaleOrdinal distinguishes rating bins, while mouseover events trigger tooltip displays showing exact percentage values. The SVG rendering includes axis labels, a title, and grid lines, with data sourced from dataQ2.csv.

AI-generated description

The Rating of different restaurants

This stacked bar chart gives the percentage of each rating level across 7 different restaurants.