Scatter Plot: Average Balance vs. Number of Contacts
✓ Published0🌍 Public
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 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