Skip to main content
100%

Fork of React

✓ Published1🌍 Public
Ppvvaishnavi93@gmail.com
Last edited Mar 7, 2026
Created on Mar 7, 2026
Forked from React & D3 Starter

This bar chart displays the average calorie count for menu items across ten fast-food restaurants, using data from the fast_food_nutrition.csv file. The visualization computes averages with `d3.rollups` and `d3.mean`, then renders them as steelblue bars using D3’s `scaleBand` and `scaleLinear` functions. The chart includes rotated x-axis labels for readability, plus titled axes and a main title. Built with React and D3 v7, the SVG output is generated imperatively by selecting the root element and appending chart elements directly.

AI-generated description
MIT Licensed

Similar vizzes