Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

harsha act6 que2

Public visualization

Viewing a saved revision (read-only)

ad868eeb06794b8695a7710839d1e338

harsha act6 que2

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

A stacked bar chart displays the percentage of five rating levels across different movie genres, with hover tooltips revealing exact percentages. The visualization uses d3.stack() to compute stacked series and d3.scaleBand() for the categorical y-axis. SVG elements render the chart, while a tooltip div shows values on mouseover, with d3.format() controlling decimal precision. Data is loaded from irisdata.csv, though the dataset appears mislabeled as iris species rather than movie genres.

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.