Skip to main content
100%

Fork of Fork of React & D3 Starter

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

This example shows average calories per restaurant from a fast food nutrition dataset, with each restaurant represented by a vertical bar. The bar chart is rendered as an SVG using D3 v7, with data processed through `d3.csv` and aggregated via `d3.rollups` and `d3.mean`. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, while scales (`d3.scaleBand`, `d3.scaleLinear`) position the bars and map calorie values.

AI-generated description
MIT Licensed

Similar vizzes