Skip to main content
100%

Task8_Tutorial2_HKK

✓ Published0🌍 Public
Hhemanthkakani1999@gmail.com
Last edited Apr 15, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This example presents a horizontal stacked bar chart visualizing IMDb movie rating distributions across six genres. Each bar is segmented into five rating categories (from "below 5.0" to "above 8.5"), with segment lengths proportional to the percentage of movies in that category. The visualization uses D3.js v7, employing `d3.stack` to transform the tabular data into stacked series, `d3.scaleOrdinal` for category colors, `d3.axisBottom` and `d3.axisLeft` for axes, and SVG rectangles for rendering. Interactive mouseover tooltips display the exact percentage for each rating segment.

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