Skip to main content
100%

Scatter Plot: Average Balance vs. Number of Contacts

✓ Published0🌍 Public
Ssrikkanth05
Last edited Jul 25, 2023
Created on Jul 23, 2023
Forked from Hello VizHub

This scatter plot shows the relationship between the number of contacts and the average account balance, with each point colored by marital status and tooltips revealing exact values. The visualization is rendered as an SVG using D3.js v5, with data loaded from a CSV file. The chart computes average balance per contact count using `d3.nest` and `d3.mean`, scales axes with `d3.scaleLinear`, and uses `d3-tip` for interactive hover details. A legend is generated via `d3.scaleOrdinal` with `d3.schemeCategory10` for color encoding.

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.
MIT Licensed

Similar vizzes