Skip to main content
100%

Activity06 Question 2.3

✓ Published0🌍 Public
Bbharatchowdarypotluri@my.unt.edu
Last edited Oct 23, 2024
Created on Oct 22, 2024
Forked from Activity06_Task02

This stacked bar chart visualizes the distribution of IMDb-style movie ratings across six modes of transportation, with each bar segmented into five rating categories from “below 5.0” to “above 8.5.” Using D3 v7’s `d3.stack` and `d3.scaleBand`, the SVG rendering encodes each category’s proportion as a colored segment, with a legend inferred from the categorical color scale. Hovering over any segment triggers an opacity change and displays a tooltip showing the exact percentage, formatted via `d3.format`. The chart includes axes, gridlines, and titles, with data loaded from a local 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.
MIT Licensed

Similar vizzes