Skip to main content
100%

ICE-6 Marks and Channels

✓ Published1🌍 Public
Ppvvaishnavi93@gmail.com
Last edited Mar 7, 2026
Created on Mar 7, 2026

This visualization shows a bar chart comparing the average calorie content of menu items across eight fast-food restaurants, using data from a CSV file with nutritional information. The chart uses steelblue bars to represent each restaurant’s average, with the x-axis listing restaurant names and the y-axis showing calorie values. Built with React and D3 v7, the code employs `d3.scaleBand` for the categorical axis, `d3.scaleLinear` for the numeric axis, and `d3.rollups` to compute the mean calories per restaurant. SVG rendering handles all graphical elements, and axis labels and a title are added through D3’s SVG text functions.

AI-generated description
MIT Licensed

Similar vizzes