Skip to main content
100%

Task-2

✓ Published1🌍 Public
Kkotipallipavan54@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This stacked horizontal bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segment representing a rating category from "below 5.0" to "above 8.5" as a percentage. The visualization uses d3.stack to transform the CSV data into stacked series, d3.scaleLinear for the x-axis, d3.scaleBand for the genre categories, and d3.scaleOrdinal with a custom color palette. Interactive tooltips display the precise percentage for each rating segment on mouseover, and the SVG rendering includes axis labels, gridlines, and a title.

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