Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

BarGraph_Final

Public visualization

BarGraph_Final

0 stars0🌍 Public
SSathviKankanala@my.unt.edu
Last edited Oct 21, 2025
Created on Oct 21, 2025
Forked from HTML Starter

This horizontal bar chart displays the top 10 fruits by average vitamin C content, using a dataset of repeated fruit observations from a CSV. The visualization aggregates the data with `d3.group` and `d3.mean`, then sorts and slices the results. Bars are drawn as SVG `<rect>` elements, scaled with `d3.scaleBand` and `d3.scaleLinear`. Axes use `d3.axisBottom` and `d3.axisLeft`, while colors come from `d3.schemeSet2` via `d3.scaleOrdinal`. A legend, title, and rotated axis labels are all rendered in the SVG.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed