Skip to main content
100%

Donut Charts - Attrition Level per Categories

✓ Published1🌍 Public
RRaul Gamez
Last edited Oct 10, 2021
Created on Oct 10, 2021

A set of donut charts displays the number of attrited versus existing bank customers across five categorical variables: income level, education level, marital status, card category, and gender. A dropdown menu lets the user switch between these categories, and the charts animate smoothly when the selection changes. The visualization is rendered with SVG using D3.js, leveraging the pie and arc generators to create the donut segments. Each slice’s fill color encodes customer status, and tooltips reveal exact counts on hover. The data comes from a Bank Customers Dataset loaded as a CSV, and a custom summary function aggregates counts per group.

AI-generated description

Donut charts using D3 displaying data of credit card utilization from the Bank Customers Dataset.

The menu at the top enable the users to choose which categorical columns to use. The options are:

  • Income Level
  • Education Level
  • Marital Status
  • Card Category
  • Gender

Finally, the attrition status of the customers is encoded on the color of the bars.

MIT Licensed

Similar vizzes