Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Task 6.2

Public visualization

Fork of Task 6.2

0 stars0๐ŸŒ Public
Pperamranji
Last edited Apr 2, 2025
Created on Mar 30, 2025
Forked from Task 6.2

A stacked bar chart displays the percentage distribution of fruit ratings across five categories, from "Below 1.0" to "Above 4.0," for nine fruit types. The visualization uses d3.stack() to compute stacked series, with d3.scaleOrdinal and a custom color palette mapping each rating category. Rendering as SVG, the chart includes axes via d3.axisBottom and d3.axisLeft, and an interactive tooltip that appears on mouseover via d3.select and event listeners. Data is loaded from a CSV file and formatted using d3.format.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed