Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-6 Bar Chart Cereals and their calories

Public visualization

Viewing a saved revision (read-only)

2f01c5c339ba4cc19f9e4869b15e087c

ICE-6 Bar Chart Cereals and their calories

0 stars0🌍 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

A bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.

Challenge

  • Fork this viz and modify it to show your own data