Skip to main content
100%

activity8_task2

✓ Published0🌍 Public
Aajaykumarakula00@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from task-2

A stacked bar chart visualizes the proportional ratings of five movie genres (Action, Adventure, Comedy, Drama) across five rating categories (action, comedy, drama, thriller, horror). Each horizontal bar is segmented by category, with segment lengths proportional to the percentage values from a CSV file. The chart uses D3 v7’s stack, scaleOrdinal, scaleLinear, and scaleBand APIs, rendered as SVG rectangles with hover tooltips showing exact percentages. Axes are drawn with d3.axisLeft and d3.axisBottom, and the visualization includes a legend and 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