Fork of React
✓ Published1🌍 Public
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 descriptionMIT Licensed