Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6_Question2

Public visualization

Viewing a saved revision (read-only)

35dc902414aa4cf4ab9f2da7e52f136c

Activity_6_Question2

0 stars0🌍 Public
HHarsha vardhan reddy Yarmareddy
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

This stacked horizontal bar chart displays the percentage distribution of ratings across five business types, from "Less than 2.0" to "More than 5.5". Each bar is segmented into colored sections representing rating categories, using `d3.stack()` for data transformation and `d3.scaleOrdinal()` for color mapping. The chart renders as scalable vector graphics (SVG) with axes generated by `d3.axisBottom()` and `d3.axisLeft()`. Interactive tooltips, implemented with mouseover events, reveal exact percentages per category on hover, while the data originates from the included `data.csv` file.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.