Skip to main content
100%

Activity-6_Task2

✓ Published0🌍 Public
VVasanth Krishna
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example shows a stacked horizontal bar chart of IMDb movie ratings across six genres, with each bar divided into five rating categories from below 5.0 to above 8.5. The visualization uses D3 v7 to load CSV data and render SVG elements. It employs d3.stack() to compute the stacked series, d3.scaleBand for the genre axis, d3.scaleLinear for the percentage scale, and d3.scaleOrdinal for color encoding. Interactive tooltips appear on mouseover, displaying the exact percentage for each rating segment using d3.format.

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