ICE-7 line chart
✓ Published1🌍 Public
This line chart shows the relationship between sugar content and average customer rating for breakfast cereals, aggregating the raw cereal dataset by computing the mean rating for each sugar level. The visualization uses D3 v7’s `d3.csv` with `d3.autoType` to load and parse the data, then groups it with `d3.rollups` and `d3.mean` before applying `d3.scaleLinear` scales and a monotone cubic curve via `d3.curveMonotoneX`. The SVG output includes axis labels, a blue path with `d3.line`, and small circles with tooltips showing exact values.
AI-generated descriptionMIT Licensed