Fork of Clustered Bar Chart - Credit Card Utilization by Attrition Status
This interactive clustered bar chart visualizes credit card utilization trends from the Bank Customers Dataset, comparing average transaction amounts, credit limits, or revolving balances across demographic categories. The x-axis menu selects grouping variables like income, education, or marital status, while the y-axis menu chooses the metric to aggregate. Bar colors distinguish existing versus attrited customers, with hover tooltips revealing sums and sample counts. Built with D3 v7, the visualization uses `scaleBand`, `scaleLinear`, `scaleOrdinal`, `rollups` for summary statistics, and `transition` for animated updates when menu selections change.
AI-generated descriptionA clustered bar chart using D3 displaying data of credit card utilization from the Bank Customers Dataset.
The two menus at the top enable the users to choose which columns to be presented. For the x-axis the options are:
- Income Level
- Education Level
- Marital Status
- Card Category
- Gender
For the y-axis the options are:
- Total Transactions Amount
- Credit Limit
- Total Revolving Balance
Finally, the attrition status of the customers is encoded on the color of the bars.