Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_task3_Question1

Public visualization

Viewing a saved revision (read-only)

f6c99651a9254f3c968edbf7ebe270ed

Activity6_task3_Question1

0 stars1🌍 Public
Hharshabandi3060@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.