Skip to main content
100%

Task 8 T2_VITESH CHALICHEEMALA

✓ Published0🌍 Public
Mmanju.972@gmail.com
Last edited Apr 8, 2024
Created on Apr 8, 2024

This example visualizes the distribution of IMDb movie ratings across six genres, using a stacked horizontal bar chart where each bar segment represents the percentage of movies falling into one of five rating categories. The chart is rendered with D3 v7 using SVG, with rectangles stacked via `d3.stack()`, positioned by `d3.scaleLinear` and `d3.scaleBand`, and colored via a `d3.scaleOrdinal` with a custom palette. Interactive tooltips appear on mouseover, displaying the exact percentage for each genre-rating combination. Data is loaded from a CSV file containing precomputed proportions.

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