🌍 Public
Viewing a saved revision (read-only)
f6c99651a9254f3c968edbf7ebe270ed
Activity6_task3_Question1
This scatter plot visualizes the relationship between total bill and tip amount from the tips dataset, encoding the gender of each customer through distinct symbols: squares for male diners and circles for female diners. The D3.js v7 code loads the CSV data, maps values to linear scales for both axes, and renders the points as SVG paths using `d3.symbol()` to generate the shape geometry. The legend displays the symbol-color mapping, with male data points colored blue and female points orange.
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.