Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6_question3

Public visualization

Viewing a saved revision (read-only)

d9b6139e31a447b0a66445736a827aa0

Activity_6_question3

0 stars0🌍 Public
Aanushapodapati99@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Task_8_Activity_2

A stacked horizontal bar chart displays the percentage distribution of IMDb ratings across different genres, using a percentage scale from 0 to 1. The visualization utilizes D3.js v7, loading the library from UNPKG, and renders as an SVG. It employs `d3.stack` and `d3.scaleBand` to create the segmented bars, with a custom tooltip showing exact percentages on mouseover. The code also uses `d3.axisBottom` and `d3.axisLeft` for axes, and includes a color scale for genre categories.

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.