Skip to main content
100%

ICE-6 Bar Chart Cereals and their calories

✓ Published0🌍 Public
Ssreeramyamini@gmail.com
Last edited Mar 20, 2024
Created on Mar 20, 2024
Forked from Simple Bar Chart

This bar chart displays the calorie content of 77 cereals, using green vertical bars sorted by cereal name along the x-axis and calorie values on the y-axis. The visualization loads CSV data from a GitHub gist via d3.csv, then uses React hooks (useState, useEffect) to manage asynchronous data loading and rendering. The chart employs d3.scaleBand for categorical x-axis positioning, d3.scaleLinear for the continuous y-axis, and d3.max to compute the domain. SVG rendering occurs through React components, with rotated x-axis labels for readability and horizontal gridlines generated from y-axis ticks.

AI-generated description
MIT Licensed

Similar vizzes