Fork of HTML Starter
This interactive dashboard presents three linked D3.js v7 visualizations built from the classic cereal dataset of 77 products. It shows a bar chart of average calories by manufacturer, a scatter plot of sugar content versus consumer rating with hot/cold cereal color encoding, and a multi-series chart combining average calories as bars with average rating as a line across manufacturers. The code uses D3's `rollup`, `scaleBand`, `scaleLinear`, `axisBottom`, and `axisLeft` APIs for data aggregation and chart construction, rendered as responsive SVGs with a dark theme, gridlines, tooltips, and a legend.
AI-generated descriptionICE5 – Cereal Dataset Visualizations
This project contains three D3.js visualizations of the cereal dataset:
- Bar Chart – Average Calories by Manufacturer
- Scatter Plot – Sugar vs. Rating
- Multi-Series Chart – Avg Calories (Bars) + Avg Rating (Line) by Manufacturer
Data Source
The visualizations use the classic cereal dataset with nutritional information and consumer ratings for 77 cereals.
Implementation
- Uses D3.js v7 for data visualization
- Responsive design that adapts to container width
- Clean, modern dark theme with accent colors
- Tooltips for interactive elements