Task 9 Question 2
✓ Published1🌍 Public
This example displays a filled area chart visualizing the relationship between pH and total sulfur dioxide in wine samples from the WineQT dataset. The chart emphasizes the so-called "area" between the pH values on the x-axis and the sulfur dioxide measurements on the y-axis, filled with steelblue. The code uses D3 v6 and builds the visualization with an SVG element. It employs `d3.scaleLinear` for both axes, the `d3.area` generator to create the path, and `d3.axisBottom` and `d3.axisLeft` for ticks and labels, alongside a legend and axis titles. Data is loaded from a CSV file hosted on GitHub.
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.
MIT Licensed