🌍 Public
Viewing a saved revision (read-only)
6a6bfc65884b44e290777302946785b2
Bar chart with a Sequential color scale in D3
This bar chart displays the average fiber content across six cereal manufacturers, using a sequential color scale where darker green bars represent higher fiber values. The visualization relies on D3 v7 to load a cleaned cereal dataset from a CSV, scale the categorical x-axis with `d3.scaleBand` and the continuous y-axis with `d3.scaleLinear`, and render SVG rectangles for each bar. Colors are assigned via `d3.scaleSequential` with an interpolator, while a legend generated by the d3-legend library explains the color encoding. The chart includes labeled axes, a title, and a subtitle, with all data drawn from the provided cereal_fiber.csv file.
AI-generated descriptionCereal dataset from