Clustered Bar Chart - Average Credit Card Utilization by Education Level
This clustered bar chart compares average credit card utilization across six education levels, with blue bars for male customers and orange bars for females. The data comes from the Bank Customers Dataset, loaded via `d3.csv` and preprocessed using a custom `groupBy` function that aggregates transaction amounts by gender. The visualization uses `d3.scaleBand` for the x-axes, `d3.scaleLinear` for the y-axis, and `d3.scaleOrdinal` for color encoding. Bars are rendered as SVG rectangles within grouped elements, with axes generated through `d3.axisBottom` and `d3.axisLeft`, plus a legend appended dynamically.
AI-generated descriptionA clustered bar chart using D3 displaying data of credit card utilization from the Bank Customers Dataset.
The education level of the customers is displayed on the x-axis, the average utilization in dollars on the y-axis and their gender on the color of the bars (blue for males or orange for females).