Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

fork1

Public visualization

Viewing a saved revision (read-only)

d911bf06a2e94a648359ee9a0c0be4e2

fork1

0 stars0🌍 Public
SSai Vamshi B
Last edited Mar 9, 2026
Created on Mar 9, 2026

This bar chart shows the number of movies in each genre from the dataset, with genres sorted in descending order of count. It is rendered as an SVG using D3.js (v7) and reads the data from `Movie_ratings.csv`. The chart uses `d3.rollup` to count movies per genre, `d3.scaleBand` and `d3.scaleLinear` for the axes, and `d3.axisLeft` with grid lines to show the y-axis scale. Bars are drawn with `.attr('fill', '#FFD700')` in gold, and axis labels are rotated for readability.

AI-generated description