Skip to main content
100%

task2_supriya

✓ Published0🌍 Public
SSupriya Ravilla
Last edited Apr 8, 2024
Created on Apr 8, 2024
Forked from Hello VizHub

This example visualizes IMDb movie ratings across six genres, showing the percentage distribution of ratings in five categories from “below 5.0” to “above 8.5” using stacked horizontal bar charts. The D3 v7 code loads data from a CSV file, applies a d3.stack layout, and maps colors via d3.scaleOrdinal to render SVG rectangles. It includes interactive tooltips on mouseover that display the exact rating percentage for each segment, with axes formatted using d3.axisBottom and d3.axisLeft.

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