Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6_Task2_Tutorial

Public visualization

Viewing a saved revision (read-only)

5b59c5e9e9744edd94b4ae5d608ba67d

Activity_6_Task2_Tutorial

0 stars1🌍 Public
Pparvathi829790@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

A stacked horizontal bar chart displays IMDb rating distributions across six movie genres, with five rating bands from below 5.0 to above 8.5. The chart uses d3.stack and d3.scaleBand to layer percentage values, with d3.scaleOrdinal assigning five colors to rating categories. Interactive tooltips reveal exact percentages on mouseover, while d3.axisBottom and d3.axisLeft render labeled axes. Data comes from a CSV file parsed directly, with all elements drawn as SVG rectangles.

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.