🌍 Public
Viewing a saved revision (read-only)
9710fbde66df47ebb5b2fcd0ca179508
Activity 6 Task 3 Q3
This example visualizes a bar chart demonstrating the distribution of IMDb ratings across six movie genres, with each genre displaying five rating categories from "below 5.0" to "above 8.5." The code uses D3.js v7 with `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, along with `d3.axisBottom` and `d3.axisLeft` to render the chart axes. The data originates from a ratings dataset stored as an array of genre objects with corresponding rating percentage values.
AI-generated description