Skip to main content
100%

ICE-6 Bar Chart – Fruits Average Weight

✓ Published1🌍 Public
HHarshithmullapudi@my.unt.edu
Last edited Oct 19, 2025
Created on Oct 19, 2025

This bar chart displays the average weight of different fruits, using a dataset loaded from a CSV file hosted on GitHub. Each fruit is represented by a steel-blue rectangle that turns orange on hover, with rotated labels on the x-axis for readability. The visualization is built with D3 v7, using `d3.scaleBand` for the categorical x-axis, `d3.scaleLinear` for the continuous y-axis, and `d3.axisBottom` and `d3.axisLeft` to render the axes. The chart is rendered as an SVG element with margins and labeled axes showing fruit names and weight in grams.

AI-generated description
MIT Licensed

Similar vizzes