Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Activity6_Task2

Public visualization

Activity6_Task2

0 stars0๐ŸŒ Public
Ssumanthnaidu213@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Task_8_Activity_2

This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. The chart displays the percentage of movies falling into five rating categories, from below 5.0 to above 8.5, with each genre represented as a single bar composed of color-coded segments. The visualization uses d3.stack to transform the data, d3.scaleOrdinal for coloring, and d3.scaleBand and d3.scaleLinear for positioning. Interactive tooltips appear on mouseover, revealing exact percentages for each rating segment within a genre. Data comes from a CSV file loaded via d3.csv.

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.

Comments

Sign in to join the discussion.

MIT Licensed