🌍 Public
Viewing a saved revision (read-only)
f252a6ea539a4ca7b3012864128df043
task9(b)
This area chart visualizes residual sugar levels for wine samples categorized as “bad” or “good” quality. Using D3.js v7, an SVG path is filled via the `d3.area` generator, mapping each data point’s index to a linear x-scale and its sugar value to a y-scale. Axes are added with `d3.axisBottom` and `d3.axisLeft`, with rotated x-axis tick labels. The dataset is embedded directly in the script, and the chart is rendered with a steelblue fill on a 600×400 canvas, with margins and no external data source.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.